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

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x111c8010]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov ecx, dword [esp + 0x2cc]
mov eax, dword [esp + 0x2c8]
mov edx, dword [esp + 0x2d8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2dc]
mov dword [esp + 0x28], ecx
xor ecx, ecx
push edi
mov edi, dword [esp + 0x2ec]
cmp dword [edi + 0xc8], 5
mov ebp, dword [edi + edx*4 + 0x190]
sete cl
mov dword [esp + 0x24], eax
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov eax, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x18], ecx
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1107dba0
sub eax, ecx
cmp dword [edi + 0x2a0], 0
mov ebx, eax
mov dword [esp + 0x30], ebx
je 0x1107dbd5
mov edx, dword [esp + 0x2e4]
mov eax, dword [esp + 0x10]
push edx
push esi
push str.SOCKS5:_connecting_to_HTTP_proxy__s_port__d_n
push eax
call fcn.11052010
add esp, 0x10
cmp dword [esp + 0x18], 0
jne 0x1107dbfd
cmp ebx, 0xff
jbe 0x1107dbfd
mov ecx, dword [edi]
push ebx
push str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu__n
push ecx
call fcn.11052010
add esp, 0xc
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x10]
push 1
push 0
push edx
call fcn.1105e840
mov ebx, edx
add esp, 0xc
test ebx, ebx
mov esi, eax
jg 0x1107dc35
jl 0x1107dc1c
test esi, esi
jae 0x1107dc35
mov eax, dword [esp + 0x10]
push str.Connection_time_out
push eax
call fcn.110520a0
mov eax, 0x1c
jmp 0x1107e2c2
push 1
push ebp
call fcn.11080620
push ebx
push esi
push ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.110527b0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1107dc5e
mov ecx, dword [edi]
push str.SOCKS5:_no_connection_here
push ecx
jmp 0x1107e2b8
test eax, eax
jne 0x1107dc79
mov edx, dword [edi]
push str.SOCKS5:_connection_timeout
push edx
call fcn.110520a0
mov eax, 0x1c
jmp 0x1107e2c2
test al, 4
je 0x1107dc8a
mov eax, dword [edi]
push str.SOCKS5:_error_occurred_during_connection
push eax
jmp 0x1107e2b8
cmp dword [esp + 0x24], 0
push 0
setne cl
add cl, 1
push ebp
mov byte [esp + 0x40], 5
mov byte [esp + 0x41], cl
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 2
call fcn.11080620
mov edx, dword [esp + 0x2ec]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push edx
push eax
push str.SOCKS5_communication_to__s:_d_n
push ecx
call fcn.11052010
movzx eax, byte [esp + 0x51]
lea edx, [esp + 0x38]
push edx
add eax, 2
push eax
lea ecx, [esp + 0x58]
push ecx
push ebp
push edi
call fcn.11052650
add esp, 0x2c
test eax, eax
jne 0x1107e2ae
movzx edx, byte [esp + 0x39]
add edx, 2
cmp dword [esp + 0x20], edx
jne 0x1107e2ae
push 1
push ebp
call fcn.11080620
push ebx
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.110527b0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1107dd2c
mov eax, dword [edi]
push str.SOCKS5_nothing_to_read
push eax
jmp 0x1107e2b8
test eax, eax
jne 0x1107dd47
mov ecx, dword [edi]
push str.SOCKS5_read_timeout
push ecx
call fcn.110520a0
mov eax, 0x1c
jmp 0x1107e2c2
test al, 4
je 0x1107dd62
mov edx, dword [edi]
push str.SOCKS5_read_error_occurred
push edx
call fcn.110520a0
mov eax, 0x38
jmp 0x1107e2c2
push 0
push ebp
call fcn.11080620
lea eax, [esp + 0x1c]
push eax
push 2
lea ecx, [esp + 0x48]
push ecx
push ebp
push edi
call fcn.1107d580
add esp, 0x1c
test eax, eax
jne 0x1107e2a2
cmp dword [esp + 0x14], 2
jne 0x1107e2a2
cmp byte [esp + 0x38], 5
je 0x1107dda4
push str.Received_invalid_version_in_initial_SOCKS5_response.
jmp 0x1107e2b3
mov al, byte [esp + 0x39]
test al, al
je 0x1107ded0
cmp al, 2
jne 0x1107e262
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x1107ddf7
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x1107ddf7
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1107ddd0
sub eax, edx
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1107dde2
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
jmp 0x1107ddfb
mov dword [esp + 0x1c], ebx
test eax, eax
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], bl
je 0x1107de1b
test ebx, ebx
je 0x1107de1b
push ebx
push eax
lea eax, [esp + 0x42]
push eax
call fcn.11135a80
add esp, 0xc
mov cl, byte [esp + 0x1c]
lea esi, [ebx + 2]
mov byte [esp + esi + 0x38], cl
add esi, 1
cmp dword [esp + 0x2c], 0
je 0x1107de4e
cmp dword [esp + 0x1c], 0
je 0x1107de4e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + esi + 0x40]
push ecx
call fcn.11135a80
add esp, 0xc
add esi, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x40]
push eax
push ebp
push edi
call fcn.11052650
add esp, 0x14
test eax, eax
jne 0x1107e25b
cmp esi, dword [esp + 0x20]
jne 0x1107e25b
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x40]
push edx
push ebp
push edi
call fcn.1107d580
add esp, 0x14
test eax, eax
jne 0x1107e24f
cmp dword [esp + 0x14], 2
jne 0x1107e24f
mov al, byte [esp + 0x39]
test al, al
je 0x1107ded0
movzx ecx, byte [esp + 0x38]
mov edx, dword [esp + 0x10]
movzx eax, al
push eax
push ecx
push str.User_was_rejected_by_the_SOCKS5_server___d__d_.
push edx
call fcn.110520a0
add esp, 0x10
mov eax, 7
jmp 0x1107e2c5
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x38], 5
mov byte [esp + 0x39], 1
mov byte [esp + 0x3a], 0
mov esi, 3
jne 0x1107df9b
mov ebx, dword [esp + 0x30]
push ebx
push eax
lea ecx, [esp + 0x45]
push ecx
mov byte [esp + 0x47], 3
mov byte [esp + 0x48], bl
call fcn.11135a80
lea esi, [ebx + 5]
mov ebx, dword [esp + 0x2f0]
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov edx, ebx
sar edx, 8
mov byte [esp + esi + 0x38], dl
add esi, 1
mov byte [esp + esi + 0x38], bl
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
add esi, 1
push esi
lea ecx, [esp + 0x40]
push ecx
push ebx
push edi
call fcn.11052650
add esp, 0x14
test eax, eax
jne 0x1107e247
cmp esi, dword [esp + 0x20]
jne 0x1107e247
lea edx, [esp + 0x14]
push edx
lea esi, [eax + 0xa]
push esi
lea eax, [esp + 0x40]
push eax
push ebx
push edi
call fcn.1107d580
add esp, 0x14
test eax, eax
jne 0x1107e23f
cmp dword [esp + 0x14], esi
jne 0x1107e23f
cmp byte [esp + 0x38], 5
je 0x1107e0a2
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
push ebp
jmp 0x1107e2b8
mov ebx, dword [esp + 0x2e4]
lea edx, [esp + 0x18]
push edx
push ebx
push eax
push edi
call fcn.110549c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x1107e098
cmp eax, 1
jne 0x1107dfd6
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.11053210
add esp, 8
test eax, eax
jne 0x1107e2c5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1107e081
mov ebp, dword [eax]
test ebp, ebp
je 0x1107e081
push 0x40
lea edx, [esp + 0x294]
push edx
push ebp
call fcn.11054690
add esp, 0xc
cmp dword [ebp + 4], 2
jne 0x1107e04b
mov byte [esp + 0x3b], 1
mov eax, dword [ebp + 0x18]
movzx ecx, byte [eax + 4]
mov byte [esp + 0x3c], cl
movzx edx, byte [eax + 5]
mov byte [esp + 0x3d], dl
movzx ecx, byte [eax + 6]
mov byte [esp + 0x3e], cl
movzx edx, byte [eax + 7]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x290]
push eax
push str.SOCKS5_connect_to_IPv4__s__locally_resolved__n
push ecx
mov byte [esp + 0x4b], dl
mov esi, 8
call fcn.11052010
jmp 0x1107e064
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x290]
push edx
push str.SOCKS5_connection_to__s_not_supported_n
push eax
xor ebp, ebp
call fcn.110520a0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push edx
call fcn.11054ec0
add esp, 8
test ebp, ebp
jne 0x1107df19
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push eax
push str.Failed_to_resolve___s__for_SOCKS5_connect.
push ecx
call fcn.110520a0
add esp, 0xc
mov eax, 6
jmp 0x1107e2c5
mov al, byte [esp + 0x3b]
cmp al, 3
jne 0x1107e0e8
movzx esi, byte [esp + 0x3c]
add esi, 7
cmp esi, 0xa
jle 0x1107e0fb
lea ecx, [esp + 0x14]
push ecx
lea ebp, [esi - 0xa]
push ebp
lea edx, [esp + 0x4a]
push edx
push ebx
push edi
call fcn.1107d580
add esp, 0x14
test eax, eax
jne 0x1107e0d9
cmp ebp, dword [esp + 0x14]
je 0x1107e0f3
mov eax, dword [esp + 0x10]
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push eax
jmp 0x1107e2b8
cmp al, 4
jne 0x1107e0fb
mov esi, 0x16
jmp 0x1107e0b7
mov al, byte [esp + 0x3b]
mov ebp, dword [esp + 0x10]
mov cl, byte [esp + 0x39]
test cl, cl
je 0x1107e222
cmp al, 1
jne 0x1107e14f
movzx edx, byte [esp + 0x40]
movzx eax, byte [esp + 0x41]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x43]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x41]
push edx
movzx edx, byte [esp + 0x46]
push ecx
movzx ecx, byte [esp + 0x48]
push edx
push eax
push ecx
push str.Cant_complete_SOCKS5_connection_to__d._d._d._d:_d.___d_
push ebp
call fcn.110520a0
add esp, 0x20
mov eax, 7
jmp 0x1107e2c5
cmp al, 3
jne 0x1107e18e
movzx eax, byte [esp + esi + 0x37]
mov bl, byte [esp + esi + 0x36]
lea esi, [esp + esi + 0x38]
mov ah, bl
mov byte [esi - 2], 0
movzx edx, byte [esp + 0x39]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x45]
push ecx
push str.Cant_complete_SOCKS5_connection_to__s:_d.___d_
push edx
call fcn.110520a0
add esp, 0x14
mov eax, 7
jmp 0x1107e2c5
cmp al, 4
jne 0x1107e218
movzx edx, byte [esp + 0x4d]
movzx eax, cl
movzx ecx, byte [esp + 0x4c]
push eax
movzx eax, byte [esp + 0x4f]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x4d]
push ecx
movzx ecx, byte [esp + 0x52]
push eax
movzx eax, byte [esp + 0x54]
push ecx
movzx ecx, byte [esp + 0x57]
push edx
movzx edx, byte [esp + 0x5a]
push eax
movzx eax, byte [esp + 0x5d]
push ecx
movzx ecx, byte [esp + 0x60]
push edx
movzx edx, byte [esp + 0x63]
push eax
movzx eax, byte [esp + 0x66]
push ecx
movzx ecx, byte [esp + 0x69]
push edx
movzx edx, byte [esp + 0x6c]
push eax
movzx eax, byte [esp + 0x6f]
push ecx
movzx ecx, byte [esp + 0x72]
push edx
movzx edx, byte [esp + 0x75]
push eax
movzx eax, byte [esp + 0x78]
push ecx
push edx
push eax
push str.Cant_complete_SOCKS5_connection_to__02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_d.___d_
push ebp
call fcn.110520a0
add esp, 0x50
mov eax, 7
jmp 0x1107e2c5
push str.SOCKS5_request_granted._n
push ebp
call fcn.11052010
push 1
push ebx
call fcn.11080620
add esp, 0x10
xor eax, eax
jmp 0x1107e2c5
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push ebp
jmp 0x1107e2b8
push str.Failed_to_send_SOCKS5_connect_request.
push ebp
jmp 0x1107e2b8
mov ecx, dword [esp + 0x10]
push str.Unable_to_receive_SOCKS5_sub_negotiation_response.
push ecx
jmp 0x1107e2b8
push str.Failed_to_send_SOCKS5_sub_negotiation_request.
jmp 0x1107e2b3
cmp al, 1
jne 0x1107e272
mov eax, dword [esp + 0x10]
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
push eax
jmp 0x1107e2b8
cmp al, 0xff
jne 0x1107e296
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1107e28f
cmp byte [eax], 0
je 0x1107e28f
mov ecx, dword [esp + 0x10]
push str.No_authentication_method_was_acceptable.
push ecx
jmp 0x1107e2b8
push str.No_authentication_method_was_acceptable.__It_is_quite_likely_that_the_SOCKS5_server_wanted_a_username_password__since_none_was_supplied_to_the_server_on_this_connection._
jmp 0x1107e2b3
mov eax, dword [esp + 0x10]
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
push eax
jmp 0x1107e2b8
mov ecx, dword [esp + 0x10]
push str.Unable_to_receive_initial_SOCKS5_response.
push ecx
jmp 0x1107e2b8
push str.Unable_to_send_initial_SOCKS5_request.
mov edx, dword [esp + 0x14]
push edx
call fcn.110520a0
mov eax, 7
add esp, 8
mov ecx, dword [esp + 0x2d0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1113507a
add esp, 0x2c4
ret