using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; using PluginSDK.Enums; using PluginSDK.Interfaces; using PluginSDK.Packets; using ws1flOn4295GVZuW05j; namespace PluginSDK.Connection; [ComVisible(false)] public static class CustomPluginClient { [CompilerGenerated] private static PluginClient C2xi8PhYW0; internal static CustomPluginClient qHJT1CL9EK4QyIihfdQ; public static PluginClient Client { [CompilerGenerated] get { return C2xi8PhYW0; } [CompilerGenerated] private set { C2xi8PhYW0 = c2xi8PhYW; } } public static void Run(byte[] packet, Action onPacketReceived) { int num = 1; int num4 = default(int); PluginClient pluginClient = default(PluginClient); string extra = default(string); int num3 = default(int); string text2 = default(string); string extraParameter = default(string); int num10 = default(int); int num7 = default(int); int num9 = default(int); while (true) { switch (num) { case 989: break; case 1: try { ImPlugin imPlugin = (ImPlugin)Serialization.PacketDesirialize(packet); int num2 = 2; while (true) { string text; switch (num2) { default: if (num4 != 24) { if (num4 == 1004) { goto IL_0037; } goto case 9; } Client = pluginClient; num2 = 11; continue; case 2: extra = ""; num2 = 1; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_1f6b397b209f48209f6f78382abc0dd0 == 0) { num2 = 1; } continue; case 11: pluginClient.ReceivedMessageEvent += onPacketReceived; num2 = 5; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_7ee321f1774e478e9a3977aac8e8bf0a != 0) { num2 = 21; } continue; case 15: num3 = text2.IndexOf('|'); num2 = 3; continue; case 3: if (num3 >= 0) { num2 = 24; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_ba6efaf0d2294319ae0da035931c22d1 != 0) { num2 = 12; } continue; } goto case 16; case 16: text = text2; break; case 9: case 14: pluginClient = new PluginClient(EnumPlugins.CustomPlugin); num4 = 24; goto IL_0037; case 0: text2 = extraParameter.Substring(teChAknSMwcsOKOlG5s.pNInuuWLfn(0x317612CF ^ _003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_08f0ca6f783d4de086a0138e7d3650cd).Length); num2 = 15; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_501ddf0930d6428bb18ddd3568b08e8e == 0) { num2 = 22; } continue; case 10: Thread.Sleep(2000); num2 = 6; continue; case 1: extraParameter = imPlugin.ExtraParameter; num2 = 4; continue; case 6: case 13: if (!pluginClient.IsConnected) { num2 = 7; continue; } goto case 10; case 8: if (!extraParameter.StartsWith(teChAknSMwcsOKOlG5s.pNInuuWLfn(0x72BB1F7C ^ _003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_f4a7715299884ff18f1cd79197380e6c))) { num2 = 14; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_bd4735a32b8243ab87438897f9b05148 == 0) { num2 = 15; } continue; } goto case 0; case 5: pluginClient.Connect(imPlugin.ClientInformation, extra); num2 = 23; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_b3f8cb7184cb4b4993fb986967ec61f3 == 0) { num2 = 13; } continue; case 4: if (!string.IsNullOrEmpty(extraParameter)) { num2 = 8; continue; } goto case 9; case 12: text = text2.Substring(0, num3); break; case 7: return; IL_0037: num2 = num4; continue; } extra = text; num2 = 9; } } finally { int num5 = 2; while (true) { switch (num5) { default: if (num10 == 990) { num5 = num10; continue; } goto end_IL_0269; case 0: break; case 2: try { PluginClient client = Client; int num6; if (client == null) { num6 = 7; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_5e15ff1dd14a4e0a9b63367783e1c315 == 0) { num6 = 0; } } else { client.Dispose(); num6 = 5; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_fcfb1a55a15b47b2a0f4975f0e9f4fe5 != 0) { num6 = 1; } } while (true) { switch (num6) { default: if (num7 == 989) { num6 = num7; continue; } break; case 0: break; case 1: break; } break; } } catch { int num8 = 0; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_411a01a90e184ccea1d245585f590e75 != 0) { num8 = 3; } while (true) { switch (num8) { default: if (num9 == 988) { num8 = num9; continue; } break; case 0: break; } break; } } break; case 1: goto end_IL_0269; } Client = null; num5 = 1; if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_1b3d64cf90d3478ea689f41ea1de0e20 == 0) { num5 = 1; } continue; end_IL_0269: break; } } default: return; } } } internal static bool E3dttaLW0slBFZGvph1() { return qHJT1CL9EK4QyIihfdQ == null; } internal static CustomPluginClient rPDIXfLoJ4aYHhD8xcZ() { return qHJT1CL9EK4QyIihfdQ; } }