public virtual void vmethod_1() { if (Enum50 == Enum5.Const3) { for (var i = 0; i < Int0; i++) { Class940[i] = new Class95(i); } return; } if (Enum50 == Enum5.Const1) { int i; for (i = 0; i < Class1070.method_26(); i++) { Class940[i] = new Class97(i); } while (i < Int0) { Class940[i] = new Class96(i); i++; } return; } for (var i = 0; i < Int0; i++) { Class940[i] = new Class97(i); } }
// Token: 0x060029DD RID: 10717 RVA: 0x000135D8 File Offset: 0x000117D8 public Class145(int port, Class96 patcher) { this.class96_0 = patcher; this.object_0 = new object(); this.list_0 = new List <Class145.Class146>(); this.int_2 = port; }
// Token: 0x060006BB RID: 1723 RVA: 0x00005D76 File Offset: 0x00003F76 public override Class80 vmethod_4() { Class96 @class = new Class96(); @class.method_3(this.string_0); @class.method_1(base.method_0()); return(@class); }
// Token: 0x06002150 RID: 8528 RVA: 0x0000D9C5 File Offset: 0x0000BBC5 public static void smethod_8(this BinaryWriter writer, Class96 parser) { if (parser == null) { writer.Write(false); return; } writer.Write(true); parser.method_3(writer); }
// Token: 0x06001999 RID: 6553 RVA: 0x00046448 File Offset: 0x00044648 public Installing(Class96 patchData, Enum101 type, string username, Dictionary <string, string> variables) { this.object_0 = new object(); this.InstallerResult = Enum42.const_0; this.class96_0 = patchData; this.string_20 = username; this.dictionary_0 = variables; this.ServerType = type; this.InitializeComponent(); base.FormClosing += this.Installing_FormClosing; }
private static void smethod_7(Class857 A_0, string A_1, bool A_2, bool A_3) { if (Class567.smethod_16(A_1)) { Class96 class2 = (Class96)A_0.method_13().method_2(Class576.smethod_87(A_1), null, false, false); Style style = (Style)Style.smethod_1(StyleType.CharacterStyle, A_0.method_9()); style.Name = class2.method_0(); if (class2.method_13() != null) { class2.method_13().method_37(style.RunPr); } } }
// Token: 0x060028D1 RID: 10449 RVA: 0x0009A1EC File Offset: 0x000983EC private void method_7(object sender, EventArgs e) { if (this.LogMonitor != null) { this.LogMonitor.method_5(); this.LogMonitor = null; } Class99 connectSettings = Class110.Instance.ConnectSettings; Class96 actualToonTownVersionData = connectSettings.ActualToonTownVersionData; Class96 actualTestToonTownVersionData = connectSettings.ActualTestToonTownVersionData; Class96 spoofedToonTownVersionData = connectSettings.SpoofedToonTownVersionData; bool spoofedToonTownEnabled = connectSettings.SpoofedToonTownEnabled; lock (((ICollection)actualToonTownVersionData.FILES).SyncRoot) { lock (((ICollection)actualTestToonTownVersionData.FILES).SyncRoot) { lock (((ICollection)spoofedToonTownVersionData.FILES).SyncRoot) { foreach (Class309 @class in this.FileStates) { if ([email protected]) { switch (this.ServerType) { case Enum101.const_1: if (actualToonTownVersionData.FILES.ContainsKey(@class.FileName)) { actualToonTownVersionData.FILES[@class.FileName].ForceRecheck = true; } if (spoofedToonTownEnabled && spoofedToonTownVersionData.FILES.ContainsKey(@class.FileName)) { spoofedToonTownVersionData.FILES[@class.FileName].ForceRecheck = true; } break; case Enum101.const_2: if (actualTestToonTownVersionData.FILES.ContainsKey(@class.FileName)) { actualTestToonTownVersionData.FILES[@class.FileName].ForceRecheck = true; } break; } } } } } } base.Dispose(); }
private static void smethod_9(Class857 A_0, Class93 A_1) { if (!smethod_10(A_0, A_1)) { Class96 class2 = (Class96)A_1; if (Class567.smethod_16(A_1.method_0())) { Style style = smethod_11(StyleType.CharacterStyle, A_1.method_0().ToString(), A_0.method_9()); if (class2.method_13() != null) { class2.method_13().method_37(style.RunPr); } A_0.method_9().Styles.method_7(style, null); } } }
internal static void smethod_0(Class857 A_0, bool A_1) { int num = 4; Class396 class2 = A_0.method_11(); string str = class2.method_1(); Class93 class3 = smethod_1(class2.method_12(BookmarkStart.b("䰩䴫䌭夯帱䴳", 4), null)); smethod_2(A_0, class3); while (class2.method_9(str)) { string key = class2.method_1(); if (key != null) { int num2; if (Class1160.dictionary_185 == null) { Dictionary <string, int> dictionary1 = new Dictionary <string, int>(11); dictionary1.Add(BookmarkStart.b("帩䤫嘭䐯ἱ䐳䐵圷䨹夻䰽㐿⭁⅃㕅", num), 0); dictionary1.Add(BookmarkStart.b("娩䴫尭儯唱䘳圵䠷刹ᄻ丽㈿ⵁ㑃⍅㩇㹉╋⭍⍏", num), 1); dictionary1.Add(BookmarkStart.b("天䤫䴭䐯嬱嬳堵ᔷ䨹主儽〿❁㙃㉅ⅇ⽉㽋", num), 2); dictionary1.Add(BookmarkStart.b("帩䴫䰭尯圱ᤳ䘵䨷唹䰻嬽㈿㙁ⵃ⍅㭇", num), 3); dictionary1.Add(BookmarkStart.b("帩䴫䰭尯圱ᤳ唵圷嘹䤻匽⸿潁㑃㑅❇㩉⥋㱍㭑ㅓ╕", num), 4); dictionary1.Add(BookmarkStart.b("帩䴫䰭尯圱ᤳ䐵圷䴹ᄻ丽㈿ⵁ㑃⍅㩇㹉╋⭍⍏", num), 5); dictionary1.Add(BookmarkStart.b("帩䴫䰭尯圱ᤳ唵崷嘹倻ጽ〿ぁ⭃㙅ⵇ㡉㡋❍㕏⅑", num), 6); dictionary1.Add(BookmarkStart.b("䴩師伭䀯娱崳唵ᔷ䨹主儽〿❁㙃㉅ⅇ⽉㽋", num), 7); dictionary1.Add(BookmarkStart.b("堩夫䰭䤯ἱ䐳䐵圷䨹夻䰽㐿⭁⅃㕅", num), 8); dictionary1.Add(BookmarkStart.b("丩師伭䜯嬱娳儵ᔷ䨹崻夽┿潁㑃㑅❇㩉⥋㱍㭑ㅓ╕", num), 9); dictionary1.Add(BookmarkStart.b("䤩䐫伭䈯䘱ᤳ䘵䨷唹䰻嬽㈿㙁ⵃ⍅㭇", num), 10); Class1160.dictionary_185 = dictionary1; } if (Class1160.dictionary_185.TryGetValue(key, out num2)) { switch (num2) { case 0: goto Label_0175; case 1: { if (class3 is Class97) { Class413.smethod_0(A_0, (Class97)class3); } continue; } case 2: { if (class3 is Class95) { Class242.smethod_0(A_0, (Class95)class3); } continue; } case 3: { if (class3 is Class106) { Class853.smethod_0(A_0, (Class106)class3); } continue; } case 4: { if (class3 is Class94) { Class853.smethod_5(A_0, (Class94)class3); } continue; } case 5: { if (class3 is Class103) { Class853.smethod_1(A_0, (Class103)class3); } continue; } case 6: { if (class3 is Class100) { Class853.smethod_2(A_0, (Class100)class3); } continue; } case 7: { if (class3 is Class98) { Class794.smethod_0(A_0, (Class98)class3); } continue; } case 8: { if (class3 is Class105) { Class1095.smethod_0(A_0, (Class105)class3); } continue; } case 9: { if (class3 is Class104) { Class529.smethod_0(A_0, (Class104)class3); } continue; } case 10: { if (class3 is Class99) { Class648.smethod_0(A_0, (Class99)class3); } continue; } } } } goto Label_02BD; Label_0175: if (class3 is Class96) { Class96 class4 = (Class96)class3; CharacterFormat format = Class1141.smethod_0(A_0, (Class96)class3); if (format.Count > 0) { class4.method_14(format); } if (class3.method_8() != null) { format.CharStyleName = class3.method_8(); } } continue; Label_02BD: class2.vmethod_1(); } A_0.method_13().method_1(class3, A_0.method_20(), A_1); }
internal static CharacterFormat smethod_0(Class857 A_0, Class96 A_1) { int num = 1; Class396 class2 = A_0.method_11(); CharacterFormat format = new CharacterFormat(A_0.method_9()); string str = class2.method_12(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰娲伴制", 1), BookmarkStart.b("ᘦᤨ嬪夬", 1)); if (str.EndsWith(BookmarkStart.b("Ȧ", 1))) { str = BookmarkStart.b("ᘦᤨ嬪夬", num); } float num3 = Class576.smethod_68(str); string str3 = ""; string str4 = ""; string str5 = ""; string str6 = ""; string str7 = ""; string str8 = ""; string str12 = ""; string str9 = ""; string str10 = ""; string str13 = ""; Color black = Color.Black; Class340 class3 = null; bool flag = true; string str14 = string.Empty; string str15 = string.Empty; bool flag2 = false; bool flag3 = false; class2.method_18(); while (class2.method_19()) { int num2; string[] strArray; bool flag4; string str2 = class2.method_3(); string key = class2.method_1(); if (key != null) { int num4; if (Class1160.dictionary_231 == null) { Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x2b); dictionary1.Add(BookmarkStart.b("伦倨嬪䔬䨮弰刲䄴制", num), 0); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䜰刲䜴帶堸唺䤼", num), 1); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䔰䄲吴夶䨸崺刼䴾ⱀ", num), 2); dictionary1.Add(BookmarkStart.b("䐦䘨䜪䈬崮", num), 3); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ帰䘲䄴嬶倸唺堼", num), 4); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ崰娲嬴制ᐸ伺唼䴾⹀㙂≄⽆摈㽊㑌㽎㑐", num), 5); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ崰娲嬴制ᐸ伺唼䴾⹀㙂≄⽆摈㱊⭎═㭒", num), 6); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ崰娲嬴制ᐸ伺唼䴾⹀㙂≄⽆摈㡊㥌㙎㵐㙒", num), 7); dictionary1.Add(BookmarkStart.b("䬦䰨弪夬䨮䌰Ḳ帴制䬸唺吼儾♀", num), 8); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䄰尲䘴帶䴸刺刼儾", num), 9); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ弰刲場制", num), 10); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ弰刲場制ᐸ堺刼刾ㅀ⽂⁄㽆", num), 11); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ弰刲場制ᐸ娺丼嘾⁀ⵂ", num), 12); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰娲伴制", num), 13); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰娲伴制ᐸ娺丼嘾⁀ⵂ", num), 14); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰娲伴制ᐸ堺刼刾ㅀ⽂⁄㽆", num), 15); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䘰嘲尴倶儸伺", num), 0x10); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䘰嘲尴倶儸伺ြ帾㉀⩂⑄⥆", num), 0x11); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䘰嘲尴倶儸伺ြ尾⹀⹂㕄⭆ⱈ㍊", num), 0x12); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰䜲䰴嬶尸", num), 0x13); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰䜲䰴嬶尸ᘺ尼䰾⡀≂⭄", num), 20); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰䜲䰴嬶尸ᘺ帼倾ⱀ㍂⥄≆ㅈ", num), 0x15); dictionary1.Add(BookmarkStart.b("䬦䠨䔪䨬娮倰吲倴", num), 0x16); dictionary1.Add(BookmarkStart.b("䐦䘨帪䌬嬮䌰䨲", num), 0x17); dictionary1.Add(BookmarkStart.b("䬦䠨䔪䨬娮倰吲倴ᨶ堸䠺吼帾⽀", num), 0x18); dictionary1.Add(BookmarkStart.b("䐦䘨帪䌬嬮䌰䨲ᠴ嘶䨸刺尼儾", num), 0x19); dictionary1.Add(BookmarkStart.b("䬦䠨䔪䨬娮倰吲倴ᨶ娸吺值伾ⵀ♂㵄", num), 0x1a); dictionary1.Add(BookmarkStart.b("䐦䘨帪䌬嬮䌰䨲ᠴ吶嘸嘺䴼匾⑀㭂", num), 0x1b); dictionary1.Add(BookmarkStart.b("䔦䠨䠪䘬䠮䌰尲䀴夶崸ᘺ帼倾ⵀⱂ㝄", num), 0x1c); dictionary1.Add(BookmarkStart.b("䬦䰨弪夬䨮䌰Ḳ䘴䜶堸堺吼儾♀", num), 0x1d); dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䌰嘲头帶尸崺", num), 30); dictionary1.Add(BookmarkStart.b("䌦䀨堪崬䌮倰䨲", num), 0x1f); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ匰弲尴夶券刺匼堾", num), 0x20); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䈰倲吴嬶尸", num), 0x21); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䈰嬲吴匶嘸䰺", num), 0x22); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂㉄⹆ⵈ㽊╌", num), 0x23); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂㙄㍆え❊⡌", num), 0x24); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂ㅄ㹆㥈⹊", num), 0x25); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂⡄⡆ⵈ⹊", num), 0x26); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂♄⡆╈⑊㽌", num), 0x27); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䌰尲䄴嘶䴸刺刼儾汀あ♄♆╈⹊", num), 40); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䌰尲䄴嘶䴸刺刼儾汀≂⭄⁆╈⹊", num), 0x29); dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ吰帲䔴弶堸䠺吼䔾⑀", num), 0x2a); Class1160.dictionary_231 = dictionary1; } if (Class1160.dictionary_231.TryGetValue(key, out num4)) { switch (num4) { case 0: goto Label_04F5; case 1: if (str2 == BookmarkStart.b("否䐨䨪䄬䌮ᰰ倲吴䜶䨸", num)) { format.SetAttr(110, Class650.class650_1); } break; case 2: if (str2 == BookmarkStart.b("刦夨嬪䠬崮到刲䘴制", num)) { format.SetAttr(120, Class650.class650_1); } break; case 3: format.SetAttr(160, Class576.smethod_76(str2)); break; case 4: if (str2 == BookmarkStart.b("匦嬨帪䠬", num)) { format.SetAttr(90, Class650.class650_1); } break; case 5: goto Label_05F1; case 6: if (str2 == "") { flag = false; } break; case 7: if (!(str2 == BookmarkStart.b("否䘨䜪䐬䬮", num))) { goto Label_067D; } format.SetAttr(80, Class650.class650_1); break; case 8: format.SetAttr(220, 1.5f); if (str2 != BookmarkStart.b("匦嬨帪䠬", num)) { format.SetAttr(220, 0f); } break; case 9: strArray = str2.Split(new char[] { ' ' }); if (!(strArray[0] == BookmarkStart.b("否尨嬪䠬崮", num))) { goto Label_072E; } format.SetAttr(210, SubSuperScript.SuperScript); goto Label_0755; case 10: { string str11 = (string)A_0.method_54()[class2.method_3()]; if (Class567.smethod_16(str11)) { format.FontNameAscii = str11; format.FontNameNonFarEast = str11; } break; } case 11: { string str17 = (string)A_0.method_54()[class2.method_3()]; if (Class567.smethod_16(str17)) { format.FontNameBidi = (string)A_0.method_54()[class2.method_3()]; } break; } case 12: { string str16 = (string)A_0.method_54()[class2.method_3()]; if (Class567.smethod_16(str16)) { format.FontNameFarEast = (string)A_0.method_54()[class2.method_3()]; } break; } case 13: Class576.smethod_66(class2.method_3(), A_1, format, 190); break; case 14: case 15: Class576.smethod_66(class2.method_3(), A_1, format, 350); break; case 0x10: str14 = smethod_4(str2); break; case 0x11: str15 = smethod_4(str2); break; case 0x12: format.SetAttr(250, new Class650(Class576.smethod_70(class2.method_3()))); break; case 0x13: flag2 = Class576.smethod_69(class2.method_3()); break; case 20: flag3 = Class576.smethod_69(class2.method_3()); break; case 0x15: format.SetAttr(260, new Class650(Class576.smethod_69(class2.method_3()))); break; case 0x16: str3 = class2.method_3(); break; case 0x17: str4 = class2.method_3(); break; case 0x18: str5 = class2.method_3(); break; case 0x19: str6 = class2.method_3(); break; case 0x1a: str7 = class2.method_3(); break; case 0x1b: str8 = class2.method_3(); break; case 0x1c: format.SetAttr(370, Class576.smethod_62(str2, (Class16)format.method_31(370))); break; case 0x1d: format.SetAttr(150, (class2.method_3() == BookmarkStart.b("䤦䘨太䀬丮崰", num)) ? 0f : (((float)Class576.smethod_36(class2.method_3())) / 20f)); break; case 30: goto Label_09A1; case 0x1f: goto Label_09F9; case 0x20: smethod_3(class2.method_3(), black); break; case 0x21: format.SetAttr(290, smethod_2(class2.method_3())); break; case 0x22: if (class2.method_3() != BookmarkStart.b("䤦䘨䔪䠬", num)) { format.SetAttr(100, Class650.class650_1); } break; case 0x23: str12 = class2.method_3(); break; case 0x24: str9 = class2.method_3(); break; case 0x25: str13 = class2.method_3(); break; case 0x26: str10 = class2.method_3(); break; case 0x27: if (class2.method_3() != BookmarkStart.b("䄦䘨䔪夬Ȯ到尲头堶䬸", num)) { format.SetAttr(450, Class576.smethod_76(class2.method_3())); } break; case 40: goto Label_0B20; case 0x29: goto Label_0B51; case 0x2a: format.SetAttr(770, smethod_5(str2)); break; } } } continue; Label_04F5: flag4 = str2 == BookmarkStart.b("匦嬨帪䠬", num); if ((A_1.method_4() == BookmarkStart.b("圦䠨太䰬䠮䌰刲䔴弶", num)) && (A_1.method_0() == null)) { A_0.method_9().Settings.bool_27 = flag4; } A_1.method_15().SetAttr(0x582, !flag4); continue; Label_05F1: if (str2 == BookmarkStart.b("䌦䘨帪伬䌮吰", num)) { format.SetAttr(300, Class650.class650_1); } if (str2 == BookmarkStart.b("否䀨䔪䨬䌮吰", num)) { format.SetAttr(80, Class650.class650_1); } continue; Label_067D: if (str2 == BookmarkStart.b("䤦䘨䔪䠬", num)) { format.SetAttr(80, Class650.class650_0); } continue; Label_072E: if (strArray[0] == BookmarkStart.b("否尨䤪", num)) { format.SetAttr(210, SubSuperScript.SubScript); } Label_0755: format.SetAttr(200, Class576.smethod_73(format, str2, num3)); continue; Label_09A1: if (class2.method_3() == BookmarkStart.b("䈦䜨䰪弬丮䜰嘲儴", num)) { format.SetAttr(180, Class650.class650_1); } if (class2.method_3() == BookmarkStart.b("䈦䐨䤪䈬尮䈰嘲儴", num)) { format.SetAttr(170, Class650.class650_1); } continue; Label_09F9: if (class2.method_3() == BookmarkStart.b("䤦䘨䔪䠬", num)) { format.SetAttr(130, Class650.class650_1); } if (class2.method_3() == BookmarkStart.b("匦嬨帪䠬", num)) { format.SetAttr(130, Class650.class650_0); } continue; Label_0B20: if (class2.method_3() == BookmarkStart.b("䬦䀨䔪䠬Ȯ夰嘲尴倶儸伺", num)) { if (class3 == null) { class3 = smethod_1(A_0); } class3.method_7(true); } continue; Label_0B51: num2 = Class1041.smethod_23(str2) % 360; if (((num2 >= 0x2d) && (num2 < 180)) || ((num2 >= -315) && (num2 < -180))) { if (class3 == null) { class3 = smethod_1(A_0); } class3.method_1(true); } if (class3 == null) { A_1.method_20(Class922.smethod_70(class2.method_3())); } } if (!flag) { format.SetAttr(80, Class650.class650_0); format.SetAttr(300, Class650.class650_0); } if ((str14 != string.Empty) || (str15 != string.Empty)) { if (!(str14 == BookmarkStart.b("匦嬨帪䠬", num)) && !(str15 == BookmarkStart.b("匦嬨帪䠬", num))) { format.SetAttr(60, Class650.class650_0); } else { format.SetAttr(60, Class650.class650_1); } } if (flag2 || flag3) { format.SetAttr(70, Class650.class650_1); } if (class3 != null) { format.SetAttr(780, class3); } format.SetAttr(380, (short)Class922.smethod_81(string.Format(BookmarkStart.b("尦ᤨ嘪,吮0串", num), str3, str4))); format.SetAttr(390, (short)Class922.smethod_81(string.Format(BookmarkStart.b("尦ᤨ嘪,吮0串", num), str5, str6))); format.SetAttr(340, (short)Class922.smethod_81(string.Format(BookmarkStart.b("尦ᤨ嘪,吮0串", num), str7, str8))); if ((Class567.smethod_16(str9) || (str10 == BookmarkStart.b("否䈨䈪崬Ȯ䘰嬲尴䌶尸ᘺ丼伾⁀⁂⁄", num))) || (str12 == BookmarkStart.b("匦䄨䈪丬䐮", num))) { format.SetAttr(140, Class922.smethod_68(str9, str12, str10, str13)); } return(format); }
internal void method_6(bool A_0, bool A_1) { int num = 11; int num2 = this.class89_0.method_8(); if (!A_0) { num2 = this.class89_0.method_9(); } else if (A_1) { num2 = this.class89_0.method_10(); } for (int i = 0; i < num2; i++) { Class96 class2; Class91 class4; if (!A_0) { class4 = this.class89_0.method_7(i); } else { class4 = A_1 ? this.class89_0.method_6(i) : this.class89_0.method_5(i); } if (!(class4 is Class96)) { continue; } Class96 class3 = class4 as Class96; if (((class3.method_17() <= 0.0) || (class3.method_13() == null)) || class3.method_13().HasValue(190)) { continue; } int fontSize = -1; string str = class3.method_8(); goto Label_0129; Label_00C5: if ((class2.method_13() != null) && class2.method_13().HasValue(190)) { fontSize = (int)class2.method_13().FontSize; str = null; } else { str = (str == BookmarkStart.b("戰䜲吴夶崸娺似嬾", num)) ? null : class2.method_8(); } if (!Class567.smethod_16(class2.method_0()) || (fontSize != -1)) { goto Label_0149; } Label_0129: class2 = (Class96)this.class89_0.method_4(str, class3.method_4()); if (class2 != null) { goto Label_00C5; } Label_0149: if (fontSize == -1) { fontSize = 20; } class3.method_13().SetAttr(190, (float)Class1133.smethod_5((fontSize * class3.method_17()) / 100.0)); } }
internal static void smethod_8(Class857 A_0, Paragraph A_1, string A_2, Class97 A_3, DocumentObject A_4) { int num = 14; Class396 class2 = A_0.method_11(); string str = (A_2 == BookmarkStart.b("䜳䘵夷吹", 14)) ? BookmarkStart.b("䀳匵䀷丹", num) : BookmarkStart.b("䐳圵䨷嬹嬻䰽ℿ㉁ⱃ", num); Class96 class3 = (Class96) A_0.method_13().method_2(A_0.method_16(), str, A_0.method_20(), true); if (class3 == null) { class3 = (Class96) A_0.method_13().method_2(A_0.method_16(), str, A_0.method_20(), false); } CharacterFormat format = new CharacterFormat(); if (((str == BookmarkStart.b("䀳匵䀷丹", num)) && (A_3 != null)) && (A_3.method_13() != null)) { format.method_73(A_3.method_13()); } Style style = null; if (class3 != null) { if (class3.method_13() != null) { format.method_73(class3.method_13()); } if ((str == BookmarkStart.b("䀳匵䀷丹", num)) && Class567.smethod_16(class3.method_8())) { style = (Style) A_0.method_9().Styles[class3.method_8()]; } } A_0.method_41(true); while (class2.method_10(A_2, XmlDocumentTextHandling.TextAndSignificantAndIgnorable)) { if (!Class857.smethod_10(A_0, A_1, format, style)) { string key = class2.method_1(); if (key != null) { int num2; if (Class1160.dictionary_229 == null) { Dictionary<string, int> dictionary1 = new Dictionary<string, int>(12); dictionary1.Add("", 0); dictionary1.Add(BookmarkStart.b("䜳", num), 1); dictionary1.Add(BookmarkStart.b("䀳圵娷", num), 2); dictionary1.Add(BookmarkStart.b("堳張嘷弹ᄻ尽㈿❁╃ⵅ", num), 3); dictionary1.Add(BookmarkStart.b("䜳唵䨷匹䰻䨽", num), 4); dictionary1.Add(BookmarkStart.b("䜳䘵夷吹", num), 5); dictionary1.Add(BookmarkStart.b("娳夵䰷弹", num), 6); dictionary1.Add(BookmarkStart.b("唳堵嘷唹䠻弽㐿⭁⭃⡅", num), 7); dictionary1.Add(BookmarkStart.b("嘳夵圷儹儻弽㈿⥁", num), 8); dictionary1.Add(BookmarkStart.b("嘳夵圷儹儻弽㈿⥁楃㕅㱇⭉㹋㩍", num), 9); dictionary1.Add(BookmarkStart.b("嘳夵圷儹儻弽㈿⥁楃⍅♇⹉", num), 10); dictionary1.Add(BookmarkStart.b("䘳䌵娷䌹", num), 11); Class1160.dictionary_229 = dictionary1; } if (Class1160.dictionary_229.TryGetValue(key, out num2)) { switch (num2) { case 0: { smethod_23(A_0, A_1, format, style); continue; } case 1: { smethod_16(A_0, A_1, format, style); continue; } case 2: { smethod_17(A_0, A_1, format, style); continue; } case 3: { smethod_12(A_0, A_1, format, Class816.string_6, style); continue; } case 4: { smethod_9(A_0, A_1); continue; } case 5: { smethod_18(A_0, A_1, A_3, A_4); A_0.method_41(true); continue; } case 6: { smethod_19(A_0, A_1, format); A_0.method_41(true); continue; } case 7: { smethod_21(A_0, A_1, format); A_0.method_41(true); continue; } case 8: { A_1.method_13(new BookmarkStart(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null))); A_1.method_13(new BookmarkEnd(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null))); A_0.method_41(true); continue; } case 9: { A_1.method_13(new BookmarkStart(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null))); A_0.method_41(true); continue; } case 10: { A_1.method_13(new BookmarkEnd(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null))); A_0.method_41(true); continue; } case 11: { smethod_10(A_0, A_1, format, style); continue; } } } } if (Class567.smethod_16(Class857.string_4) && !smethod_27(A_1.Text)) { smethod_12(A_0, A_1, format, BookmarkStart.b("ᐳ", num), style); Class857.string_4 = ""; } if (Class797.smethod_0(A_0, A_1, format, style, A_3, A_4)) { A_0.method_41(true); } else { smethod_8(A_0, A_1, class2.method_1(), A_3, A_4); } } else { A_0.method_41(true); } } if (((class3 != null) && (!A_1.HasChildElements || bool_0)) && ((class3.method_13() != null) && ((A_2 == BookmarkStart.b("䐳", num)) || (A_2 == BookmarkStart.b("尳", num))))) { A_1.BreakCharacterFormat.method_25(class3.method_13()); } }
// Token: 0x06000148 RID: 328 RVA: 0x0000F174 File Offset: 0x0000D374 public static Class80 smethod_1(object object_0, Type type_0) { Class80 @class = object_0 as Class80; if (@class != null) { return(@class); } if (type_0 == null) { if (object_0 == null) { return(new Class90()); } type_0 = object_0.GetType(); } type_0 = Class37.smethod_1(type_0); if (type_0 == Class175.type_0) { @class = new Class90(); if (object_0 != null && object_0.GetType() != Class175.type_0) { @class.method_1(object_0.GetType()); } } else if (Class29.smethod_0 <Array>(type_0)) { @class = new Class93(); } else if (Class29.smethod_0 <string>(type_0)) { @class = new Class96(); } else if (Class29.smethod_0 <IntPtr>(type_0)) { @class = new Class99(); } else if (Class29.smethod_0 <UIntPtr>(type_0)) { @class = new Class83(); } else if (Class29.smethod_0 <ulong>(type_0)) { @class = new Class89(); } else if (Class29.smethod_0 <uint>(type_0)) { @class = new Class92(); } else if (Class29.smethod_0 <ushort>(type_0)) { @class = new Class87(); } else if (Class29.smethod_0 <long>(type_0)) { @class = new Class82(); } else if (Class29.smethod_0 <int>(type_0)) { @class = new Class98(); } else if (Class29.smethod_0 <short>(type_0)) { @class = new Class94(); } else if (Class29.smethod_0 <byte>(type_0)) { @class = new Class88(); } else if (Class29.smethod_0 <sbyte>(type_0)) { @class = new Class85(); } else if (Class29.smethod_0 <double>(type_0)) { @class = new Class86(); } else if (Class29.smethod_0 <float>(type_0)) { @class = new Class91(); } else if (Class29.smethod_0 <bool>(type_0)) { @class = new Class97(); } else if (Class29.smethod_0 <char>(type_0)) { @class = new Class81(); } else if (Class175.smethod_0(type_0)) { Class90 class2 = new Class90(); class2.method_1(type_0); @class = class2; } else { if (Class29.smethod_0 <Enum>(type_0)) { Enum enum_; if (object_0 == null) { if (type_0 == Class175.type_2) { enum_ = null; } else { enum_ = (Enum)Activator.CreateInstance(type_0); } } else if (type_0 == Class175.type_2 && object_0 is Enum) { enum_ = (Enum)object_0; } else { enum_ = (Enum)Enum.ToObject(type_0, object_0); } return(new Class84(enum_)); } if (Class29.smethod_0 <ValueType>(type_0)) { if (object_0 == null) { object object_; if (type_0 == Class175.type_3) { object_ = null; } else { object_ = Activator.CreateInstance(type_0); } @class = new Class107(object_); } else { if (object_0.GetType() != type_0) { try { object_0 = Convert.ChangeType(object_0, type_0); } catch { } } @class = new Class107(object_0); } return(@class); } @class = new Class90(); } if (object_0 != null) { @class.vmethod_1(object_0); } return(@class); }
// Token: 0x060004D1 RID: 1233 RVA: 0x00027A68 File Offset: 0x00025C68 public static void smethod_1(string string_0, string string_1) { string string_2; string string_3; try { string text = MainWindow.webView_0.QueueScriptCall("$('#test-site').val()").smethod_0(); Class70 @class = new Class70(string_0, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36", 10, false, true, null, false); string text2; if (!(text == "Shopify")) { if (!(text == "Supreme")) { if (!(text == "Mesh")) { if (!(text == "Footsites")) { if (!(text == "Off-White")) { if (!(text == "Lacoste")) { text2 = text; try { text = new Uri(text2).Host; goto IL_11B; } catch { MainWindow.webView_0.QueueScriptCall(string.Format("updateProxyRow('{0}','{1}',7,'{2}')", string_1, "Invalid URL", "red")); return; } } text2 = "https://www.lacoste.com/gb/"; } else { text2 = "https://www.off---white.com/en/GB"; } } else { text2 = "https://www.footaction.com/"; @class.httpClient_0.DefaultRequestHeaders.ExpectContinue = new bool?(false); @class.httpClient_0.DefaultRequestHeaders.TryAddWithoutValidation("Accept", "application/json"); } } else { text2 = "https://prod.jdgroupmesh.cloud/stores/size/products/000987?api_key=3565AE9C56464BB0AD8020F735D1479E"; } } else { text2 = "http://www.supremenewyork.com/shop/all"; } } else { text2 = "https://kith.com/collections.json"; } IL_11B: MainWindow.webView_0.QueueScriptCall(string.Format("updateProxyRow('{0}','{1}', 7, '{2}')", string_1, "Testing...", "orange")); MainWindow.webView_0.QueueScriptCall(string.Format("updateProxyRow('{0}','{1}', 6, '{2}')", string_1, text, "#c2c2c2")); Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); HttpResponseMessage httpResponseMessage = @class.method_5(text2, true); stopwatch.Stop(); long elapsedMilliseconds = stopwatch.ElapsedMilliseconds; if (httpResponseMessage.IsSuccessStatusCode) { string_2 = elapsedMilliseconds.ToString() + "ms"; string_3 = "#2BB873"; if (text == "Supreme") { if (httpResponseMessage.smethod_3().Contains("LDN")) { MainWindow.webView_0.QueueScriptCall(string.Format("updateProxyRow('{0}','{1}', 6, '{2}')", string_1, "Supreme EU", "#c2c2c2")); } else if (httpResponseMessage.smethod_3().Contains("NYC")) { MainWindow.webView_0.QueueScriptCall(string.Format("updateProxyRow('{0}','{1}', 6, '{2}')", string_1, "Supreme US", "#c2c2c2")); } } } else if (httpResponseMessage.StatusCode == (HttpStatusCode)430) { string_2 = "Banned"; string_3 = "Red"; } else if (httpResponseMessage.StatusCode == HttpStatusCode.ProxyAuthenticationRequired) { string_2 = "Authentication error"; string_3 = "Red"; } else { string_2 = string.Format("Error ({0})", (int)httpResponseMessage.StatusCode); string_3 = "Red"; } } catch { string_2 = "Error"; string_3 = "Red"; } Class96.smethod_2(string_1, string_3, string_2); }
// Token: 0x060004D4 RID: 1236 RVA: 0x0000535D File Offset: 0x0000355D internal void method_0(object object_0) { Class96.smethod_1(this.jobject_0["proxy"].ToString(), this.jobject_0["id"].ToString()); }