Function at 0x1003bcf0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c51f
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], ecx
cmp dword [ecx + 0xc], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x170], eax
jne 0x1003bda6
call dword [0x10121134]
test al, al
je 0x1003bd85
call dword [0x10121130]
cmp eax, 3
jg 0x1003bd85
push 0x10099f00
push 3
push 0x92
push str.CWintun2socksHelper.cpp
call dword [0x10121138]
add esp, 0x10
mov eax, dword [esi + 0xba]
test eax, eax
je 0x1003cd4d
push 0x7050024
push dword [ebp + 0x14]
push 0x5f5
push esi
jmp 0x1003cd4b
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003bddc
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c960
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test al, al
je 0x1003bef1
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003be27
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c0d0
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003be64
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
push 0xc8
mov ecx, eax
call fcn.1005c400
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003bea6
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c270
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003bee3
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005b190
push 0xc8
call edi
call fcn.10031d10
cmp dword [eax + 0x1c], 0
je 0x1003bfa8
call fcn.10031d10
mov byte [eax + 0xa9], 1
call fcn.10031d10
mov dword [ebp - 0x160], eax
xor esi, esi
nop dword [eax]
cmp dword [eax + 0x1c], 0
je 0x1003bf3d
push 0x32
mov byte [eax + 0xa8], 1
call edi
mov eax, dword [ebp - 0x160]
inc esi
cmp esi, 4
jbe 0x1003bf20
call fcn.10031d10
mov edi, eax
mov dword [ebp - 0x160], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003bf5a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [edi + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [edi + 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0xffffffff
je 0x1003bf9d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x160]
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x1003bf8f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
mov dword [edi + 0x44], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x164]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [edi + 4]
call esi
push dword [edi + 4]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x15c], esp
push dword [ebp - 0x168]
call fcn.10003d00
sub esp, 0x18
mov dword [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x190], esp
push dword [ebp - 0x174]
call fcn.10003d00
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x18c], esp
push dword [ebp - 0x170]
call fcn.10003d00
mov eax, dword [ebp - 0x16c]
push ecx
mov byte [ebp - 4], 7
push dword [eax + 0xb4]
call fcn.10031d10
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.10029190
call fcn.10031d10
push 4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
call fcn.10031d10
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push 0x2ee0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x164]
mov edi, eax
push dword [ecx + 4]
call esi
call fcn.10031d10
cmp byte [eax + 0x48], 0
je 0x1003cb1d
test edi, edi
jne 0x1003cb1d
mov edi, dword [ebp - 0x16c]
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003c099
push 0x2050020
push dword [ebp + 0x14]
push 0x5f5
push edi
call eax
push dword [edi + 0xf6]
xorps xmm0, xmm0
mov dword [ebp - 0xc0], 0
push dword [edi + 0xf2]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xbc], 0
movups xmmword [ebp - 0xd0], xmm0
call fcn.10003170
mov dword [ebp - 4], 0xd
mov al, byte [ebp - 0x18]
mov byte [ebp - 0xf0], al
mov al, byte [ebp - 0x17]
mov byte [ebp - 0xef], al
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x1009a098
mov dword [ebp - 0xf4], 0x1003cd90
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xe
call fcn.10031d10
mov ax, word [eax + 0x40]
dec ax
movzx esi, ax
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c155
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.1005ac00
mov byte [ebp - 4], 0xe
mov dword [0x1012118c], eax
lea ecx, [ebp - 0xf8]
push ecx
push dword [ebp - 0x168]
lea ecx, [ebp - 0xd0]
push dword [ebp - 0x174]
push esi
push ecx
mov ecx, eax
call fcn.1005b490
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x1003c1a3
mov edx, dword [ecx]
lea eax, [ebp - 0xf8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0xd4], 0
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c1d3
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.1005ac00
mov byte [ebp - 4], 0xd
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c5e0
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c20a
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.1005ac00
mov byte [ebp - 4], 0xd
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c7d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xbc]
cmp ecx, 0xf
jbe 0x1003c252
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c248
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
mov ecx, dword [ebp - 0x170]
push 0
push dword [ebp - 0x168]
call fcn.10057800
movzx eax, ax
add esp, 8
mov dword [ebp - 0x18c], eax
test ax, ax
jne 0x1003c2c7
call dword [0x10121134]
test al, al
je 0x1003c2a5
call dword [0x10121130]
cmp eax, 3
jg 0x1003c2a5
push 0x10099f88
push 3
push 0xd5
push str.CWintun2socksHelper.cpp
call dword [0x10121138]
add esp, 0x10
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003cd4d
mov ecx, dword [ebp + 0x14]
push 0x7050023
push ecx
push 0x5f5
push edi
jmp 0x1003cd4b
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003c2e2
mov ecx, dword [ebp + 0x14]
push 0x3050022
push ecx
push 0x5f5
push edi
call eax
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c318
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0x12
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
push ecx
mov ecx, eax
call fcn.1005cb40
mov ecx, dword [ebp - 0x164]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1003c371
push dword [edi + 0xee]
push dword [edi + 0xea]
call eax
mov esi, eax
test esi, esi
je 0x1003c371
call dword [0x10121134]
test al, al
je 0x1003c371
call dword [0x10121130]
cmp eax, 1
jg 0x1003c371
push esi
push 0x10099fb4
push 1
push 0xe3
push str.CWintun2socksHelper.cpp
call dword [0x10121138]
add esp, 0x14
mov dword [ebp - 0x160], 0
nop dword [eax + eax]
mov al, byte [0x10099e8c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 9
movq xmm0, qword [str.127.0.0.1]
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1f], 0
mov dword [ebp - 4], 0x13
xorps xmm0, xmm0
mov edx, dword [edi + 0x92]
mov ecx, edx
movups xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c3e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.10003170
mov byte [ebp - 4], 0x14
xorps xmm0, xmm0
mov edx, dword [edi + 0x9a]
mov ecx, edx
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c423
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.10003170
mov byte [ebp - 4], 0x15
xorps xmm0, xmm0
mov edx, dword [edi + 0x8a]
mov ecx, edx
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c460
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.10003170
mov byte [ebp - 4], 0x16
xorps xmm0, xmm0
mov edx, dword [edi + 0xfa]
mov ecx, edx
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c4a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.10003170
mov eax, dword [ebp - 0x168]
mov edx, eax
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 0xf
jbe 0x1003c4c7
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c4e1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10003170
mov eax, dword [ebp - 0x170]
mov edx, eax
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 0xf
jbe 0x1003c508
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c522
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10003170
lea edx, [ebp - 0xb8]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x158]
call fcn.1001b990
mov esi, eax
mov dword [ebp - 0x180], eax
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x140]
call fcn.1001b990
mov edi, eax
mov dword [ebp - 0x184], eax
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x128]
call fcn.1001b990
mov dword [ebp - 0x178], eax
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x110]
call fcn.1001b990
mov ecx, eax
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x194]
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0x17c], eax
cmp dword [eax + 0x14], 0xf
jbe 0x1003c5c2
mov eax, dword [eax]
mov dword [ebp - 0x17c], eax
cmp dword [esi + 0x14], 7
jbe 0x1003c5d0
mov esi, dword [esi]
mov dword [ebp - 0x180], esi
cmp dword [edi + 0x14], 7
jbe 0x1003c5de
mov edi, dword [edi]
mov dword [ebp - 0x184], edi
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x14], 7
jbe 0x1003c5f2
mov eax, dword [eax]
mov dword [ebp - 0x178], eax
cmp dword [ecx + 0x14], 7
jbe 0x1003c600
mov ecx, dword [ecx]
mov dword [ebp - 0x188], ecx
call fcn.10031d10
mov ax, word [eax + 0x40]
sub ax, 2
movzx eax, ax
mov dword [ebp - 0x190], eax
call fcn.1007294b
cmp dword [ebp - 0x2c], 0xf
lea esi, [ebp - 0x40]
mov edi, eax
lea eax, [ebp - 0x198]
cmova esi, dword [ebp - 0x40]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.10071e33
add esp, 0xc
mov dword [ebp - 0x15c], eax
cmp esi, dword [ebp - 0x198]
je 0x1003cd7b
cmp dword [edi], 0x22
je 0x1003cd71
mov eax, dword [ebp - 0x174]
mov esi, eax
cmp dword [eax + 0x14], 0xf
jbe 0x1003c66b
mov esi, dword [eax]
mov edi, dword [ebp - 0x16c]
lea ecx, [ebp - 0x28]
push 0
push dword [edi + 0x5c]
movzx eax, word [edi + 0xb8]
push 1
push eax
call fcn.1001a940
push eax
push dword [ebp - 0x17c]
mov eax, dword [ebp - 0x178]
xor edx, edx
push dword [edi + 0xe2]
push dword [edi + 0xde]
push dword [ebp - 0x180]
push dword [ebp - 0x184]
push eax
push dword [ebp - 0x188]
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
cmove eax, edx
push eax
push dword [ebp + 0x14]
push 0x14c0
push dword [ebp - 0x18c]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x190]
push dword [ebp - 0x15c]
push esi
call fcn.1001a940
push eax
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 0xc]
call eax
mov byte [ebp - 4], 0x1c
mov esi, eax
mov ecx, dword [ebp - 0xfc]
cmp ecx, 7
jbe 0x1003c73f
mov edx, dword [ebp - 0x110]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c735
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
cmp ecx, 7
jbe 0x1003c7a0
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c796
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
cmp ecx, 7
jbe 0x1003c801
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c7f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 7
mov word [ebp - 0x140], ax
cmp ecx, 7
jbe 0x1003c862
mov edx, dword [ebp - 0x158]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c858
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
cmp ecx, 0xf
jbe 0x1003c8b7
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c8ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x1003c901
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c8f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x1003c94b
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c941
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp ecx, 0xf
jbe 0x1003c998
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c98e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp ecx, 0xf
jbe 0x1003c9eb
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c9e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp ecx, 0xf
jbe 0x1003ca44
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ca3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
cmp ecx, 0xf
jbe 0x1003ca9a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ca90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd6c
push ecx
push edx
call fcn.10063674
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
je 0x1003cb16
call dword [0x10121134]
test al, al
je 0x1003cae0
call dword [0x10121130]
cmp eax, 3
jg 0x1003cae0
push esi
push 0x10099fe4
push 3
push 0x105
push str.CWintun2socksHelper.cpp
call dword [0x10121138]
add esp, 0x14
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003cafb
mov ecx, dword [ebp + 0x14]
push 0x3050025
push ecx
push 0x5f5
push edi
call eax
mov eax, dword [ebp - 0x160]
inc eax
mov dword [ebp - 0x160], eax
cmp eax, 2
jb 0x1003c380
jmp 0x1003cd4d
mov al, 1
jmp 0x1003cd4f
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cb53
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 8
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c960
test al, al
je 0x1003cc5b
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cb98
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c0d0
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cbd5
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
push 0x2710
mov ecx, eax
call fcn.1005c400
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cc17
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c270
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cc54
push 0x108
call fcn.1006332a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xc
call fcn.1005ac00
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005b190
call fcn.10031d10
cmp dword [eax + 0x1c], 0
je 0x1003ccfe
call fcn.10031d10
mov byte [eax + 0xa9], 1
call fcn.10031d10
mov edi, eax
xor esi, esi
nop
cmp dword [edi + 0x1c], 0
je 0x1003cc9e
push 0x32
mov byte [edi + 0xa8], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xc8
jbe 0x1003cc80
call fcn.10031d10
mov edi, eax
mov dword [ebp - 0x15c], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003ccbb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [edi + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [edi + 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0xffffffff
je 0x1003ccfe
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x15c]
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x1003ccf0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
mov dword [edi + 0x44], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [0x10121134]
test al, al
je 0x1003cd2d
call dword [0x10121130]
cmp eax, 3
jg 0x1003cd2d
push 0x10099f54
push 3
push 0xc3
push str.CWintun2socksHelper.cpp
call dword [0x10121138]
add esp, 0x10
mov ecx, dword [ebp - 0x16c]
mov eax, dword [ecx + 0xba]
test eax, eax
je 0x1003cd4d
push 0x7050021
push dword [ebp + 0x14]
push 0x5f5
push ecx
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063317
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1006dd1f
push str.stoul_argument_out_of_range
call fcn.10061190
push str.invalid_stoul_argument
call fcn.10061150
int3