1718 lines
41 KiB
C#
1718 lines
41 KiB
C#
using System;
|
|
using System.Net.Security;
|
|
using System.Net.Sockets;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using System.Security.Authentication;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Threading;
|
|
using E19qRRiqHck2XO5krTU;
|
|
using E2tn7l8spQ8u1B4B4e;
|
|
using PluginSDK.Enums;
|
|
using PluginSDK.Interfaces;
|
|
using PluginSDK.Packets;
|
|
using XW3iQq2AVWsC9kohc8a;
|
|
using ws1flOn4295GVZuW05j;
|
|
|
|
namespace PluginSDK.Connection;
|
|
|
|
[ComVisible(false)]
|
|
public class PluginClient
|
|
{
|
|
[CompilerGenerated]
|
|
private Action<IPacket, PluginClient> QYOnf4rxfk;
|
|
|
|
[CompilerGenerated]
|
|
private bool hKbnioP5rI;
|
|
|
|
private readonly int zNann1InO2;
|
|
|
|
private Socket btgnmmtKTV;
|
|
|
|
private SslStream mVTn2y0ryo;
|
|
|
|
private readonly object F19nLsVPsg;
|
|
|
|
private readonly object zrlnkFg4nO;
|
|
|
|
private bool JgenJiy1Mg;
|
|
|
|
private readonly EnumPlugins no9n1MpXgl;
|
|
|
|
private Timer DaAnA4mVQA;
|
|
|
|
private static PluginClient IFUa5RLux8P613hkmej;
|
|
|
|
public bool IsConnected
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return hKbnioP5rI;
|
|
}
|
|
[CompilerGenerated]
|
|
private set
|
|
{
|
|
int num = 1;
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
while (true)
|
|
{
|
|
switch (num2)
|
|
{
|
|
default:
|
|
goto IL_0010;
|
|
case 0:
|
|
return;
|
|
case 1:
|
|
break;
|
|
}
|
|
goto IL_001e;
|
|
IL_0010:
|
|
if (num == 989)
|
|
{
|
|
break;
|
|
}
|
|
goto IL_001e;
|
|
IL_001e:
|
|
hKbnioP5rI = flag;
|
|
num2 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_0eb6b5636bc94506af0ea669ffeed289 == 0)
|
|
{
|
|
num2 = 3;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public event Action<IPacket, PluginClient> ReceivedMessageEvent
|
|
{
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
int num = 2;
|
|
Action<IPacket, PluginClient> action2 = default(Action<IPacket, PluginClient>);
|
|
Action<IPacket, PluginClient> action = default(Action<IPacket, PluginClient>);
|
|
Action<IPacket, PluginClient> value2 = default(Action<IPacket, PluginClient>);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
while (true)
|
|
{
|
|
switch (num3)
|
|
{
|
|
default:
|
|
if (num2 != 11)
|
|
{
|
|
if (num2 == 992)
|
|
{
|
|
goto end_IL_0003;
|
|
}
|
|
}
|
|
else if ((object)action2 == action)
|
|
{
|
|
num3 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_9187d16b686d4b2fa356c9c894103305 != 0)
|
|
{
|
|
num3 = 4;
|
|
}
|
|
continue;
|
|
}
|
|
goto case 1;
|
|
case 2:
|
|
action2 = QYOnf4rxfk;
|
|
num3 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_1f6b397b209f48209f6f78382abc0dd0 == 0)
|
|
{
|
|
num3 = 8;
|
|
}
|
|
continue;
|
|
case 0:
|
|
return;
|
|
case 1:
|
|
action = action2;
|
|
num3 = 3;
|
|
continue;
|
|
case 4:
|
|
break;
|
|
case 3:
|
|
value2 = (Action<IPacket, PluginClient>)Delegate.Combine(action, value);
|
|
num3 = 6;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_499e5150a96d46988d7849ddb38bfdad == 0)
|
|
{
|
|
num3 = 4;
|
|
}
|
|
continue;
|
|
}
|
|
goto end_IL_0002;
|
|
continue;
|
|
end_IL_0003:
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0002:
|
|
break;
|
|
}
|
|
action2 = Interlocked.CompareExchange(ref QYOnf4rxfk, value2, action);
|
|
num = 8;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_499e5150a96d46988d7849ddb38bfdad == 0)
|
|
{
|
|
num = 11;
|
|
}
|
|
}
|
|
}
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
int num = 2;
|
|
Action<IPacket, PluginClient> value2 = default(Action<IPacket, PluginClient>);
|
|
Action<IPacket, PluginClient> action2 = default(Action<IPacket, PluginClient>);
|
|
Action<IPacket, PluginClient> action = default(Action<IPacket, PluginClient>);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
while (true)
|
|
{
|
|
switch (num3)
|
|
{
|
|
default:
|
|
if (num2 == 11)
|
|
{
|
|
value2 = (Action<IPacket, PluginClient>)Delegate.Remove(action2, value);
|
|
num3 = 4;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_3df293852b674529ae9bfb1be31083d8 == 0)
|
|
{
|
|
num3 = 0;
|
|
}
|
|
continue;
|
|
}
|
|
goto IL_0024;
|
|
case 1:
|
|
goto end_IL_0002;
|
|
case 0:
|
|
action = Interlocked.CompareExchange(ref QYOnf4rxfk, value2, action2);
|
|
num3 = 4;
|
|
continue;
|
|
case 4:
|
|
if ((object)action == action2)
|
|
{
|
|
num3 = 6;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_24faa0276f6f44618e997d66140f0229 == 0)
|
|
{
|
|
num3 = 3;
|
|
}
|
|
continue;
|
|
}
|
|
goto end_IL_0002;
|
|
case 2:
|
|
break;
|
|
case 3:
|
|
return;
|
|
}
|
|
goto IL_007b;
|
|
IL_0024:
|
|
if (num2 == 992)
|
|
{
|
|
break;
|
|
}
|
|
goto IL_007b;
|
|
IL_007b:
|
|
action = QYOnf4rxfk;
|
|
num3 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_8e047cd5a8d34c9289514eca26fdadb8 != 0)
|
|
{
|
|
num3 = 0;
|
|
}
|
|
}
|
|
continue;
|
|
end_IL_0002:
|
|
break;
|
|
}
|
|
action2 = action;
|
|
num = 11;
|
|
}
|
|
}
|
|
}
|
|
|
|
public PluginClient(EnumPlugins p)
|
|
{
|
|
NBKP5U21DpWjdkoBBdj.YtEk5Wl7Vq();
|
|
zNann1InO2 = 512000;
|
|
F19nLsVPsg = new object();
|
|
zrlnkFg4nO = new object();
|
|
base._002Ector();
|
|
int num = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_fe1f37e4aea141f8a0d89c36daff63bf != 0)
|
|
{
|
|
num = 5;
|
|
}
|
|
int num2 = default(int);
|
|
while (true)
|
|
{
|
|
switch (num)
|
|
{
|
|
default:
|
|
if (num2 == 989)
|
|
{
|
|
num = num2;
|
|
break;
|
|
}
|
|
return;
|
|
case 0:
|
|
no9n1MpXgl = p;
|
|
num = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_24faa0276f6f44618e997d66140f0229 != 0)
|
|
{
|
|
num = 6;
|
|
}
|
|
break;
|
|
case 1:
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void Connect(ClientInformation clientInformation, string extra = null)
|
|
{
|
|
int num = 7;
|
|
int num8 = default(int);
|
|
int num5 = default(int);
|
|
int num7 = default(int);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
while (true)
|
|
{
|
|
switch (num3)
|
|
{
|
|
default:
|
|
if (num2 != 21)
|
|
{
|
|
if (num2 == 1002)
|
|
{
|
|
goto end_IL_0003;
|
|
}
|
|
goto case 2;
|
|
}
|
|
btgnmmtKTV.NoDelay = true;
|
|
num3 = 20;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_f4b638c6bf3a4e12b0bb7266586eb369 != 0)
|
|
{
|
|
num3 = 5;
|
|
}
|
|
continue;
|
|
case 0:
|
|
mVTn2y0ryo.ReadTimeout = (int)TimeSpan.FromMinutes(5.0).TotalMilliseconds;
|
|
num3 = 3;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_b5967e50e137478cac39f365075d9072 != 0)
|
|
{
|
|
num3 = 10;
|
|
}
|
|
continue;
|
|
case 2:
|
|
Send(new ImPlugin
|
|
{
|
|
ClientInformation = clientInformation,
|
|
Plugin = no9n1MpXgl,
|
|
ExtraParameter = extra
|
|
});
|
|
num3 = 10;
|
|
continue;
|
|
case 13:
|
|
DaAnA4mVQA = new Timer(riqiPCfqAb, null, (int)TimeSpan.FromSeconds((double)num8).TotalMilliseconds, (int)TimeSpan.FromSeconds((double)num8).TotalMilliseconds);
|
|
num3 = 2;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_2ce4858b84e94d819f0a317cc4129ea4 == 0)
|
|
{
|
|
num3 = 20;
|
|
}
|
|
continue;
|
|
case 1:
|
|
return;
|
|
case 6:
|
|
btgnmmtKTV.ReceiveBufferSize = zNann1InO2;
|
|
num3 = 4;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_d4a356c36b2e4f47a614526faef74694 == 0)
|
|
{
|
|
num3 = 14;
|
|
}
|
|
continue;
|
|
case 9:
|
|
throw new Exception(teChAknSMwcsOKOlG5s.pNInuuWLfn(0x403F249F ^ _003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_ba76871b56e54f669cda2d26609cc5b4));
|
|
case 11:
|
|
mVTn2y0ryo.AuthenticateAsClient(btgnmmtKTV.RemoteEndPoint.ToString().Split(new char[1] { ':' })[0], null, SslProtocols.Tls, checkCertificateRevocation: false);
|
|
num3 = 8;
|
|
continue;
|
|
case 8:
|
|
IsConnected = true;
|
|
num3 = 14;
|
|
continue;
|
|
case 7:
|
|
btgnmmtKTV = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
|
|
num3 = 6;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_facf28e488a94c39b60d8c8a04f98a66 == 0)
|
|
{
|
|
num3 = 20;
|
|
}
|
|
continue;
|
|
case 14:
|
|
num8 = new vg5SL6i3qQbdPGqXycX().PmpibhxdgB(20, 60);
|
|
num3 = 13;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_67278bb431504846a19cc3a84ad5f349 == 0)
|
|
{
|
|
num3 = 13;
|
|
}
|
|
continue;
|
|
case 3:
|
|
mVTn2y0ryo.WriteTimeout = (int)TimeSpan.FromMinutes(5.0).TotalMilliseconds;
|
|
num3 = 8;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_499e5150a96d46988d7849ddb38bfdad == 0)
|
|
{
|
|
num3 = 11;
|
|
}
|
|
continue;
|
|
case 10:
|
|
ThreadPool.QueueUserWorkItem(delegate
|
|
{
|
|
int num9 = 1;
|
|
int num11 = default(int);
|
|
int num13 = default(int);
|
|
while (true)
|
|
{
|
|
switch (num9)
|
|
{
|
|
case 989:
|
|
break;
|
|
default:
|
|
return;
|
|
case 1:
|
|
try
|
|
{
|
|
cypiw9dgyu();
|
|
int num10 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_46dcb9aa916148e38083172ad031baf8 != 0)
|
|
{
|
|
num10 = 1;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num10)
|
|
{
|
|
case 0:
|
|
return;
|
|
default:
|
|
if (num11 != 988)
|
|
{
|
|
return;
|
|
}
|
|
num10 = num11;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
int num12 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_0e9f30f8c3eb41d0a6c7280f73d03d03 != 0)
|
|
{
|
|
num12 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num12)
|
|
{
|
|
case 0:
|
|
return;
|
|
default:
|
|
if (num13 != 988)
|
|
{
|
|
return;
|
|
}
|
|
num12 = num13;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
num3 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_3df293852b674529ae9bfb1be31083d8 != 0)
|
|
{
|
|
num3 = 5;
|
|
}
|
|
continue;
|
|
case 4:
|
|
goto end_IL_0002;
|
|
case 12:
|
|
break;
|
|
case 5:
|
|
try
|
|
{
|
|
btgnmmtKTV.Connect(clientInformation.ConnectedIP, clientInformation.ConnectedPort);
|
|
int num4 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_d61a1db71a0e45e2a3390548bd7c7e60 != 0)
|
|
{
|
|
num4 = 5;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num4)
|
|
{
|
|
default:
|
|
if (num5 == 988)
|
|
{
|
|
num4 = num5;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
int num6 = 3;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_9ef44bdeb0384bb3a192f49113a29e33 != 0)
|
|
{
|
|
num6 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num6)
|
|
{
|
|
default:
|
|
if (num7 == 988)
|
|
{
|
|
num6 = num7;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
if (btgnmmtKTV.Connected)
|
|
{
|
|
mVTn2y0ryo = new SslStream(new NetworkStream(btgnmmtKTV, ownsSocket: true), leaveInnerStreamOpen: false, EShivOA2RH);
|
|
num3 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_9ef44bdeb0384bb3a192f49113a29e33 == 0)
|
|
{
|
|
num3 = 10;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
num3 = 9;
|
|
}
|
|
continue;
|
|
end_IL_0003:
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0002:
|
|
break;
|
|
}
|
|
btgnmmtKTV.SendBufferSize = zNann1InO2;
|
|
num = 21;
|
|
}
|
|
}
|
|
|
|
private void riqiPCfqAb(object P_0)
|
|
{
|
|
int num = 1;
|
|
do
|
|
{
|
|
int num2 = num;
|
|
while (true)
|
|
{
|
|
switch (num2)
|
|
{
|
|
case 0:
|
|
return;
|
|
case 1:
|
|
Send(new FHeE2G5KXmRiAnFP4C());
|
|
num2 = 6;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_781eb1dda25b44d79c819c3ebb4656dd != 0)
|
|
{
|
|
num2 = 0;
|
|
}
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
while (num == 989);
|
|
}
|
|
|
|
private bool EShivOA2RH(object P_0, X509Certificate P_1, X509Chain P_2, SslPolicyErrors P_3)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
private void cypiw9dgyu()
|
|
{
|
|
int num = 2;
|
|
int num11 = default(int);
|
|
int num6 = default(int);
|
|
int num5 = default(int);
|
|
int num12 = default(int);
|
|
byte[] array = default(byte[]);
|
|
bool lockTaken = default(bool);
|
|
object obj = default(object);
|
|
int num8 = default(int);
|
|
IPacket arg = default(IPacket);
|
|
int num10 = default(int);
|
|
int num15 = default(int);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
do
|
|
{
|
|
int num3 = num2;
|
|
while (true)
|
|
{
|
|
switch (num3)
|
|
{
|
|
default:
|
|
if (num2 == 12)
|
|
{
|
|
num11 = 0;
|
|
num3 = 4;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_1f6b397b209f48209f6f78382abc0dd0 == 0)
|
|
{
|
|
num3 = 12;
|
|
}
|
|
continue;
|
|
}
|
|
goto end_IL_0003;
|
|
case 4:
|
|
num6 = 0;
|
|
num3 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_b3f8cb7184cb4b4993fb986967ec61f3 != 0)
|
|
{
|
|
num3 = 12;
|
|
}
|
|
continue;
|
|
case 2:
|
|
num5 = 4;
|
|
num3 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_f657717d8f834c178c7cd09a108bbe65 == 0)
|
|
{
|
|
num3 = 5;
|
|
}
|
|
continue;
|
|
case 3:
|
|
Dispose();
|
|
num3 = 5;
|
|
continue;
|
|
case 1:
|
|
break;
|
|
case 5:
|
|
return;
|
|
case 0:
|
|
try
|
|
{
|
|
while (true)
|
|
{
|
|
int num4;
|
|
if (!IsConnected)
|
|
{
|
|
num4 = 32;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_98964c4f10f043cdb63e39d1f20974f7 == 0)
|
|
{
|
|
num4 = 0;
|
|
}
|
|
goto IL_00b1;
|
|
}
|
|
goto IL_0235;
|
|
IL_00b1:
|
|
while (true)
|
|
{
|
|
switch (num4)
|
|
{
|
|
default:
|
|
if (num12 != 40)
|
|
{
|
|
if (num12 == 1020)
|
|
{
|
|
goto IL_00af;
|
|
}
|
|
goto case 20;
|
|
}
|
|
goto case 14;
|
|
case 2:
|
|
throw new Exception();
|
|
case 0:
|
|
case 27:
|
|
if (num5 == 0)
|
|
{
|
|
num4 = 22;
|
|
continue;
|
|
}
|
|
goto case 24;
|
|
case 16:
|
|
break;
|
|
case 13:
|
|
if (num6 <= 0)
|
|
{
|
|
num4 = 29;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_cbc10b9a4f014e50ac3911f08194bec9 == 0)
|
|
{
|
|
num4 = 4;
|
|
}
|
|
continue;
|
|
}
|
|
goto case 21;
|
|
case 12:
|
|
num11 += num6;
|
|
num4 = 30;
|
|
continue;
|
|
case 1:
|
|
case 4:
|
|
throw new Exception();
|
|
case 14:
|
|
if (num5 != 0)
|
|
{
|
|
num4 = 11;
|
|
continue;
|
|
}
|
|
goto case 8;
|
|
case 5:
|
|
num6 = 0;
|
|
num4 = 14;
|
|
continue;
|
|
case 15:
|
|
num11 += num6;
|
|
num4 = 25;
|
|
continue;
|
|
case 17:
|
|
goto IL_0235;
|
|
case 6:
|
|
case 9:
|
|
throw new Exception();
|
|
case 31:
|
|
num11 = 0;
|
|
num4 = 5;
|
|
continue;
|
|
case 29:
|
|
array = new byte[num5];
|
|
num4 = 31;
|
|
continue;
|
|
case 23:
|
|
if (num6 > 0)
|
|
{
|
|
num4 = 20;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_8e35eb92feeb484bb61c00673e3b1979 != 0)
|
|
{
|
|
num4 = 29;
|
|
}
|
|
continue;
|
|
}
|
|
goto case 2;
|
|
case 25:
|
|
num5 -= num6;
|
|
num4 = 23;
|
|
continue;
|
|
case 21:
|
|
if (num5 < 0)
|
|
{
|
|
goto case 1;
|
|
}
|
|
goto IL_02c8;
|
|
case 24:
|
|
num6 = mVTn2y0ryo.Read(array, num11, num5);
|
|
num4 = 8;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_c4c52f9da2f74c12af1b90719cab4223 != 0)
|
|
{
|
|
num4 = 15;
|
|
}
|
|
continue;
|
|
case 18:
|
|
if (num5 <= 0)
|
|
{
|
|
num4 = 9;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_fcfb1a55a15b47b2a0f4975f0e9f4fe5 != 0)
|
|
{
|
|
num4 = 6;
|
|
}
|
|
continue;
|
|
}
|
|
goto case 29;
|
|
case 10:
|
|
array = new byte[4];
|
|
num4 = 26;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_facf28e488a94c39b60d8c8a04f98a66 == 0)
|
|
{
|
|
num4 = 3;
|
|
}
|
|
continue;
|
|
case 28:
|
|
lockTaken = false;
|
|
num4 = 13;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_36d48b49d2a245aa8ddb9fb75060fde3 == 0)
|
|
{
|
|
num4 = 3;
|
|
}
|
|
continue;
|
|
case 26:
|
|
num11 = 0;
|
|
num4 = 19;
|
|
continue;
|
|
case 8:
|
|
obj = zrlnkFg4nO;
|
|
num4 = 28;
|
|
continue;
|
|
case 7:
|
|
case 11:
|
|
num6 = mVTn2y0ryo.Read(array, num11, num5);
|
|
num4 = 12;
|
|
continue;
|
|
case 22:
|
|
num5 = BitConverter.ToInt32(array, 0);
|
|
num4 = 18;
|
|
continue;
|
|
case 19:
|
|
num6 = 0;
|
|
num4 = 27;
|
|
continue;
|
|
case 3:
|
|
try
|
|
{
|
|
Monitor.Enter(obj, ref lockTaken);
|
|
int num7 = 8;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_6651f8592e684e849da751d50852d553 != 0)
|
|
{
|
|
num7 = 2;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num7)
|
|
{
|
|
default:
|
|
switch (num8)
|
|
{
|
|
case 990:
|
|
break;
|
|
default:
|
|
goto end_IL_03e2;
|
|
case 10:
|
|
{
|
|
Action<IPacket, PluginClient> action = QYOnf4rxfk;
|
|
if (action == null)
|
|
{
|
|
num7 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_9ef44bdeb0384bb3a192f49113a29e33 == 0)
|
|
{
|
|
num7 = 8;
|
|
}
|
|
continue;
|
|
}
|
|
action(arg, this);
|
|
num7 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_8e8cfe5bffb04a468a4c934b6e89d98f == 0)
|
|
{
|
|
num7 = 6;
|
|
}
|
|
continue;
|
|
}
|
|
}
|
|
break;
|
|
case 2:
|
|
arg = Serialization.PacketDesirialize(array);
|
|
num8 = 10;
|
|
break;
|
|
case 0:
|
|
goto end_IL_03e2;
|
|
case 1:
|
|
goto end_IL_03e2;
|
|
}
|
|
num7 = num8;
|
|
continue;
|
|
end_IL_03e2:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
int num9;
|
|
if (!lockTaken)
|
|
{
|
|
num9 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_5e15ff1dd14a4e0a9b63367783e1c315 != 0)
|
|
{
|
|
num9 = 5;
|
|
}
|
|
goto IL_0480;
|
|
}
|
|
goto IL_049f;
|
|
IL_0480:
|
|
while (true)
|
|
{
|
|
switch (num9)
|
|
{
|
|
default:
|
|
if (num10 == 990)
|
|
{
|
|
goto IL_047e;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
case 1:
|
|
goto end_IL_0480;
|
|
case 2:
|
|
goto end_IL_0480;
|
|
}
|
|
goto IL_049f;
|
|
IL_047e:
|
|
num9 = num10;
|
|
continue;
|
|
end_IL_0480:
|
|
break;
|
|
}
|
|
goto end_IL_0458;
|
|
IL_049f:
|
|
Monitor.Exit(obj);
|
|
num9 = 2;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_9187d16b686d4b2fa356c9c894103305 != 0)
|
|
{
|
|
num9 = 3;
|
|
}
|
|
goto IL_0480;
|
|
end_IL_0458:;
|
|
}
|
|
break;
|
|
case 20:
|
|
if (num5 >= 0)
|
|
{
|
|
num4 = 37;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_7ee321f1774e478e9a3977aac8e8bf0a == 0)
|
|
{
|
|
num4 = 0;
|
|
}
|
|
continue;
|
|
}
|
|
goto case 2;
|
|
case 30:
|
|
num5 -= num6;
|
|
num4 = 13;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_5960ab896a62471f85ad7b6ede146b4f == 0)
|
|
{
|
|
num4 = 27;
|
|
}
|
|
continue;
|
|
case 32:
|
|
goto end_IL_0173;
|
|
}
|
|
break;
|
|
}
|
|
continue;
|
|
IL_02c8:
|
|
int num13 = 40;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_b0aac02857a444daa99a59abbb107401 == 0)
|
|
{
|
|
num13 = 21;
|
|
}
|
|
goto IL_00ad;
|
|
IL_0235:
|
|
num5 = 4;
|
|
num13 = 10;
|
|
goto IL_00ad;
|
|
IL_00ad:
|
|
num12 = num13;
|
|
goto IL_00af;
|
|
IL_00af:
|
|
num4 = num12;
|
|
goto IL_00b1;
|
|
continue;
|
|
end_IL_0173:
|
|
break;
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
int num14 = 6;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_781eb1dda25b44d79c819c3ebb4656dd != 0)
|
|
{
|
|
num14 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num14)
|
|
{
|
|
default:
|
|
if (num15 == 988)
|
|
{
|
|
num14 = num15;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
goto case 3;
|
|
}
|
|
goto end_IL_0002;
|
|
continue;
|
|
end_IL_0003:
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0002:
|
|
break;
|
|
}
|
|
while (num2 == 993);
|
|
array = new byte[4];
|
|
num = 12;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_a267596e458d4ee3839a403c2d8a3690 == 0)
|
|
{
|
|
num = 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
public bool Send(IPacket pack)
|
|
{
|
|
int num = 3;
|
|
object f19nLsVPsg = default(object);
|
|
bool lockTaken = default(bool);
|
|
int num4 = default(int);
|
|
bool result = default(bool);
|
|
byte[] array = default(byte[]);
|
|
int num7 = default(int);
|
|
int num8 = default(int);
|
|
int num9 = default(int);
|
|
int num10 = default(int);
|
|
byte[] bytes = default(byte[]);
|
|
int num12 = default(int);
|
|
int num14 = default(int);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
while (true)
|
|
{
|
|
switch (num2)
|
|
{
|
|
default:
|
|
goto IL_0018;
|
|
case 1:
|
|
try
|
|
{
|
|
Monitor.Enter(f19nLsVPsg, ref lockTaken);
|
|
int num3 = 7;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_76d8d99b4f1948a480249e3f1408d4e5 == 0)
|
|
{
|
|
num3 = 2;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num3)
|
|
{
|
|
default:
|
|
if (num4 == 991)
|
|
{
|
|
num3 = num4;
|
|
continue;
|
|
}
|
|
goto case 2;
|
|
case 1:
|
|
Dispose();
|
|
num3 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_caae323a53774cf3a9d226928402337f != 0)
|
|
{
|
|
num3 = 2;
|
|
}
|
|
continue;
|
|
case 0:
|
|
result = false;
|
|
num3 = 3;
|
|
continue;
|
|
case 2:
|
|
try
|
|
{
|
|
int num5;
|
|
if (mVTn2y0ryo == null)
|
|
{
|
|
num5 = 14;
|
|
goto IL_00a5;
|
|
}
|
|
array = Serialization.Ev3No9Wbt(pack);
|
|
int num6 = 17;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_76d8d99b4f1948a480249e3f1408d4e5 == 0)
|
|
{
|
|
num6 = 0;
|
|
}
|
|
goto IL_00a9;
|
|
IL_00a7:
|
|
num6 = num7;
|
|
goto IL_00a9;
|
|
IL_00a9:
|
|
while (true)
|
|
{
|
|
switch (num6)
|
|
{
|
|
case 14:
|
|
throw new InvalidOperationException();
|
|
case 3:
|
|
mVTn2y0ryo.Flush();
|
|
num6 = 19;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_8607b24874644b3f80653c8326708a0f == 0)
|
|
{
|
|
num6 = 9;
|
|
}
|
|
continue;
|
|
case 7:
|
|
num8 = 0;
|
|
num6 = 12;
|
|
continue;
|
|
case 1:
|
|
num8 += num9;
|
|
num6 = 6;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_0eb6b5636bc94506af0ea669ffeed289 == 0)
|
|
{
|
|
num6 = 15;
|
|
}
|
|
continue;
|
|
case 5:
|
|
goto IL_016e;
|
|
case 6:
|
|
case 12:
|
|
if (num8 < num10)
|
|
{
|
|
num6 = 8;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_24faa0276f6f44618e997d66140f0229 != 0)
|
|
{
|
|
num6 = 21;
|
|
}
|
|
continue;
|
|
}
|
|
goto case 3;
|
|
case 9:
|
|
result = true;
|
|
num6 = 16;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_c716d44c74c64515ac5068ae3a901c0c != 0)
|
|
{
|
|
num6 = 11;
|
|
}
|
|
continue;
|
|
case 10:
|
|
goto end_IL_00a9;
|
|
case 0:
|
|
num10 = array.Length;
|
|
num6 = 2;
|
|
continue;
|
|
case 4:
|
|
case 8:
|
|
num9 = Math.Min(zNann1InO2, num10 - num8);
|
|
num6 = 5;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_8178aef8ab8e4b7bbbc322883b6f4a0e != 0)
|
|
{
|
|
num6 = 11;
|
|
}
|
|
continue;
|
|
case 2:
|
|
bytes = BitConverter.GetBytes(num10);
|
|
num6 = 10;
|
|
continue;
|
|
case 13:
|
|
mVTn2y0ryo.Write(array, num8, num9);
|
|
num6 = 13;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_c97a7c5d45534325bf46c53574165d90 == 0)
|
|
{
|
|
num6 = 1;
|
|
}
|
|
continue;
|
|
case 11:
|
|
goto end_IL_008d;
|
|
}
|
|
if (num7 != 22)
|
|
{
|
|
if (num7 == 1002)
|
|
{
|
|
goto IL_00a7;
|
|
}
|
|
goto IL_016e;
|
|
}
|
|
mVTn2y0ryo.Write(bytes, 0, bytes.Length);
|
|
num6 = 10;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_ba76871b56e54f669cda2d26609cc5b4 != 0)
|
|
{
|
|
num6 = 7;
|
|
}
|
|
continue;
|
|
IL_016e:
|
|
btgnmmtKTV.Poll(-1, SelectMode.SelectWrite);
|
|
num6 = 13;
|
|
continue;
|
|
end_IL_00a9:
|
|
break;
|
|
}
|
|
btgnmmtKTV.Poll(-1, SelectMode.SelectWrite);
|
|
num5 = 15;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_2a8f1f00b92e4ce7b2f8c5951bea8566 == 0)
|
|
{
|
|
num5 = 22;
|
|
}
|
|
goto IL_00a5;
|
|
IL_00a5:
|
|
num7 = num5;
|
|
goto IL_00a7;
|
|
end_IL_008d:;
|
|
}
|
|
catch
|
|
{
|
|
int num11 = 2;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_ba76871b56e54f669cda2d26609cc5b4 != 0)
|
|
{
|
|
num11 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num11)
|
|
{
|
|
case 0:
|
|
break;
|
|
default:
|
|
if (num12 == 988)
|
|
{
|
|
num11 = num12;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
goto case 1;
|
|
}
|
|
break;
|
|
case 3:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
int num13;
|
|
if (!lockTaken)
|
|
{
|
|
num13 = 2;
|
|
goto IL_0314;
|
|
}
|
|
goto IL_0349;
|
|
IL_0349:
|
|
Monitor.Exit(f19nLsVPsg);
|
|
num13 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_a9147deb311449e1af3e1c05bc2ac7f0 == 0)
|
|
{
|
|
num13 = 0;
|
|
}
|
|
goto IL_0314;
|
|
IL_0314:
|
|
while (true)
|
|
{
|
|
switch (num13)
|
|
{
|
|
default:
|
|
if (num14 == 990)
|
|
{
|
|
goto IL_0312;
|
|
}
|
|
goto end_IL_0314;
|
|
case 2:
|
|
goto end_IL_0314;
|
|
case 1:
|
|
break;
|
|
case 0:
|
|
goto end_IL_0314;
|
|
}
|
|
goto IL_0349;
|
|
IL_0312:
|
|
num13 = num14;
|
|
continue;
|
|
end_IL_0314:
|
|
break;
|
|
}
|
|
}
|
|
goto case 0;
|
|
case 0:
|
|
return result;
|
|
case 2:
|
|
lockTaken = false;
|
|
num2 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_cf6b861499bb4e93b913b0104cf85d80 != 0)
|
|
{
|
|
num2 = 2;
|
|
}
|
|
continue;
|
|
case 3:
|
|
break;
|
|
}
|
|
goto IL_0394;
|
|
IL_0018:
|
|
if (num == 991)
|
|
{
|
|
break;
|
|
}
|
|
goto IL_0394;
|
|
IL_0394:
|
|
f19nLsVPsg = F19nLsVPsg;
|
|
num2 = 2;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
int num = 4;
|
|
int num13 = default(int);
|
|
int num15 = default(int);
|
|
int num5 = default(int);
|
|
int num7 = default(int);
|
|
int num17 = default(int);
|
|
int num19 = default(int);
|
|
int num9 = default(int);
|
|
int num11 = default(int);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
while (true)
|
|
{
|
|
switch (num3)
|
|
{
|
|
default:
|
|
if (num2 != 17)
|
|
{
|
|
if (num2 == 998)
|
|
{
|
|
goto end_IL_0003;
|
|
}
|
|
goto case 2;
|
|
}
|
|
try
|
|
{
|
|
Timer daAnA4mVQA = DaAnA4mVQA;
|
|
int num12;
|
|
if (daAnA4mVQA == null)
|
|
{
|
|
num12 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_c7a5ecc373d04402a9fed7ce8d825251 != 0)
|
|
{
|
|
num12 = 2;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
daAnA4mVQA.Dispose();
|
|
num12 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_261c20461b674ca28c16fc971d3a4e0c == 0)
|
|
{
|
|
num12 = 8;
|
|
}
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num12)
|
|
{
|
|
default:
|
|
if (num13 == 990)
|
|
{
|
|
num12 = num13;
|
|
continue;
|
|
}
|
|
break;
|
|
case 1:
|
|
case 2:
|
|
break;
|
|
case 0:
|
|
goto end_IL_014c;
|
|
}
|
|
DaAnA4mVQA = null;
|
|
num12 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_6651f8592e684e849da751d50852d553 == 0)
|
|
{
|
|
num12 = 2;
|
|
}
|
|
continue;
|
|
end_IL_014c:
|
|
break;
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
int num14 = 4;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_2a8f1f00b92e4ce7b2f8c5951bea8566 == 0)
|
|
{
|
|
num14 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num14)
|
|
{
|
|
default:
|
|
if (num15 == 988)
|
|
{
|
|
num14 = num15;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
goto case 6;
|
|
case 3:
|
|
return;
|
|
case 1:
|
|
goto end_IL_0002;
|
|
case 0:
|
|
try
|
|
{
|
|
btgnmmtKTV.Shutdown(SocketShutdown.Both);
|
|
int num4 = 2;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_105fe2c22724435f9f5e6d6f7a953089 == 0)
|
|
{
|
|
num4 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num4)
|
|
{
|
|
default:
|
|
if (num5 == 988)
|
|
{
|
|
num4 = num5;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
int num6 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_bd4735a32b8243ab87438897f9b05148 == 0)
|
|
{
|
|
num6 = 3;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num6)
|
|
{
|
|
default:
|
|
if (num7 == 988)
|
|
{
|
|
num6 = num7;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
goto case 2;
|
|
case 8:
|
|
return;
|
|
case 6:
|
|
QYOnf4rxfk = null;
|
|
num3 = 2;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_c0850f47ec054590a7b3f2430c11cdb8 != 0)
|
|
{
|
|
num3 = 5;
|
|
}
|
|
continue;
|
|
case 10:
|
|
try
|
|
{
|
|
SslStream sslStream = mVTn2y0ryo;
|
|
int num16;
|
|
if (sslStream == null)
|
|
{
|
|
num16 = 2;
|
|
}
|
|
else
|
|
{
|
|
sslStream.Dispose();
|
|
num16 = 1;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_24faa0276f6f44618e997d66140f0229 != 0)
|
|
{
|
|
num16 = 1;
|
|
}
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num16)
|
|
{
|
|
default:
|
|
if (num17 == 990)
|
|
{
|
|
num16 = num17;
|
|
continue;
|
|
}
|
|
break;
|
|
case 1:
|
|
case 2:
|
|
break;
|
|
case 0:
|
|
goto end_IL_0212;
|
|
}
|
|
mVTn2y0ryo = null;
|
|
num16 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_648d6c57b0374dfbbd553f38353b5600 != 0)
|
|
{
|
|
num16 = 5;
|
|
}
|
|
continue;
|
|
end_IL_0212:
|
|
break;
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
int num18 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_81ee24a94370418d8f6e510a7b3de335 != 0)
|
|
{
|
|
num18 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num18)
|
|
{
|
|
default:
|
|
if (num19 == 988)
|
|
{
|
|
num18 = num19;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
break;
|
|
case 4:
|
|
if (!JgenJiy1Mg)
|
|
{
|
|
JgenJiy1Mg = true;
|
|
num3 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_c7a5ecc373d04402a9fed7ce8d825251 == 0)
|
|
{
|
|
num3 = 2;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
num3 = 3;
|
|
}
|
|
continue;
|
|
case 7:
|
|
try
|
|
{
|
|
Socket socket = btgnmmtKTV;
|
|
int num8;
|
|
if (socket == null)
|
|
{
|
|
num8 = 2;
|
|
}
|
|
else
|
|
{
|
|
socket.Dispose();
|
|
num8 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_f25311c256b24afb83430c7b2ff15b49 == 0)
|
|
{
|
|
num8 = 8;
|
|
}
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num8)
|
|
{
|
|
default:
|
|
if (num9 == 990)
|
|
{
|
|
num8 = num9;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
case 2:
|
|
break;
|
|
case 1:
|
|
goto end_IL_02f0;
|
|
}
|
|
btgnmmtKTV = null;
|
|
num8 = 7;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_e5c65385218d49eabe93d2332a0aea36 == 0)
|
|
{
|
|
num8 = 1;
|
|
}
|
|
continue;
|
|
end_IL_02f0:
|
|
break;
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
int num10 = 4;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_ff6bd260fab74068bc9499bef33e2609 != 0)
|
|
{
|
|
num10 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num10)
|
|
{
|
|
default:
|
|
if (num11 == 988)
|
|
{
|
|
num10 = num11;
|
|
continue;
|
|
}
|
|
break;
|
|
case 0:
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
goto end_IL_0002;
|
|
case 2:
|
|
num3 = 9;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_24faa0276f6f44618e997d66140f0229 == 0)
|
|
{
|
|
num3 = 10;
|
|
}
|
|
continue;
|
|
case 5:
|
|
IsConnected = false;
|
|
num3 = 6;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_411a01a90e184ccea1d245585f590e75 == 0)
|
|
{
|
|
num3 = 8;
|
|
}
|
|
continue;
|
|
case 9:
|
|
break;
|
|
}
|
|
num3 = 13;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_cb9c626824424572a150665e8d57c6e7 != 0)
|
|
{
|
|
num3 = 7;
|
|
}
|
|
continue;
|
|
end_IL_0003:
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0002:
|
|
break;
|
|
}
|
|
num = 17;
|
|
}
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
private void CBmiKAfSkN(object P_0)
|
|
{
|
|
int num = 1;
|
|
int num3 = default(int);
|
|
int num5 = default(int);
|
|
while (true)
|
|
{
|
|
switch (num)
|
|
{
|
|
case 989:
|
|
break;
|
|
default:
|
|
return;
|
|
case 1:
|
|
try
|
|
{
|
|
cypiw9dgyu();
|
|
int num2 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_46dcb9aa916148e38083172ad031baf8 != 0)
|
|
{
|
|
num2 = 1;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num2)
|
|
{
|
|
case 0:
|
|
return;
|
|
}
|
|
if (num3 != 988)
|
|
{
|
|
return;
|
|
}
|
|
num2 = num3;
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
int num4 = 0;
|
|
if (_003CModule_003E_007Bcc855980_002Dbf4d_002D4da3_002D96c7_002D14d69de0c9ee_007D.m_271cb415f2384f7a8af2439f61d79e09.m_0e9f30f8c3eb41d0a6c7280f73d03d03 != 0)
|
|
{
|
|
num4 = 0;
|
|
}
|
|
while (true)
|
|
{
|
|
switch (num4)
|
|
{
|
|
case 0:
|
|
return;
|
|
}
|
|
if (num5 != 988)
|
|
{
|
|
return;
|
|
}
|
|
num4 = num5;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
internal static bool tbErS7Lx4OI3Q3xWt4Z()
|
|
{
|
|
return IFUa5RLux8P613hkmej == null;
|
|
}
|
|
|
|
internal static PluginClient unEvWGL0BPMfES4KPhR()
|
|
{
|
|
return IFUa5RLux8P613hkmej;
|
|
}
|
|
}
|