Function at 0x1003e6b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f64f
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x100ab080]
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 - 0x16c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x170], eax
jne 0x1003e77e
call dword [0x101250b4]
test al, al
je 0x1003e745
call dword [0x101250b0]
cmp eax, 3
jg 0x1003e745
push 0x1009d1e0
push 3
push 0x92
push str.CWintun2socksHelper.cpp
call dword [0x101250b8]
add esp, 0x10
mov eax, dword [esi + 0xba]
test eax, eax
je 0x1003e75f
push 0x7050024
push dword [ebp + 0x14]
push 0x5f5
push esi
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.1006636c
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003e7b4
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005f870
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test al, al
je 0x1003e8c9
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003e7ff
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005efe0
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003e83c
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
push 0xc8
mov ecx, eax
call fcn.1005f310
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003e87e
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005f180
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003e8bb
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005e100
push 0xc8
call edi
call fcn.10031d60
cmp dword [eax + 0x1c], 0
je 0x1003e97f
call fcn.10031d60
mov byte [eax + 0xad], 1
call fcn.10031d60
mov dword [ebp - 0x160], eax
xor esi, esi
cmp dword [eax + 0x1c], 0
je 0x1003e90e
push 0x32
mov byte [eax + 0xac], 1
call edi
mov eax, dword [ebp - 0x160]
inc esi
cmp esi, 4
jbe 0x1003e8f1
call fcn.10031d60
mov edi, eax
mov dword [ebp - 0x160], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003e92b
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 0x1003e96e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x160]
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x1003e960
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 esi, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ecx + 4]
call edi
mov eax, dword [ebp - 0x164]
push dword [eax + 4]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x15c], esp
push dword [ebp - 0x16c]
call fcn.10003da0
sub esp, 0x18
mov dword [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x18c], esp
push dword [ebp - 0x174]
call fcn.10003da0
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x188], esp
push dword [ebp - 0x170]
call fcn.10003da0
push ecx
mov byte [ebp - 4], 7
push dword [esi + 0xb4]
call fcn.10031d60
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.100295c0
call fcn.10031d60
push 4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
call fcn.10031d60
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [ebp - 0x164]
push 0x2ee0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
mov eax, dword [ebp - 0x164]
push dword [eax + 4]
call edi
test esi, esi
je 0x1003ec84
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003ea7d
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 8
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005f870
test al, al
je 0x1003eb85
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003eac2
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005efe0
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003eaff
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
push 0x2710
mov ecx, eax
call fcn.1005f310
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003eb41
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005f180
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003eb7e
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0xc
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005e100
call fcn.10031d60
cmp dword [eax + 0x1c], 0
je 0x1003ec2e
call fcn.10031d60
mov byte [eax + 0xad], 1
call fcn.10031d60
mov edi, eax
xor esi, esi
nop dword [eax]
cmp dword [edi + 0x1c], 0
je 0x1003ebce
push 0x32
mov byte [edi + 0xac], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xc8
jbe 0x1003ebb0
call fcn.10031d60
mov edi, eax
mov dword [ebp - 0x160], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003ebeb
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 0x1003ec2e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x160]
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x1003ec20
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 [0x101250b4]
test al, al
je 0x1003ec5d
call dword [0x101250b0]
cmp eax, 3
jg 0x1003ec5d
push 0x1009d234
push 3
push 0xc2
push str.CWintun2socksHelper.cpp
call dword [0x101250b8]
add esp, 0x10
mov ecx, dword [ebp - 0x168]
mov eax, dword [ecx + 0xba]
test eax, eax
je 0x1003e75f
push 0x7050021
push dword [ebp + 0x14]
push 0x5f5
push ecx
jmp 0x1003e75d
mov edi, dword [ebp - 0x168]
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003eca4
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.10003200
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], 0x1009d378
mov dword [ebp - 0xf4], 0x1003f750
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xe
call fcn.10031d60
mov ax, word [eax + 0x40]
dec ax
movzx esi, ax
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003ed60
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.1005db50
mov byte [ebp - 4], 0xe
mov dword [0x1012513c], eax
lea ecx, [ebp - 0xf8]
push ecx
push dword [ebp - 0x16c]
lea ecx, [ebp - 0xd0]
push dword [ebp - 0x174]
push esi
push ecx
mov ecx, eax
call fcn.1005e400
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x1003edae
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 [0x1012513c]
test eax, eax
jne 0x1003edde
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.1005db50
mov byte [ebp - 4], 0xd
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005f4f0
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003ee15
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.1005db50
mov byte [ebp - 4], 0xd
mov dword [0x1012513c], eax
mov ecx, eax
call fcn.1005f6e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xbc]
cmp ecx, 0xf
jbe 0x1003ee5d
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ee53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
add esp, 8
push dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x170]
call fcn.1005ac00
movzx eax, ax
add esp, 4
mov dword [ebp - 0x188], eax
test ax, ax
jne 0x1003eed0
call dword [0x101250b4]
test al, al
je 0x1003eeae
call dword [0x101250b0]
cmp eax, 3
jg 0x1003eeae
push 0x1009d268
push 3
push 0xd4
push str.CWintun2socksHelper.cpp
call dword [0x101250b8]
add esp, 0x10
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003e75f
mov ecx, dword [ebp + 0x14]
push 0x7050023
push ecx
push 0x5f5
push edi
jmp 0x1003e75d
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003eeeb
mov ecx, dword [ebp + 0x14]
push 0x3050022
push ecx
push 0x5f5
push edi
call eax
mov eax, dword [0x1012513c]
test eax, eax
jne 0x1003ef21
push 0x108
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 4], 0x12
call fcn.1005db50
mov dword [ebp - 4], 0xffffffff
mov dword [0x1012513c], eax
push ecx
mov ecx, eax
call fcn.1005fa50
mov ecx, dword [ebp - 0x164]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1003ef7a
push dword [edi + 0xee]
push dword [edi + 0xea]
call eax
mov esi, eax
test esi, esi
je 0x1003ef7a
call dword [0x101250b4]
test al, al
je 0x1003ef7a
call dword [0x101250b0]
cmp eax, 1
jg 0x1003ef7a
push esi
push 0x1009d294
push 1
push 0xe2
push str.CWintun2socksHelper.cpp
call dword [0x101250b8]
add esp, 0x14
mov dword [ebp - 0x160], 0
mov al, byte [0x1009ce3c]
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003efe2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.10003200
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 0x1003f025
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.10003200
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 0x1003f062
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.10003200
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 dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003f0a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.10003200
mov eax, dword [ebp - 0x16c]
mov edx, eax
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 0xf
jbe 0x1003f0c7
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 0x1003f0e1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10003200
mov eax, dword [ebp - 0x170]
mov edx, eax
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 0xf
jbe 0x1003f108
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 0x1003f122
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10003200
lea edx, [ebp - 0xb8]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x158]
call fcn.1001bc10
mov dword [ebp - 0x178], eax
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x140]
call fcn.1001bc10
mov dword [ebp - 0x17c], eax
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x128]
call fcn.1001bc10
mov dword [ebp - 0x194], eax
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x110]
call fcn.1001bc10
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x174]
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0x184], eax
cmp dword [eax + 0x14], 0xf
jbe 0x1003f1bc
mov eax, dword [eax]
mov dword [ebp - 0x184], eax
call fcn.1007583b
cmp dword [ebp - 0x2c], 0xf
lea esi, [ebp - 0x40]
mov edi, eax
lea eax, [ebp - 0x190]
cmova esi, dword [ebp - 0x40]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.10074d23
add esp, 0xc
mov dword [ebp - 0x15c], eax
cmp esi, dword [ebp - 0x190]
je 0x1003f72c
cmp dword [edi], 0x22
je 0x1003f73b
call fcn.10031d60
mov cx, word [eax + 0x40]
sub cx, 2
movzx eax, cx
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x180]
cmp dword [eax + 0x14], 7
jbe 0x1003f22b
mov eax, dword [eax]
mov dword [ebp - 0x180], eax
mov edi, dword [ebp - 0x194]
cmp dword [edi + 0x14], 7
jbe 0x1003f239
mov edi, dword [edi]
mov eax, dword [ebp - 0x17c]
cmp dword [eax + 0x14], 7
jbe 0x1003f24d
mov eax, dword [eax]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x14], 7
jbe 0x1003f261
mov eax, dword [eax]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x198]
mov esi, eax
cmp dword [eax + 0x14], 0xf
jbe 0x1003f271
mov esi, dword [eax]
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x28]
push 0
push dword [eax + 0x5c]
movzx eax, word [eax + 0xb8]
push 1
push eax
call fcn.1001a9d0
push eax
mov eax, dword [ebp - 0x168]
xor edx, edx
push esi
push dword [eax + 0xe2]
push dword [eax + 0xde]
mov eax, dword [ebp - 0x178]
push eax
mov eax, dword [ebp - 0x17c]
push eax
mov eax, dword [ebp - 0x180]
push edi
push eax
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
cmove eax, edx
push eax
push dword [ebp + 0x14]
push 0x14c0
push dword [ebp - 0x188]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x18c]
push dword [ebp - 0x15c]
push dword [ebp - 0x184]
call fcn.1001a9d0
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 0x1003f348
mov edx, dword [ebp - 0x110]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f33e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f3a9
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f39f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f40a
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f400
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f46b
mov edx, dword [ebp - 0x158]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f461
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f4c0
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f4b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f50a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f500
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f554
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f54a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f5a1
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f597
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f5f4
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f5ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f64d
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f643
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
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 0x1003f6a3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f699
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f736
push ecx
push edx
call fcn.100666c9
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
je 0x1003f725
call dword [0x101250b4]
test al, al
je 0x1003f6e9
call dword [0x101250b0]
cmp eax, 3
jg 0x1003f6e9
push esi
push 0x1009d2c4
push 3
push 0x104
push str.CWintun2socksHelper.cpp
call dword [0x101250b8]
add esp, 0x14
mov edi, dword [ebp - 0x168]
mov eax, dword [edi + 0xba]
test eax, eax
je 0x1003f70a
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 0x1003ef84
jmp 0x1003e75f
mov al, 1
jmp 0x1003e761
push str.invalid_stoul_argument
call fcn.10064270
call fcn.10070c0f
push str.stoul_argument_out_of_range
call fcn.100642b0
int3