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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2dc
mov ebx, dword [esp + 0x304]
mov eax, dword [esp + 0x300]
cmp dword [ebx + 0x11c], 5
mov ebp, dword [ebx + eax*4 + 0x138]
mov esi, dword [ebx]
sete al
mov edi, eax
mov eax, dword [esp + 0x2f8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xff
mov dword [esp + 0x54], eax
ja 0x43d590
mov eax, edi
movzx eax, al
mov dword [esp + 0x58], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00414930
test eax, eax
mov edi, eax
js 0x43d570
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00413d80
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
call fcn.00413ef0
cmp eax, 0xffffffff
je 0x43d5c0
test eax, eax
je 0x43d604
test al, 4
jne 0x43d5e2
cmp dword [esp + 0x2f0], 1
mov dword [esp + 4], 0
mov dword [esp], ebp
sbb eax, eax
add eax, 2
mov byte [esp + 0x78], 5
mov byte [esp + 0x79], al
mov byte [esp + 0x7a], 0
mov byte [esp + 0x7b], 2
call fcn.00413d80
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x79]
mov dword [esp + 4], ebp
mov dword [esp], ebx
add eax, 2
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
call fcn.004166f0
test eax, eax
jne 0x43d549
movzx eax, byte [esp + 0x79]
add eax, 2
cmp eax, dword [esp + 0x70]
je 0x43d626
mov dword [esp], esi
mov dword [esp + 4], str.Unable_to_send_initial_SOCKS5_request.
call fcn.00416580
add esp, 0x2dc
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Connection_time_out
mov dword [esp], esi
call fcn.00416580
mov eax, 0x1c
add esp, 0x2dc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
test al, al
jne 0x43d46b
mov eax, dword [esp + 0x54]
mov dword [esp + 4], str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu__n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00416500
mov dword [esp + 0x58], 1
jmp 0x43d474
mov dword [esp + 4], str.SOCKS5:_no_connection_here
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00416580
add esp, 0x2dc
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.SOCKS5:_error_occurred_during_connection
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00416580
add esp, 0x2dc
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.SOCKS5:_connection_timeout
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00416580
add esp, 0x2dc
mov eax, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00413d80
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebp
call fcn.00413ef0
cmp eax, 0xffffffff
je 0x43d69a
test eax, eax
je 0x43d67e
test al, 4
lea esi, [esi]
je 0x43d6b6
mov dword [esp + 4], str.SOCKS5_read_error_occurred
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00416580
mov eax, 0x38
jmp 0x43d585
mov dword [esp + 4], str.SOCKS5_read_timeout
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00416580
mov eax, 0x1c
jmp 0x43d585
mov dword [esp + 4], str.SOCKS5_nothing_to_read
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00416580
mov eax, 7
jmp 0x43d585
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00413d80
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.0043cd30
test eax, eax
jne 0x43d6f5
cmp dword [esp + 0x6c], 2
je 0x43d70f
mov dword [esp + 4], str.Unable_to_receive_initial_SOCKS5_response.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
cmp byte [esp + 0x78], 5
je 0x43d730
mov dword [esp + 4], str.Received_invalid_version_in_initial_SOCKS5_response.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
movzx eax, byte [esp + 0x79]
test al, al
je 0x43d770
cmp al, 2
je 0x43d96e
cmp al, 1
je 0x43d954
add al, 1
nop
lea esi, [esi]
je 0x43da5d
mov dword [esp + 4], str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
cmp dword [esp + 0x58], 0
mov byte [esp + 0x78], 5
mov byte [esp + 0x79], 1
mov byte [esp + 0x7a], 0
jne 0x43d81c
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x2f8]
mov byte [esp + 0x7b], 3
mov eax, edi
mov byte [esp + 0x7c], al
lea eax, [esp + 0x7d]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea edx, [edi + 5]
mov eax, dword [esp + 0x2fc]
lea edi, [edx + 2]
sar eax, 8
mov byte [esp + edx + 0x78], al
movzx eax, byte [esp + 0x2fc]
mov byte [esp + edx + 0x79], al
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.004166f0
test eax, eax
jne 0x43d802
cmp edi, dword [esp + 0x70]
je 0x43db29
mov dword [esp + 4], str.Failed_to_send_SOCKS5_connect_request.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
mov eax, dword [esp + 0x2fc]
lea edi, [esp + 0x74]
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2f8]
mov dword [esp + 4], eax
call fcn.004176f0
cmp eax, 0xffffffff
je 0x43d8b1
sub eax, 1
je 0x43d89c
mov eax, dword [esp + 0x74]
test eax, eax
je 0x43d877
mov edx, dword [eax]
test edx, edx
je 0x43d877
mov ecx, dword [edx + 4]
cmp ecx, 2
je 0x43d907
cmp ecx, 0x17
je 0x43d8bb
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00417940
mov eax, dword [esp + 0x2f8]
mov dword [esp + 4], str.Failed_to_resolve___s__for_SOCKS5_connect.
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00416580
mov eax, 6
jmp 0x43d585
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00416d60
test eax, eax
je 0x43d84c
jmp 0x43d585
mov eax, 6
jmp 0x43d585
lea edi, [esp + 0x7c]
mov byte [esp + 0x7b], 4
mov ecx, dword [edx + 0x18]
xor edx, edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
movzx eax, byte [ecx + edx + 8]
mov edi, dword [esp + 0x54]
mov byte [edi + edx], al
add edx, 1
cmp edx, 0x10
jne 0x43d8d1
mov eax, dword [esp + 0x58]
mov edx, 0x14
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x54], edx
call fcn.00417940
mov edx, dword [esp + 0x54]
jmp 0x43d7b7
mov byte [esp + 0x7b], 1
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x7c]
xor edi, edi
mov dword [esp + 0x54], eax
movzx eax, byte [edx + edi + 4]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], edx
mov byte [ecx + edi], al
add edi, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x46c621
mov dword [esp], esi
call fcn.00416500
cmp edi, 4
mov edx, dword [esp + 0x58]
jne 0x43d919
mov edx, 8
mov eax, dword [esp + 0x74]
jmp 0x43d8ee
mov dword [esp + 4], str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
cmp dword [esp + 0x2f0], 0
je 0x43da91
cmp dword [esp + 0x2f4], 0
je 0x43da91
mov edi, dword [esp + 0x2f0]
or edx, 0xffffffff
xor eax, eax
mov ecx, edx
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2f4]
not ecx
sub ecx, 1
mov dword [esp + 0x5c], ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov byte [esp + 0x78], 1
not ecx
lea edi, [ecx - 1]
mov ecx, dword [esp + 0x5c]
test ecx, ecx
mov byte [esp + 0x79], cl
je 0x43d9df
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2f0]
lea eax, [esp + 0x7a]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x5c]
test edi, edi
mov ecx, eax
lea edx, [eax + 3]
mov eax, edi
mov byte [esp + ecx + 0x7a], al
je 0x43da17
mov ecx, dword [esp + 0x2f4]
lea eax, [esp + 0x78]
add eax, edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x5c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x70]
add edi, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.004166f0
test eax, eax
jne 0x43da43
cmp edi, dword [esp + 0x70]
je 0x43daac
mov dword [esp + 4], str.Failed_to_send_SOCKS5_sub_negotiation_request.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
cmp dword [esp + 0x2f0], 0
je 0x43da77
mov eax, dword [esp + 0x2f0]
cmp byte [eax], 0
jne 0x43db72
mov dword [esp + 4], 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._
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
mov byte [esp + 0x78], 1
xor edi, edi
mov edx, 3
mov byte [esp + 0x79], 0
mov byte [esp + 0x7a], 0
jmp 0x43da17
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.0043cd30
test eax, eax
jne 0x43dadb
cmp dword [esp + 0x6c], 2
je 0x43daf5
mov dword [esp + 4], str.Unable_to_receive_SOCKS5_sub_negotiation_response.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
movzx eax, byte [esp + 0x79]
test al, al
je 0x43d770
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x78]
mov dword [esp + 4], str.User_was_rejected_by_the_SOCKS5_server___d__d_.
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00416580
mov eax, 7
jmp 0x43d585
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.0043cd30
test eax, eax
jne 0x43db58
cmp dword [esp + 0x6c], 0xa
je 0x43db8c
mov dword [esp + 4], str.Failed_to_receive_SOCKS5_connect_request_ack.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
mov dword [esp + 4], str.No_authentication_method_was_acceptable.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
cmp byte [esp + 0x78], 5
je 0x43dbad
mov dword [esp + 4], str.SOCKS5_reply_has_wrong_version__version_should_be_5.
mov dword [esp], esi
call fcn.00416580
mov eax, 7
jmp 0x43d585
movzx edx, byte [esp + 0x79]
test dl, dl
je 0x43dcbf
movzx ecx, byte [esp + 0x7b]
cmp cl, 1
je 0x43dd2d
cmp cl, 3
je 0x43dceb
cmp cl, 4
mov eax, 7
jne 0x43d585
movzx ecx, byte [esp + 0x80]
movzx ebx, byte [esp + 0x81]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
mov edx, ecx
shl edx, 8
or edx, ebx
mov dword [esp + 0x48], edx
movzx edx, byte [esp + 0x8b]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], edx
movzx edx, byte [esp + 0x8a]
mov dword [esp + 0x40], edx
movzx edx, byte [esp + 0x89]
mov dword [esp + 0x3c], edx
movzx edx, byte [esp + 0x88]
mov dword [esp + 0x38], edx
movzx edx, byte [esp + 0x87]
mov dword [esp + 0x34], edx
movzx edx, byte [esp + 0x86]
mov dword [esp + 0x30], edx
movzx edx, byte [esp + 0x85]
mov dword [esp + 0x2c], edx
movzx edx, byte [esp + 0x84]
mov dword [esp + 0x28], edx
movzx edx, byte [esp + 0x83]
mov dword [esp + 0x24], edx
movzx edx, byte [esp + 0x82]
mov dword [esp + 0x20], edx
movzx edx, byte [esp + 0x7f]
mov dword [esp + 0x14], edx
movzx edx, byte [esp + 0x7e]
mov dword [esp + 0x10], edx
movzx edx, byte [esp + 0x7d]
mov dword [esp + 0xc], edx
movzx edx, byte [esp + 0x7c]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Cant_complete_SOCKS5_connection_to__02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_d.___d_
mov dword [esp], esi
call fcn.00416580
mov eax, dword [esp + 0x54]
jmp 0x43d585
movzx eax, byte [esp + 0x7b]
cmp al, 3
je 0x43ddca
cmp al, 4
je 0x43dd88
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00413d80
xor eax, eax
jmp 0x43d585
movzx eax, byte [esp + 0x80]
mov dword [esp + 0x10], edx
movzx edx, byte [esp + 0x81]
mov dword [esp + 4], str.Cant_complete_SOCKS5_connection_to__s:_d.___d_
mov dword [esp], esi
shl eax, 8
or eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2f8]
mov dword [esp + 8], eax
call fcn.00416580
mov eax, 7
jmp 0x43d585
movzx eax, byte [esp + 0x80]
mov dword [esp + 0x1c], edx
movzx edx, byte [esp + 0x81]
mov dword [esp + 4], str.Cant_complete_SOCKS5_connection_to__d._d._d._d:_d.___d_
mov dword [esp], esi
shl eax, 8
or eax, edx
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x7f]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x7e]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x7d]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.00416580
mov eax, 7
jmp 0x43d585
mov eax, 0x16
lea edi, [eax - 0xa]
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x82]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.0043cd30
test eax, eax
jne 0x43db58
cmp edi, dword [esp + 0x6c]
jne 0x43db58
jmp 0x43dcd4
movzx eax, byte [esp + 0x7c]
add eax, 7
cmp eax, 0xa
jg 0x43dd8d
jmp 0x43dcd4