// Token: 0x06001F43 RID: 8003 RVA: 0x00067078 File Offset: 0x00065278 public RemoteControlSetup() { this.InitializeComponent(); this.class97_0 = Class110.Instance.RemoteControllerSettings; this.UseOpacity.Checked = this.class97_0.UseOpacity; this.KeepOnTop.Checked = this.class97_0.TopMost; this.AnimateRemoteController.Checked = this.class97_0.AnimateController; this.class141_0 = new Class141(); this.class141_1 = new Class141(); Class141 @class = this.class141_0; EventHandler value = new EventHandler(this.method_4); @class.ProcessExited += value; Class141 class2 = this.class141_1; EventHandler value2 = new EventHandler(this.method_5); class2.ProcessExited += value2; this.method_0(); switch (this.class97_0.KeyboardLayout) { default: this.QWERTYOpt.Checked = true; return; case Enum84.const_1: this.AZERTYOpt.Checked = true; return; case Enum84.const_2: this.QWERTZOpt.Checked = true; return; } }
// Token: 0x06001613 RID: 5651 RVA: 0x0003519C File Offset: 0x0003339C public static bool smethod_0(Class141 process) { Process[] array = Class156.smethod_3("toontown"); bool result; try { if (array.Length != 1) { result = false; } else { int id = array[0].Id; IntPtr intPtr = array[0].smethod_0(); if (!ToonTownParentForm.hashSet_0.Contains(id) && !(intPtr == IntPtr.Zero)) { process.MainWindowHandle = intPtr; result = true; } else { result = false; } } } finally { array.smethod_1 <Process>(); } return(result); }
internal Class1109(BinaryReader A_0, Class812 A_1, NFibEnum A_2, Class764 A_3) { this.class764_0 = A_3; this.class479_0 = new Class479(this, A_0); this.class141_0 = new Class141(A_0, A_1); this.class143_0 = new Class143(A_0, A_1, A_2); }
// Token: 0x06000091 RID: 145 RVA: 0x0000B5F8 File Offset: 0x000097F8 private static Class47 smethod_6(out bool bool_0) { bool_0 = true; if (Class9.class47_0 != null) { return(Class9.class47_0); } if (Class9.class141_0 != null) { bool_0 = false; return(Class9.class141_0.method_8()); } Class141 @class = Class9.smethod_8(); Class47 class2 = @class.method_8(); if (class2.vmethod_0()) { Class9.class47_0 = class2; @class.Dispose(); } else { Class9.class141_0 = @class; bool_0 = false; } return(class2); }
// Token: 0x060019D3 RID: 6611 RVA: 0x00047A08 File Offset: 0x00045C08 public static bool smethod_3(string processName, Class141 process) { Process[] array = Class156.smethod_3(processName); bool result; try { if (array.Length != 1) { result = false; } else { IntPtr intPtr = array[0].smethod_0(); Class335.smethod_3(Class197.string_2, new object[] { intPtr }); process.MainWindowHandle = intPtr; Class335.smethod_3(Class197.string_3, new object[] { process.MainWindowHandle }); result = true; } } finally { array.smethod_1 <Process>(); } return(result); }
internal Class427(Class52 A_0, Class812 A_1, StyleCollection A_2) { this.class52_0 = A_0; this.styleCollection_0 = A_2; this.class141_0 = new Class141(null, A_1); this.class140_0 = new Class140(this.class52_0, A_1); this.class143_0 = new Class143(null, A_1, NFibEnum.Word2003); }
internal Class1060(Class52 A_0, Class812 A_1, ListStyleCollection A_2, Class48 A_3) { this.listStyleCollection_0 = A_2; this.int_0 = this.listStyleCollection_0.Count; this.class48_0 = A_3; this.class141_0 = new Class141(null, A_1); this.class140_0 = new Class140(A_0, A_1); }
// Token: 0x06000030 RID: 48 RVA: 0x00002DAC File Offset: 0x00000FAC public override Class139 vmethod_4() { Class141 @class = new Class141(); @class.method_3(this.short_0); @class.method_1(base.method_0()); return(@class); }
public Class40(IEnumerable <IMessageTypeRoom> messageTypeRooms, Class141 class141_1) { this.idictionary_0 = new Dictionary <int, string>(); this.list_0 = new List <IMessageTypeRoom>(); this.class141_0 = null; this.list_0 = new List <IMessageTypeRoom>(messageTypeRooms); this.class141_0 = class141_1; }
// Token: 0x06002256 RID: 8790 RVA: 0x00074AD0 File Offset: 0x00072CD0 public WindowSelector() { this.InitializeComponent(); this.class141_0 = new Class141(); Class141 @class = this.class141_0; EventHandler value = new EventHandler(this.method_5); @class.ProcessExited += value; }
// Token: 0x06001D69 RID: 7529 RVA: 0x0005E534 File Offset: 0x0005C734 public static Struct56?smethod_1(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class149 coordinatePoll) { Class269.Class272 @class = new Class269.Class272(); @class.nullable_0 = null; @class.bool_0 = false; EventHandler <EventArgs22> eventHandler = null; EventHandler eventHandler2 = null; Class269.Class273 class2 = new Class269.Class273(); class2.class272_0 = @class; class2.manualResetEventSlim_0 = new ManualResetEventSlim(false); try { try { Class129 logMonitor = toontownWindow.LogMonitor; if (eventHandler == null) { eventHandler = new EventHandler <EventArgs22>(class2.method_0); } logMonitor.CoordinatesChanged += eventHandler; Class141 toonTownProcess = toontownWindow.ToonTownProcess; if (eventHandler2 == null) { eventHandler2 = new EventHandler(class2.method_1); } toonTownProcess.ProcessExited += eventHandler2; if (!toontownWindow.ToonTownProcess.ProcessOpen) { return(null); } coordinatePoll.method_4(); WaitHandle.WaitAny(new WaitHandle[] { waitHandle.WaitHandle, class2.manualResetEventSlim_0.WaitHandle }); coordinatePoll.method_5(); } finally { @class.bool_0 = true; } } finally { if (class2.manualResetEventSlim_0 != null) { ((IDisposable)class2.manualResetEventSlim_0).Dispose(); } } return(@class.nullable_0); }
// Token: 0x06002C7B RID: 11387 RVA: 0x000AC250 File Offset: 0x000AA450 public Class149(Class142 toontownWindow) { this.manualResetEventSlim_0 = new ManualResetEventSlim(); this.timer_0 = new System.Timers.Timer(); this.timer_0.Interval = 200.0; this.timer_0.Elapsed += new ElapsedEventHandler(this.timer_0_Elapsed); this.class142_0 = toontownWindow; Class141 toonTownProcess = this.class142_0.ToonTownProcess; EventHandler value = new EventHandler(this.method_6); toonTownProcess.ProcessExited += value; }
// Token: 0x06001D68 RID: 7528 RVA: 0x0005E410 File Offset: 0x0005C610 public static Struct56?smethod_0(Class142 toontownWindow, ManualResetEventSlim waitHandle, int timeOut = -1) { Class269.Class270 @class = new Class269.Class270(); @class.nullable_0 = null; @class.bool_0 = false; EventHandler <EventArgs22> eventHandler = null; EventHandler eventHandler2 = null; Class269.Class271 class2 = new Class269.Class271(); class2.class270_0 = @class; class2.manualResetEventSlim_0 = new ManualResetEventSlim(false); try { try { Class129 logMonitor = toontownWindow.LogMonitor; if (eventHandler == null) { eventHandler = new EventHandler <EventArgs22>(class2.method_0); } logMonitor.CoordinatesChanged += eventHandler; Class141 toonTownProcess = toontownWindow.ToonTownProcess; if (eventHandler2 == null) { eventHandler2 = new EventHandler(class2.method_1); } toonTownProcess.ProcessExited += eventHandler2; IntPtr mainWindowHandle = toontownWindow.ToonTownProcess.MainWindowHandle; if (!toontownWindow.ToonTownProcess.ProcessOpen) { return(null); } Class269.smethod_20(mainWindowHandle, class2.manualResetEventSlim_0); WaitHandle.WaitAny(new WaitHandle[] { waitHandle.WaitHandle, class2.manualResetEventSlim_0.WaitHandle }, timeOut); } finally { @class.bool_0 = true; } } finally { if (class2.manualResetEventSlim_0 != null) { ((IDisposable)class2.manualResetEventSlim_0).Dispose(); } } return(@class.nullable_0); }
public Class135(Class144 class1440, Class140 class1401, Class136 class1360, int int7, int int8, int int9) : base(class1401, int8) { _int6 = class1360.vmethod_2(); _int1 = int9; for (var i = 0; i < int9; i++) { _int5[i] = class1440.vmethod_12(int7); } var num = class1440.vmethod_10(4); if (num == 15) { throw new IOException("STREAM_DECODER_ERROR_STATUS_LOST_SYNC"); } _int2 = num + 1; _int3 = class1440.vmethod_12(5); for (var j = 0; j < int9; j++) { _int4[j] = class1440.vmethod_12(_int2); } var num2 = class1440.vmethod_10(2); var num3 = num2; if (num3 != 0) { throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM"); } _class1370 = new Class138(); ((Class138)_class1370).Int0 = class1440.vmethod_10(4); ((Class138)_class1370).Class1430 = class1360.vmethod_1(); if (_class1370 is Class138) { ((Class138)_class1370).vmethod_0(class1440, int9, ((Class138)_class1370).Int0, class1401, class1360.vmethod_2()); } Buffer.BlockCopy(_int5, 0, class1360.vmethod_0(), 0, int9 << 2); if (int7 + _int2 + Class141.smethod_0(int9) > 32) { Class130.smethod_1(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); return; } if (int7 <= 16 && _int2 <= 16) { Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); return; } Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); }
public Class135(Class144 class144_0, Class140 class140_1, Class136 class136_0, int int_7, int int_8, int int_9) : base(class140_1, int_8) { this.int_6 = class136_0.vmethod_2(); this.int_1 = int_9; for (int i = 0; i < int_9; i++) { this.int_5[i] = class144_0.vmethod_12(int_7); } int num = class144_0.vmethod_10(4); if (num == 15) { throw new IOException("STREAM_DECODER_ERROR_STATUS_LOST_SYNC"); } this.int_2 = num + 1; this.int_3 = class144_0.vmethod_12(5); for (int j = 0; j < int_9; j++) { this.int_4[j] = class144_0.vmethod_12(this.int_2); } int num2 = class144_0.vmethod_10(2); int num3 = num2; if (num3 != 0) { throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM"); } this.class137_0 = new Class138(); ((Class138)this.class137_0).int_0 = class144_0.vmethod_10(4); ((Class138)this.class137_0).class143_0 = class136_0.vmethod_1(); if (this.class137_0 is Class138) { ((Class138)this.class137_0).vmethod_0(class144_0, int_9, ((Class138)this.class137_0).int_0, class140_1, class136_0.vmethod_2()); } Buffer.BlockCopy(this.int_5, 0, class136_0.vmethod_0(), 0, int_9 << 2); if (int_7 + this.int_2 + Class141.smethod_0(int_9) > 32) { Class130.smethod_1(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9); return; } if (int_7 <= 16 && this.int_2 <= 16) { Class130.smethod_0(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9); return; } Class130.smethod_0(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9); }
// Token: 0x060028CE RID: 10446 RVA: 0x00099E08 File Offset: 0x00098008 public bool method_5() { Class142.Class440 @class = new Class142.Class440(); @class.class142_0 = this; @class.bool_0 = false; @class.bool_1 = false; EventHandler eventHandler = null; WaitCallback waitCallback = null; Class142.Class441 class2 = new Class142.Class441(); class2.class440_0 = @class; class2.manualResetEventSlim_0 = new ManualResetEventSlim(false); try { try { Class141 toonTownProcess = this.ToonTownProcess; if (eventHandler == null) { eventHandler = new EventHandler(class2.method_0); } toonTownProcess.ProcessExited += eventHandler; if (waitCallback == null) { waitCallback = new WaitCallback(class2.method_1); } ThreadPool.QueueUserWorkItem(waitCallback); class2.manualResetEventSlim_0.Wait(); } finally { @class.bool_1 = true; } } finally { if (class2.manualResetEventSlim_0 != null) { ((IDisposable)class2.manualResetEventSlim_0).Dispose(); } } return(@class.bool_0); }
// Token: 0x0600280B RID: 10251 RVA: 0x00093E4C File Offset: 0x0009204C public static Enum107 smethod_0(Class141 toontownWindow, Class150 original_capture, Struct46 bounds, Class104 settings) { if (original_capture == null) { return(Enum107.const_2); } if (bounds.IsSizeEmpty) { return(Enum107.const_2); } IntPtr mainWindowHandle = toontownWindow.MainWindowHandle; if (!toontownWindow.ProcessOpen) { return(Enum107.const_2); } if (original_capture != null && !Struct46.smethod_0(bounds, Struct46.struct46_0)) { Rectangle rec = bounds.method_0(Class410.smethod_16(mainWindowHandle).Size); Enum107 result; using (Bitmap bitmap = Class364.smethod_3(mainWindowHandle, rec)) { using (Class125 @class = new Class125(bitmap)) { using (Class150 class2 = new Class150(@class)) { if (Class150.smethod_1(class2, original_capture, settings.MaxColorRange)) { result = Enum107.const_0; } else { result = Enum107.const_1; } } } } return(result); } return(Enum107.const_2); }
// Token: 0x06001D6B RID: 7531 RVA: 0x0005E688 File Offset: 0x0005C888 public static bool smethod_3(Class142 toontownWindow, ManualResetEventSlim waitHandle, List <PointF> path, Class104 settings, bool jump = true) { Class269.Class274 @class = new Class269.Class274(); @class.bool_0 = false; EventHandler eventHandler = null; Class269.Class275 class2 = new Class269.Class275(); class2.class274_0 = @class; class2.manualResetEventSlim_0 = new ManualResetEventSlim(false); bool result; try { try { Class141 toonTownProcess = toontownWindow.ToonTownProcess; if (eventHandler == null) { eventHandler = new EventHandler(class2.method_0); } toonTownProcess.ProcessExited += eventHandler; result = Class269.smethod_2(toontownWindow, waitHandle, class2.manualResetEventSlim_0, path, settings, jump); } finally { @class.bool_0 = true; } } finally { if (class2.manualResetEventSlim_0 != null) { ((IDisposable)class2.manualResetEventSlim_0).Dispose(); } } return(result); }
// Token: 0x06001D6C RID: 7532 RVA: 0x0005E728 File Offset: 0x0005C928 public static bool smethod_4(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class104 settings, PointF target, bool jump, bool finalTarget) { Class269.Class276 @class = new Class269.Class276(); @class.bool_0 = false; EventHandler eventHandler = null; Class269.Class277 class2 = new Class269.Class277(); class2.class276_0 = @class; class2.manualResetEventSlim_0 = new ManualResetEventSlim(false); bool result; try { try { Class141 toonTownProcess = toontownWindow.ToonTownProcess; if (eventHandler == null) { eventHandler = new EventHandler(class2.method_0); } toonTownProcess.ProcessExited += eventHandler; result = Class269.smethod_5(toontownWindow, waitHandle, class2.manualResetEventSlim_0, settings, target, jump, finalTarget); } finally { @class.bool_0 = true; } } finally { if (class2.manualResetEventSlim_0 != null) { ((IDisposable)class2.manualResetEventSlim_0).Dispose(); } } return(result); }
// Token: 0x060019D2 RID: 6610 RVA: 0x00047950 File Offset: 0x00045B50 public static bool smethod_2(this Class141 process, Form owner, EventHandler <EventArgs15> e = null) { using (Class499 @class = new Class499(owner)) { using (WindowSelect_1 windowSelect_ = Class460.smethod_0(e)) { @class.method_0(windowSelect_); if (windowSelect_.ShowDialog() == DialogResult.OK) { Class335.smethod_3(Class197.string_1, new object[] { windowSelect_.SelectedHandle }); process.MainWindowHandle = windowSelect_.SelectedHandle; Class335.smethod_3(Class197.string_0, new object[] { process.MainWindowHandle }); return(true); } } } return(false); }
// Token: 0x0600280C RID: 10252 RVA: 0x00093F24 File Offset: 0x00092124 public static Enum107 smethod_1(Class141 toontownWindow, Class150 original_capture, Rectangle capture_bounds, Class104 settings) { if (original_capture == null) { return(Enum107.const_2); } IntPtr mainWindowHandle = toontownWindow.MainWindowHandle; if (!toontownWindow.ProcessOpen) { return(Enum107.const_2); } if (original_capture != null && capture_bounds.Size.smethod_1()) { Enum107 result; using (Bitmap bitmap = Class364.smethod_3(mainWindowHandle, capture_bounds)) { using (Class125 @class = new Class125(bitmap)) { using (Class150 class2 = new Class150(@class)) { if (Class150.smethod_1(class2, original_capture, settings.MaxColorRange)) { result = Enum107.const_0; } else { result = Enum107.const_1; } } } } return(result); } return(Enum107.const_2); }
// Token: 0x06001D70 RID: 7536 RVA: 0x0005EC58 File Offset: 0x0005CE58 public static bool smethod_8(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class104 settings, PointF target, bool jump) { Class269.Class280 @class = new Class269.Class280(); @class.bool_0 = false; IntPtr mainWindowHandle = toontownWindow.ToonTownProcess.MainWindowHandle; if (!toontownWindow.ToonTownProcess.ProcessOpen) { return(false); } EventHandler eventHandler = null; EventHandler <EventArgs22> eventHandler2 = null; Class269.Class281 class2 = new Class269.Class281(); class2.class280_0 = @class; class2.manualResetEventSlim_0 = new ManualResetEventSlim(false); bool result; try { try { Class141 toonTownProcess = toontownWindow.ToonTownProcess; if (eventHandler == null) { eventHandler = new EventHandler(class2.method_0); } toonTownProcess.ProcessExited += eventHandler; Class129 logMonitor = toontownWindow.LogMonitor; if (eventHandler2 == null) { eventHandler2 = new EventHandler <EventArgs22>(class2.method_1); } logMonitor.CoordinatesChanged += eventHandler2; while (!class2.manualResetEventSlim_0.IsSet && !waitHandle.IsSet) { if (jump) { Class269.smethod_18(mainWindowHandle, new WaitHandle[] { waitHandle.WaitHandle, class2.manualResetEventSlim_0.WaitHandle }); } if (!Class269.smethod_5(toontownWindow, waitHandle, class2.manualResetEventSlim_0, settings, target, jump, true)) { class2.manualResetEventSlim_0.Wait(100); } } result = (class2.manualResetEventSlim_0.IsSet && !waitHandle.IsSet); } finally { @class.bool_0 = true; } } finally { if (class2.manualResetEventSlim_0 != null) { ((IDisposable)class2.manualResetEventSlim_0).Dispose(); } } return(result); }
// Token: 0x060019D1 RID: 6609 RVA: 0x0000904C File Offset: 0x0000724C public static bool smethod_1(this Class141 process, Form owner) { return(process.smethod_0() || process.smethod_2(owner, null)); }
// Token: 0x060019D0 RID: 6608 RVA: 0x0000903F File Offset: 0x0000723F public static bool smethod_0(this Class141 process) { return(Class197.smethod_3(Class502.string_9, process)); }
// Token: 0x060004E5 RID: 1253 RVA: 0x00028164 File Offset: 0x00026364 public static Class139 smethod_1(object object_0, Type type_0) { Class139 @class = object_0 as Class139; if (@class != null) { return(@class); } if (type_0 == null) { if (object_0 == null) { return(new Class166()); } type_0 = object_0.GetType(); } type_0 = Class102.smethod_1(type_0); if (type_0 == Class28.type_0) { @class = new Class166(); if (object_0 != null && object_0.GetType() != Class28.type_0) { @class.method_1(object_0.GetType()); } } else if (Class99.smethod_0 <Array>(type_0)) { @class = new Class140(); } else if (Class99.smethod_0 <string>(type_0)) { @class = new Class143(); } else if (Class99.smethod_0 <IntPtr>(type_0)) { @class = new Class146(); } else if (Class99.smethod_0 <UIntPtr>(type_0)) { @class = new Class157(); } else if (Class99.smethod_0 <ulong>(type_0)) { @class = new Class165(); } else if (Class99.smethod_0 <uint>(type_0)) { @class = new Class163(); } else if (Class99.smethod_0 <ushort>(type_0)) { @class = new Class159(); } else if (Class99.smethod_0 <long>(type_0)) { @class = new Class156(); } else if (Class99.smethod_0 <int>(type_0)) { @class = new Class145(); } else if (Class99.smethod_0 <short>(type_0)) { @class = new Class141(); } else if (Class99.smethod_0 <byte>(type_0)) { @class = new Class164(); } else if (Class99.smethod_0 <sbyte>(type_0)) { @class = new Class161(); } else if (Class99.smethod_0 <double>(type_0)) { @class = new Class158(); } else if (Class99.smethod_0 <float>(type_0)) { @class = new Class162(); } else if (Class99.smethod_0 <bool>(type_0)) { @class = new Class144(); } else if (Class99.smethod_0 <char>(type_0)) { @class = new Class155(); } else if (Class28.smethod_0(type_0)) { Class166 class2 = new Class166(); class2.method_1(type_0); @class = class2; } else { if (Class99.smethod_0 <Enum>(type_0)) { Enum enum_; if (object_0 == null) { if (type_0 == Class28.type_2) { enum_ = null; } else { enum_ = (Enum)Activator.CreateInstance(type_0); } } else if (type_0 == Class28.type_2 && object_0 is Enum) { enum_ = (Enum)object_0; } else { enum_ = (Enum)Enum.ToObject(type_0, object_0); } return(new Class160(enum_)); } if (Class99.smethod_0 <ValueType>(type_0)) { if (object_0 == null) { object object_; if (type_0 == Class28.type_3) { object_ = null; } else { object_ = Activator.CreateInstance(type_0); } @class = new Class154(object_); } else { if (object_0.GetType() != type_0) { try { object_0 = Convert.ChangeType(object_0, type_0); } catch { } } @class = new Class154(object_0); } return(@class); } @class = new Class166(); } if (object_0 != null) { @class.vmethod_1(object_0); } return(@class); }
public Class40() { this.idictionary_0 = new Dictionary <int, string>(); this.list_0 = new List <IMessageTypeRoom>(); this.class141_0 = null; }
// Token: 0x06001614 RID: 5652 RVA: 0x000063C1 File Offset: 0x000045C1 public static bool smethod_1(Class141 process, Form owner) { return(ToonTownParentForm.smethod_0(process) || process.smethod_2(owner, null)); }
private static Assembly smethod_0(object object_0, ResolveEventArgs resolveEventArgs_0) { lock (hashtable_0) { string str = resolveEventArgs_0.Name.Trim(); object obj2 = hashtable_0[str]; if (obj2 == null) { try { string str2 = smethod_1(str); foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) { if (assembly.GetName().Name.ToUpper() == str2.ToUpper()) { return(assembly); } } } catch { } } if (obj2 == null) { try { RSACryptoServiceProvider.UseMachineKeyStore = true; string s = smethod_1(str); byte[] bytes = Encoding.Unicode.GetBytes(s); string name = "b0494a1f-4bd3-" + Convert.ToBase64String(Class141.smethod_9(bytes)); Stream manifestResourceStream = typeof(Class145).Assembly.GetManifestResourceStream(name); if (manifestResourceStream != null) { try { BinaryReader reader = new BinaryReader(manifestResourceStream) { BaseStream = { Position = 0L } }; byte[] buffer = new byte[manifestResourceStream.Length]; reader.Read(buffer, 0, buffer.Length); reader.Close(); bool flag = false; Assembly assembly2 = null; try { assembly2 = Assembly.Load(buffer); } catch (FileLoadException) { flag = true; } catch (BadImageFormatException) { flag = true; } if (flag) { string path = Path.Combine(Path.Combine(Path.GetTempPath(), name), s + ".dll"); if (!File.Exists(path)) { Directory.CreateDirectory(Path.GetDirectoryName(path)); FileStream stream2 = new FileStream(path, FileMode.Create, FileAccess.Write); stream2.Write(buffer, 0, buffer.Length); stream2.Close(); } assembly2 = Assembly.LoadFile(path); hashtable_0.Add(str, assembly2); return(assembly2); } hashtable_0.Add(str, assembly2); return(assembly2); } catch { } } } catch { } return(null); } return((Assembly)obj2); } }
public LogonResponse Initialize(string userID, string logonPassword, string serverIP, int serverPort, ICustomizeHandler customizeHandler) { if (this.emptyAgileLogger_0 == null) { if (this.string_1 == null) { this.emptyAgileLogger_0 = new EmptyAgileLogger(); } else { FileAgileLogger logger = new FileAgileLogger(this.string_1) { MaxLength4ChangeFile = 0x100000L }; this.emptyAgileLogger_0 = (EmptyAgileLogger)logger; } } this.eventSafeTrigger_0.AgileLogger = this.emptyAgileLogger_0; this.string_0 = logonPassword; Class16 class2 = new Class16(); MessageForbiddenHandler class3 = new MessageForbiddenHandler(); this.object_0 = Class157.CreateInterface26((Enum6)0); int num = (!this.advancedOptions_0.CheckResponseTTL4Query || !this.bool_4) ? 10 : 0; this.class72_0 = new Class72(num, this.int_1); this.class72_0.SetEngine((IEngine)this.object_0); Interface36 interface2 = new Class94((ICommitMessageToServer)this.object_0, class3, null); Class79 class4 = new Class79(this.class72_0, interface2); BasicMessageTypeRoom room = new BasicMessageTypeRoom(); room.Initialize(); CustomizeMessageTypeRoom room2 = new CustomizeMessageTypeRoom(); room2.Initialize(); FileMessageTypeRoom room3 = new FileMessageTypeRoom(); room3.Initialize(); P2PSessionMessageTypeRoom room4 = new P2PSessionMessageTypeRoom(); room4.Initialize(); FriendsMessageTypeRoom room5 = new FriendsMessageTypeRoom(); room5.Initialize(); GroupMessageTypeRoom room6 = new GroupMessageTypeRoom(); room6.Initialize(); ContactsMessageTypeRoom room7 = new ContactsMessageTypeRoom(); room7.Initialize(); this.class113_0 = new BasicOutter(); this.class113_0.SetBasicMessageTypeRoom(room); this.class113_0.SetActionType(class4); this.class113_0.SetStreamContract(class2); this.class113_0.SetICommitMessageToServer((ICommitMessageToServer)this.object_0); this.class113_0.NgadStsqsh += new CbGeneric(this.method_1); this.class113_0.method_2(userID); this.class71_0 = new Class71(this.class113_0, this.bool_4 ? 0 : this.int_0); Class78 class9 = new Class78(); class9.method_5(this.class113_0); class9.method_1(room); class9.method_2(class2); class9.method_4((ICommitMessageToServer)this.object_0); class9.method_3(class4); this.class43_0 = new Class43(); this.class43_0.method_5(class4); this.class43_0.method_4(class2); this.class43_0.method_3(room2); this.class43_0.method_1(userID); CustomizeProcess class10 = new CustomizeProcess(); class10.SetStreamContractHelper(class2); class10.SetCustomizeHandler(customizeHandler); class10.SetCustomizeMessageTypeRoom(room2); class10.SetActionType(class4); class10.Event_0 += new CbGeneric <string, int, byte[], string>(this.OnMessageReceived); Class75 class7 = new Class75(class4, class2, room4); class7.method_1(userID); Class24 class8 = new Class24(); class8.method_0(room4); class8.method_1(class2); class8.DaTyrcXefU(class7); this.class2_0 = new FileTransfering(); this.class2_0.method_0(this.emptyAgileLogger_0); this.class13_0 = new FileHandler(); this.class13_0.method_0(this.emptyAgileLogger_0); this.class2_0.TTL4ResumedFileItem = this.advancedOptions_0.TempFile4ResumedTTL; this.class13_0.method_1(class4); this.class13_0.method_3(class2); this.class13_0.imethod_1(0x100000); this.class13_0.method_7(this.advancedOptions_0.UseWorkThreadPool); this.class13_0.Initialize(userID, room3.FilePackageData); this.class28_0 = new Class28(); this.class28_0.method_2(this.advancedOptions_0.CheckFileZeroSpeedSpanInSecs); this.class28_0.method_0(this.emptyAgileLogger_0); this.class28_0.method_13(room3); this.class28_0.method_14(class2); this.class28_0.method_16(class4); this.class28_0.method_12(this.class2_0); this.class28_0.method_11(this.class13_0); this.class28_0.Initialize(userID); Class70 class11 = new Class70(); class11.method_0(room3); class11.method_1(class2); class11.method_3(this.class13_0); class11.method_2(this.class2_0); class11.method_4(this.class28_0); this.class126_0 = new FriendsOutter(); this.class126_0.method_4(class4); this.class126_0.method_3(class2); this.class126_0.method_2(room5); this.class126_0.FriendOffline += new CbGeneric <string>(this.method_6); this.class126_0.method_1(userID); Class59 class12 = new Class59(); class12.method_2(class2); class12.method_3(this.class126_0); class12.method_1(room5); this.class19_0 = new GroupOutter2(); this.class19_0.method_0(class4); this.class19_0.uBkeyEkxPJ(class2); this.class19_0.Iibebiqvn1(room6); this.class19_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0); this.class19_0.GroupmateOffline += new CbGeneric <string>(this.method_7); this.class19_0.method_4(userID); Class140 class13 = new Class140(); class13.method_0(room6); class13.method_2(this.class19_0); class13.method_1(class2); this.ContactsOutter_0 = new ContactsOutter(); this.ContactsOutter_0.method_2(class4); this.ContactsOutter_0.SetStreamContract(class2); this.ContactsOutter_0.SetMessageType(room7); this.ContactsOutter_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0); this.ContactsOutter_0.ContactsOffline += new CbGeneric <string>(this.method_8); this.ContactsOutter_0.method_5(userID); Class20 class14 = new Class20(); class14.SetMessageType(room7); class14.SetOutter(this.ContactsOutter_0); class14.SetStreamContract(class2); IProcess[] processers = new IProcess[] { class9, class10, class8, class11, class12, class13, class14 }; this.class141_0 = new Class141(processers, this.class72_0); this.class141_0.method_6(this.advancedOptions_0.AsynMessageQueueEnabled && !this.bool_4); this.class141_0.method_7(class4); this.class141_0.method_4(this.emptyAgileLogger_0); this.class141_0.method_8(); new Class40(new IMessageTypeRoom[] { room, room2, room3, room4, room5, room6, room7 }, this.class141_0).method_2(); MessageDispatcher class6 = new MessageDispatcher(new Class144(new Class115(this.class141_0)), class3); class6.imethod_0(this.emptyAgileLogger_0); this.object_0.SetAgileLogger(this.emptyAgileLogger_0); this.object_0.Sock5ProxyInfo = this.sock5ProxyInfo_0; this.object_0.SetAgileIPE(new AgileIPE(serverIP, serverPort)); this.object_0.SetStreamContract(class2); this.object_0.imethod_12(class6); this.object_0.imethod_10(GlobalUtil.MaxLengthOfMessage); this.object_0.AutoReconnect = false; this.object_0.imethod_23((this.advancedOptions_0.WriteTimeoutInSecs <= 0) ? -1 : (this.advancedOptions_0.WriteTimeoutInSecs * 0x3e8)); this.object_0.SocketSendBuffSize = this.advancedOptions_0.SocketSendBuffSize; this.object_0.UncompletedSendingCount4Busy = this.advancedOptions_0.UncompletedSendingCount4Busy; this.object_0.ConnectionInterrupted += new CbGeneric(this.method_5); this.object_0.imethod_25(new CbGeneric(this.method_4)); this.object_0.ConnectionRebuildStart += new CbGeneric(this.method_2); this.object_0.Initialize(); LogonFullResponse response = this.class113_0.method_7(this.systemToken, this.string_0); if (response.LogonResult != LogonResult.Succeed) { this.object_0.OnDispose(); return(response); } this.object_0.imethod_27(); this.bool_0 = response.Boolean_0; this.bool_3 = response.GroupRelationEnabled; if ((this.bool_0 && this.advancedOptions_0.Boolean_0) && !this.bool_4) { if (response.UseAsP2PServer && (this.agileIPE_0 == null)) { this.agileIPE_0 = new AgileIPE(this.object_0.GetAgileIPE().String_0, this.object_0.GetAgileIPE().Port + 1); } if (this.agileIPE_0 != null) { this.class58_0 = new P2PController(); this.class58_0.method_6(this.agileIPE_0); this.class58_0.method_5(this.emptyAgileLogger_0); this.class58_0.method_3((Interface26)this.object_0); this.class58_0.method_2(class7); this.class58_0.method_4(room4); this.class58_0.P2PChannelClosed += new CbGeneric <P2PChannelState>(this.method_3); this.class58_0.method_7(userID, this.bool_2); interface2.imethod_2(this.class58_0); class8.method_2(this.class58_0); this.class13_0.method_4(new Class56(this.class58_0)); this.class19_0.method_1(this.class58_0); } } if (this.bool_2) { this.class108_0 = new TcpPassiveEngine((Interface26)this.object_0, this.class113_0, this.emptyAgileLogger_0); this.class108_0.method_3(); } this.class71_0.method_0(); this.class113_0.SendHeartBeatMessage(); this.string_3 = userID; this.bool_1 = true; this.object_0.AutoReconnect = this.bool_5; return(response); }
public void method_1(Class141 class141_1) { this.class141_0 = class141_1; }
public override void Visit(Class141 c) { }
public abstract void Visit(Class141 c);