Function at 0x1003bd50
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c42f
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 0x1003be06
call dword [0x10121134]
test al, al
je 0x1003bde5
call dword [0x10121130]
cmp eax, 3
jg 0x1003bde5
push 0x10099e88
push 3
push 0x92
push str.CWintun2socksHelper.cpp
call dword [0x10121138]
add esp, 0x10
mov eax, dword [esi + 0xba]
test eax, eax
je 0x1003cdad
push 0x7050024
push dword [ebp + 0x14]
push 0x5f5
push esi
jmp 0x1003cdab
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003be3c
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c980
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test al, al
je 0x1003bf51
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003be87
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c0f0
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003bec4
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
push 0xc8
mov ecx, eax
call fcn.1005c420
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003bf06
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c290
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003bf43
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005b1b0
push 0xc8
call edi
call fcn.10031d70
cmp dword [eax + 0x1c], 0
je 0x1003c008
call fcn.10031d70
mov byte [eax + 0xa9], 1
call fcn.10031d70
mov dword [ebp - 0x160], eax
xor esi, esi
nop dword [eax]
cmp dword [eax + 0x1c], 0
je 0x1003bf9d
push 0x32
mov byte [eax + 0xa8], 1
call edi
mov eax, dword [ebp - 0x160]
inc esi
cmp esi, 4
jbe 0x1003bf80
call fcn.10031d70
mov edi, eax
mov dword [ebp - 0x160], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003bfba
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 0x1003bffd
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x160]
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x1003bfef
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.10031d70
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.100291f0
call fcn.10031d70
push 4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
call fcn.10031d70
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.10031d70
cmp byte [eax + 0x48], 0
je 0x1003cb7d
test edi, edi
jne 0x1003cb7d
mov edi, dword [ebp - 0x16c]
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003c0f9
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], 0x1009a020
mov dword [ebp - 0xf4], 0x1003cdf0
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xe
call fcn.10031d70
mov ax, word [eax + 0x40]
dec ax
movzx esi, ax
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c1b5
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.1005ac20
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.1005b4b0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x1003c203
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 0x1003c233
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.1005ac20
mov byte [ebp - 4], 0xd
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c600
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c26a
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.1005ac20
mov byte [ebp - 4], 0xd
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c7f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xbc]
cmp ecx, 0xf
jbe 0x1003c2b2
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c2a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
add esp, 8
mov ecx, dword [ebp - 0x170]
push 0
push dword [ebp - 0x168]
call fcn.10057840
movzx eax, ax
add esp, 8
mov dword [ebp - 0x18c], eax
test ax, ax
jne 0x1003c327
call dword [0x10121134]
test al, al
je 0x1003c305
call dword [0x10121130]
cmp eax, 3
jg 0x1003c305
push 0x10099f10
push 3
push 0xd5
push str.CWintun2socksHelper.cpp
call dword [0x10121138]
add esp, 0x10
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003cdad
mov ecx, dword [ebp + 0x14]
push 0x7050023
push ecx
push 0x5f5
push edi
jmp 0x1003cdab
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003c342
mov ecx, dword [ebp + 0x14]
push 0x3050022
push ecx
push 0x5f5
push edi
call eax
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c378
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0x12
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
push ecx
mov ecx, eax
call fcn.1005cb60
mov ecx, dword [ebp - 0x164]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1003c3d1
push dword [edi + 0xee]
push dword [edi + 0xea]
call eax
mov esi, eax
test esi, esi
je 0x1003c3d1
call dword [0x10121134]
test al, al
je 0x1003c3d1
call dword [0x10121130]
cmp eax, 1
jg 0x1003c3d1
push esi
push 0x10099f3c
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 [0x10099e14]
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 0x1003c440
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 0x1003c483
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 0x1003c4c0
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 0x1003c500
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 0x1003c527
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 0x1003c541
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 0x1003c568
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 0x1003c582
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.1001ba00
mov esi, eax
mov dword [ebp - 0x180], eax
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x140]
call fcn.1001ba00
mov edi, eax
mov dword [ebp - 0x184], eax
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x128]
call fcn.1001ba00
mov dword [ebp - 0x178], eax
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x110]
call fcn.1001ba00
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 0x1003c622
mov eax, dword [eax]
mov dword [ebp - 0x17c], eax
cmp dword [esi + 0x14], 7
jbe 0x1003c630
mov esi, dword [esi]
mov dword [ebp - 0x180], esi
cmp dword [edi + 0x14], 7
jbe 0x1003c63e
mov edi, dword [edi]
mov dword [ebp - 0x184], edi
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x14], 7
jbe 0x1003c652
mov eax, dword [eax]
mov dword [ebp - 0x178], eax
cmp dword [ecx + 0x14], 7
jbe 0x1003c660
mov ecx, dword [ecx]
mov dword [ebp - 0x188], ecx
call fcn.10031d70
mov ax, word [eax + 0x40]
sub ax, 2
movzx eax, ax
mov dword [ebp - 0x190], eax
call fcn.100728cb
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.10071db3
add esp, 0xc
mov dword [ebp - 0x15c], eax
cmp esi, dword [ebp - 0x198]
je 0x1003cddb
cmp dword [edi], 0x22
je 0x1003cdd1
mov eax, dword [ebp - 0x174]
mov esi, eax
cmp dword [eax + 0x14], 0xf
jbe 0x1003c6cb
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.1001a9b0
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.1001a9b0
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 0x1003c79f
mov edx, dword [ebp - 0x110]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c795
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003c800
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c7f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003c861
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c857
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003c8c2
mov edx, dword [ebp - 0x158]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c8b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003c917
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c90d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003c961
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c957
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003c9ab
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c9a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003c9f8
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c9ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003ca4b
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ca41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003caa4
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ca9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
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 0x1003cafa
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003caf0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
push ecx
push edx
call fcn.100635d4
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
je 0x1003cb76
call dword [0x10121134]
test al, al
je 0x1003cb40
call dword [0x10121130]
cmp eax, 3
jg 0x1003cb40
push esi
push 0x10099f6c
push 3
push 0x105
push str.CWintun2socksHelper.cpp
call dword [0x10121138]
add esp, 0x14
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003cb5b
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 0x1003c3e0
jmp 0x1003cdad
mov al, 1
jmp 0x1003cdaf
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cbb3
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 8
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c980
test al, al
je 0x1003ccbb
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cbf8
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c0f0
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cc35
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
push 0x2710
mov ecx, eax
call fcn.1005c420
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cc77
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005c290
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003ccb4
push 0x108
call fcn.1006328a
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xc
call fcn.1005ac20
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012118c], eax
mov ecx, eax
call fcn.1005b1b0
call fcn.10031d70
cmp dword [eax + 0x1c], 0
je 0x1003cd5e
call fcn.10031d70
mov byte [eax + 0xa9], 1
call fcn.10031d70
mov edi, eax
xor esi, esi
nop
cmp dword [edi + 0x1c], 0
je 0x1003ccfe
push 0x32
mov byte [edi + 0xa8], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xc8
jbe 0x1003cce0
call fcn.10031d70
mov edi, eax
mov dword [ebp - 0x15c], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003cd1b
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 0x1003cd5e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x15c]
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x1003cd50
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 0x1003cd8d
call dword [0x10121130]
cmp eax, 3
jg 0x1003cd8d
push 0x10099edc
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 0x1003cdad
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.10063277
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1006dc9f
push str.stoul_argument_out_of_range
call fcn.100611b0
push str.invalid_stoul_argument
call fcn.10061170
int3