Function at 0x10081dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x80]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], edx
mov ebx, dword [edi + 0xc]
mov esi, dword [edi + 0x8fc]
mov eax, dword [ebx + eax*4 + 0x148]
mov ecx, dword [ebx + 0x98]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
cmp eax, 1
jl 0x10081e29
cmp eax, 0x11
jl 0x10081e39
cmp byte [edx], 0
jne 0x10081e39
cmp eax, 1
je 0x10081e39
mov dword [ebx], 1
mov eax, dword [ebx]
mov edx, 0x100dfbfc
dec eax
mov dword [esp + 0x2c], 0x100dc701
cmp eax, 0xd
ja case.0x10081e59.2
movzx eax, byte [eax + 0x10082434]
jmp dword [eax*4 + 0x10082418]
cmp byte [ebx + 0x248], 0
mov byte [ebx + 0x100], 1
je 0x10081e91
push dword [esp + 0x84]
cmp ecx, 6
mov eax, edx
push ebp
cmovne eax, dword [esp + 0x34]
push eax
push str.SOCKS4_s:_connecting_to_HTTP_proxy__s_port__d_n
push edi
call fcn.10072d10
add esp, 0x14
push dword [esp + 0x84]
push ebp
push str.SOCKS4_communication_to__s:_d_n
push edi
call fcn.10072d10
mov ecx, dword [esp + 0x94]
add esp, 0x10
mov eax, ecx
mov word [esi], 0x104
sar eax, 8
cmp dword [esp + 0x1c], 6
mov byte [esi + 2], al
mov byte [esi + 3], cl
je 0x10081f1b
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push ebp
push edi
call fcn.1007b0b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x100820a5
cmp eax, 1
mov eax, dword [edi + 0xc]
jne 0x10081fc1
cmp dword [eax], 0xa
je 0x10081ef7
mov dword [eax], 0xa
push ebp
push str.SOCKS4_non_blocking_resolve_of__s_n
push edi
call fcn.10072d10
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
mov eax, dword [edi + 0xc]
cmp dword [eax], 9
je case.0x10081e59.9
mov dword [eax], 9
mov eax, dword [esp + 0x14]
lea ecx, [esi + 8]
mov byte [ecx], 0
test eax, eax
je 0x100820d2
mov edx, eax
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10081f44
mov eax, dword [edi + 0x4e0]
sub edx, dword [esp + 0x18]
sub eax, 8
cmp edx, eax
jb 0x100820bd
push str.Too_long_SOCKS_proxy_user_name__cant_use_
push edi
call fcn.10072c50
add esp, 8
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
push dword [ebx + 0xc4]
push ebp
push edi
call fcn.1007aa90
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x10082034
push ebp
push str.Hostname__s_was_found_n
push edi
mov dword [edi + 0x9bc], eax
mov byte [edi + 0x9d0], 1
call fcn.10072d10
mov eax, dword [edi + 0xc]
add esp, 0xc
cmp dword [eax], 0xb
je case.0x10081e59.11
mov dword [eax], 0xb
cmp dword [esp + 0x10], 0
je 0x10082096
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10082096
push 0x40
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.1007b060
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [eax + 4], 2
jne 0x10082063
mov ecx, dword [eax + 0x18]
movzx eax, byte [ecx + 4]
mov byte [esi + 4], al
movzx eax, byte [ecx + 5]
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
mov byte [esi + 6], al
movzx eax, byte [ecx + 7]
mov byte [esi + 7], al
lea eax, [esp + 0x34]
push eax
push str.SOCKS4_connect_to_IPv4__s__locally_resolved__n
push edi
call fcn.10072d10
jmp 0x1008207b
lea eax, [esp + 0x10]
push eax
push edi
call fcn.1007b310
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x10081fd7
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
lea eax, [esp + 0x34]
mov dword [esp + 0x18], 0
push eax
push str.SOCKS4_connection_to__s_not_supported
push edi
call fcn.10072c50
add esp, 0xc
push dword [esp + 0x10]
push edi
call fcn.1007b3a0
add esp, 8
cmp dword [esp + 0x18], 0
jne case.0x10081e59.9
push ebp
push str.Failed_to_resolve___s__for_SOCKS4_connect.
push edi
call fcn.10072c50
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
lea eax, [edx + 1]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
call fcn.100adbd0
add esp, 0xc
lea ecx, [esi + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100820d5
sub ecx, edx
cmp dword [esp + 0x1c], 6
lea edx, [ecx + 9]
jne 0x10082132
mov ecx, ebp
mov dword [esi + 4], 0x1000000
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100820f8
sub ecx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
cmp eax, 0xff
ja 0x1008218e
mov ecx, edx
sub ecx, ebp
add ecx, esi
nop word [eax + eax]
mov al, byte [ebp]
lea ebp, [ebp + 1]
mov byte [ecx + ebp - 1], al
test al, al
jne 0x10082120
add edx, dword [esp + 0x14]
mov dword [ebx + 8], esi
mov dword [ebx + 4], edx
mov eax, dword [edi + 0xc]
cmp dword [eax], 0xe
je case.0x10081e59.14
mov dword [eax], 0xe
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
push dword [ebx + 8]
push ebp
push edi
call fcn.10073110
add esp, 0x14
test eax, eax
je 0x100821b4
cmp eax, 0x51
je 0x100821b4
push str.Failed_to_send_SOCKS4_connect_request.
push edi
call fcn.10072c50
add esp, 8
mov eax, 0x1d
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
push str.SOCKS4:_too_long_host_name
push edi
call fcn.10072c50
add esp, 8
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x100821e0
pop edi
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
add dword [ebx + 8], eax
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
mov dword [ebx + 4], 8
mov dword [ebx + 8], esi
mov eax, dword [edi + 0xc]
cmp dword [eax], 4
je 0x100821fe
mov dword [eax], 4
jmp 0x100821fe
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push dword [ebx + 4]
push dword [ebx + 8]
push ebp
call fcn.10072e60
mov ecx, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x1008224c
cmp eax, 0x51
je 0x10082276
push eax
call fcn.10084c00
push eax
push str.SOCKS4:_Failed_receiving_connect_request_ack:__s
push edi
call fcn.10072c50
add esp, 0x10
mov eax, 0xf
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
test ecx, ecx
jne 0x10082276
push str.connection_to_proxy_closed
push edi
call fcn.10072c50
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
mov eax, dword [ebx + 4]
cmp ecx, eax
je 0x1008229e
pop edi
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x24]
add dword [ebx + 8], eax
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
mov eax, dword [edi + 0xc]
mov edx, 0x100dfbfc
cmp dword [eax], 0x11
je case.0x10081e59.2
mov dword [eax], 0x11
cmp byte [esi], 0
je 0x100822dc
push str.SOCKS4_reply_has_wrong_version__version_should_be_0.
push edi
call fcn.10072c50
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
movzx eax, byte [esi + 1]
lea ecx, [eax - 0x5a]
cmp ecx, 3
ja case.default.0x100822ec
jmp dword [ecx*4 + 0x10082444]
cmp dword [esp + 0x1c], 6
cmovne edx, dword [esp + 0x2c]
push edx
push str.SOCKS4_s_request_granted._n
push edi
call fcn.10072d10
mov eax, dword [esp + 0x3c]
add esp, 0xc
pop edi
pop esi
pop ebp
mov byte [eax], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret
movzx ecx, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
push ecx
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_or_failed.
push edi
call fcn.10072c50
mov eax, 0x1a
jmp 0x100823fd
movzx ecx, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
push ecx
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_because_SOCKS_server_cannot_connect_to_identd_on_the_client.
push edi
call fcn.10072c50
mov eax, 7
jmp 0x100823fd
movzx ecx, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
push ecx
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_because_the_client_program_and_identd_report_different_user_ids.
push edi
call fcn.10072c50
mov eax, 8
jmp 0x100823fd
movzx ecx, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
push ecx
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___Unknown.
push edi
call fcn.10072c50
mov eax, 0x1f
mov ecx, dword [esp + 0x94]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ab558
add esp, 0x68
ret