Function at 0x1003bd20
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c53f
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 0x1003bdd6
call dword [0x10121134]
test al, al
je 0x1003bdb5
call dword [0x10121130]
cmp eax, 3
jg 0x1003bdb5
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 0x1003cd7d
push 0x7050024
push dword [ebp + 0x14]
push 0x5f5
push esi
jmp 0x1003cd7b
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003be0c
push 0x108
call fcn.1006334a
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 0x1003bf21
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003be57
push 0x108
call fcn.1006334a
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 0x1003be94
push 0x108
call fcn.1006334a
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 0x1003bed6
push 0x108
call fcn.1006334a
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 0x1003bf13
push 0x108
call fcn.1006334a
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.10031d30
cmp dword [eax + 0x1c], 0
je 0x1003bfd8
call fcn.10031d30
mov byte [eax + 0xa9], 1
call fcn.10031d30
mov dword [ebp - 0x160], eax
xor esi, esi
nop dword [eax]
cmp dword [eax + 0x1c], 0
je 0x1003bf6d
push 0x32
mov byte [eax + 0xa8], 1
call edi
mov eax, dword [ebp - 0x160]
inc esi
cmp esi, 4
jbe 0x1003bf50
call fcn.10031d30
mov edi, eax
mov dword [ebp - 0x160], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003bf8a
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 0x1003bfcd
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x160]
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x1003bfbf
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.10031d30
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.100291b0
call fcn.10031d30
push 4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
call fcn.10031d30
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.10031d30
cmp byte [eax + 0x48], 0
je 0x1003cb4d
test edi, edi
jne 0x1003cb4d
mov edi, dword [ebp - 0x16c]
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003c0c9
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], 0x1003cdc0
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xe
call fcn.10031d30
mov ax, word [eax + 0x40]
dec ax
movzx esi, ax
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c185
push 0x108
call fcn.1006334a
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 0x1003c1d3
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 0x1003c203
push 0x108
call fcn.1006334a
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 0x1003c23a
push 0x108
call fcn.1006334a
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 0x1003c282
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c278
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
add esp, 8
mov ecx, dword [ebp - 0x170]
push 0
push dword [ebp - 0x168]
call fcn.10057820
movzx eax, ax
add esp, 8
mov dword [ebp - 0x18c], eax
test ax, ax
jne 0x1003c2f7
call dword [0x10121134]
test al, al
je 0x1003c2d5
call dword [0x10121130]
cmp eax, 3
jg 0x1003c2d5
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 0x1003cd7d
mov ecx, dword [ebp + 0x14]
push 0x7050023
push ecx
push 0x5f5
push edi
jmp 0x1003cd7b
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003c312
mov ecx, dword [ebp + 0x14]
push 0x3050022
push ecx
push 0x5f5
push edi
call eax
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003c348
push 0x108
call fcn.1006334a
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 0x1003c3a1
push dword [edi + 0xee]
push dword [edi + 0xea]
call eax
mov esi, eax
test esi, esi
je 0x1003c3a1
call dword [0x10121134]
test al, al
je 0x1003c3a1
call dword [0x10121130]
cmp eax, 1
jg 0x1003c3a1
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 0x1003c410
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 0x1003c453
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 0x1003c490
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 0x1003c4d0
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 0x1003c4f7
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 0x1003c511
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 0x1003c538
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 0x1003c552
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 0x1003c5f2
mov eax, dword [eax]
mov dword [ebp - 0x17c], eax
cmp dword [esi + 0x14], 7
jbe 0x1003c600
mov esi, dword [esi]
mov dword [ebp - 0x180], esi
cmp dword [edi + 0x14], 7
jbe 0x1003c60e
mov edi, dword [edi]
mov dword [ebp - 0x184], edi
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x14], 7
jbe 0x1003c622
mov eax, dword [eax]
mov dword [ebp - 0x178], eax
cmp dword [ecx + 0x14], 7
jbe 0x1003c630
mov ecx, dword [ecx]
mov dword [ebp - 0x188], ecx
call fcn.10031d30
mov ax, word [eax + 0x40]
sub ax, 2
movzx eax, ax
mov dword [ebp - 0x190], eax
call fcn.1007296b
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.10071e53
add esp, 0xc
mov dword [ebp - 0x15c], eax
cmp esi, dword [ebp - 0x198]
je 0x1003cdab
cmp dword [edi], 0x22
je 0x1003cda1
mov eax, dword [ebp - 0x174]
mov esi, eax
cmp dword [eax + 0x14], 0xf
jbe 0x1003c69b
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 0x1003c76f
mov edx, dword [ebp - 0x110]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c765
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003c7d0
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c7c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003c831
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c827
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003c892
mov edx, dword [ebp - 0x158]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c888
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003c8e7
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c8dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003c931
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c927
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003c97b
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c971
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003c9c8
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c9be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003ca1b
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ca11
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003ca74
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ca6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
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 0x1003caca
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cac0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cd9c
push ecx
push edx
call fcn.10063694
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
je 0x1003cb46
call dword [0x10121134]
test al, al
je 0x1003cb10
call dword [0x10121130]
cmp eax, 3
jg 0x1003cb10
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 0x1003cb2b
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 0x1003c3b0
jmp 0x1003cd7d
mov al, 1
jmp 0x1003cd7f
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cb83
push 0x108
call fcn.1006334a
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 0x1003cc8b
mov eax, dword [0x1012118c]
test eax, eax
jne 0x1003cbc8
push 0x108
call fcn.1006334a
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 0x1003cc05
push 0x108
call fcn.1006334a
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 0x1003cc47
push 0x108
call fcn.1006334a
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 0x1003cc84
push 0x108
call fcn.1006334a
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.10031d30
cmp dword [eax + 0x1c], 0
je 0x1003cd2e
call fcn.10031d30
mov byte [eax + 0xa9], 1
call fcn.10031d30
mov edi, eax
xor esi, esi
nop
cmp dword [edi + 0x1c], 0
je 0x1003ccce
push 0x32
mov byte [edi + 0xa8], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xc8
jbe 0x1003ccb0
call fcn.10031d30
mov edi, eax
mov dword [ebp - 0x15c], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003cceb
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 0x1003cd2e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x15c]
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x1003cd20
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 0x1003cd5d
call dword [0x10121130]
cmp eax, 3
jg 0x1003cd5d
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 0x1003cd7d
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.10063337
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1006dd3f
push str.stoul_argument_out_of_range
call fcn.100611b0
push str.invalid_stoul_argument
call fcn.10061170
int3