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

Disassembly:
push 0xffffffffffffffff
push 0x695e23
mov eax, dword fs:[0]
push eax
sub esp, 0x3f4
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x3f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x408]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x42c]
mov eax, dword [esp + 0x41c]
mov edx, dword [esp + 0x430]
mov esi, dword [esp + 0x438]
mov ebx, dword [esp + 0x428]
mov ebp, dword [esp + 0x418]
mov edi, dword [esp + 0x434]
push str.socks5Connect
mov dword [esp + 0x48], ecx
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x70], edx
call fcn.004b1850
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x410], 0
mov dword [eax], 0
call fcn.00484e60
mov ecx, ebx
call fcn.005213a0
lea ecx, [esp + 0x180]
mov dword [esp + 0x1c], eax
call fcn.00485650
lea ecx, [esp + 0x180]
push ecx
mov ecx, ebx
mov byte [esp + 0x414], 1
call fcn.004a61e0
lea ecx, [esp + 0x98]
call fcn.00485650
lea edx, [esp + 0x98]
push edx
mov ecx, ebx
mov byte [esp + 0x414], 2
call fcn.004a6200
lea ecx, [esp + 0x1f4]
call fcn.00485650
lea eax, [esp + 0x1f4]
push eax
mov ecx, ebx
mov byte [esp + 0x414], 3
call fcn.004a6220
cmp dword [esp + 0x1c], 0
mov ebx, dword [edi + 4]
je 0x5a8b5a
lea ecx, [esp + 0x180]
call fcn.005d5d40
test eax, eax
je 0x5a8b5a
test ebx, ebx
je 0x5a815a
lea ecx, [esp + 0x268]
call fcn.00485650
lea ecx, [esp + 0x180]
push ecx
lea ecx, [esp + 0x26c]
mov byte [esp + 0x414], 4
call fcn.004870b0
push 0x3a
lea ecx, [esp + 0x26c]
call fcn.00487e40
mov edx, dword [esp + 0x420]
push edx
lea ecx, [esp + 0x26c]
call fcn.00488660
lea ecx, [esp + 0x268]
call fcn.00483ec0
push eax
push str.Socks5Connect
mov ecx, ebx
call fcn.004d0ba0
lea ecx, [esp + 0x268]
mov byte [esp + 0x410], 3
call fcn.00485710
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 1
push str.SOCKS5
mov ecx, esi
call edx
lea eax, [esp + 0x180]
push eax
push str.socksHostname
mov ecx, esi
call fcn.004b1210
mov ecx, dword [esp + 0x1c]
push ecx
push str.socksPort
mov ecx, esi
call fcn.004b14c0
lea edx, [esp + 0x98]
push edx
push str.socksUsername
mov ecx, esi
call fcn.004b1210
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x40]
call fcn.00483ec0
push eax
lea ecx, [esp + 0x110]
call fcn.00485690
push 0x2e
lea ecx, [esp + 0x110]
mov byte [esp + 0x414], 5
call fcn.00487830
test eax, eax
mov ebx, dword [esp + 0x424]
jne 0x5a8260
lea ecx, [esp + 0x2dc]
call fcn.0047f3a0
lea eax, [esp + 0x2dc]
push eax
push esi
push edi
lea ecx, [esp + 0x118]
push ebx
push ecx
mov byte [esp + 0x424], 6
call fcn.00574980
add esp, 0x14
test al, al
je 0x5a824c
lea ecx, [esp + 0x2dc]
call fcn.004828c0
push eax
lea ecx, [esp + 0x110]
call fcn.004872c0
cmp byte [esi + 0x121], 0
je 0x5a824c
lea edx, [esp + 0x10c]
push edx
push str.usingIpAddress
mov ecx, esi
call fcn.004b1210
lea ecx, [esp + 0x2dc]
mov byte [esp + 0x410], 5
call fcn.0047f440
lea ecx, [esp + 0x10c]
call fcn.00484060
lea ecx, [esp + 0x10c]
call fcn.005d5d40
test eax, eax
jne 0x5a82a3
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.No_target_hostname_for_SOCKS5_connection.
mov ecx, esi
call edx
lea ecx, [esp + 0x10c]
mov byte [esp + 0x410], 3
call fcn.00485710
jmp 0x5a8b68
lea ecx, [esp + 0x10c]
call fcn.00483ec0
lea ecx, [esp + 0x10c]
mov dword [esp + 0x38], eax
call fcn.005d5d40
xor edx, edx
test eax, eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x17], 0
jle 0x5a82ed
mov edi, edi
mov ecx, dword [esp + 0x38]
mov cl, byte [edx + ecx]
cmp cl, 0x2e
je 0x5a82e6
cmp cl, 0x30
jl 0x5a835b
cmp cl, 0x39
jg 0x5a835b
add edx, 1
cmp edx, eax
jl 0x5a82d0
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x78]
push edx
push str._d._d._d._d
push eax
call fcn.004ac010
add esp, 0x18
cmp eax, 4
je 0x5a8360
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Invalid_SOCKS5_destination_IP_address
mov ecx, esi
call eax
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push eax
push str.ipAddress3
mov ecx, esi
call edx
lea ecx, [esp + 0x10c]
mov byte [esp + 0x410], 3
call fcn.00485710
jmp 0x5a8b68
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
push esi
push edi
push eax
push ecx
lea edx, [esp + 0x190]
push edx
mov ecx, ebp
call fcn.00577c10
test al, al
jne 0x5a83d4
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_connect_to_SOCKS5_server.
mov ecx, esi
call edx
mov edi, dword [esi]
lea ecx, [esp + 0x180]
add edi, 0x2c
call fcn.00483ec0
push eax
mov eax, dword [edi]
push str.socksHostname
mov ecx, esi
call eax
mov ecx, dword [esp + 0x1c]
push ecx
push str.socksPort
mov ecx, esi
call fcn.004b14c0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x410], 3
call fcn.00485710
jmp 0x5a8b68
lea ecx, [esp + 0x98]
mov byte [esp + 0x30], 5
mov byte [esp + 0x31], 2
mov byte [esp + 0x32], 0
mov byte [esp + 0x33], 2
mov dword [esp + 0x3c], 0
call fcn.005d5d40
test eax, eax
je 0x5a842a
lea ecx, [esp + 0x1f4]
call fcn.005d5d40
test eax, eax
je 0x5a842a
push edi
push esi
lea edx, [esp + 0x44]
push edx
push ebx
push 0
push 0
push 0x800
push 4
lea eax, [esp + 0x50]
push eax
jmp 0x5a8455
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.No_SOCKS5_username_and_or_password__requesting_No_Authentication...
mov ecx, esi
call eax
push edi
push esi
lea ecx, [esp + 0x44]
push ecx
push ebx
push 0
push 0
push 0x800
push 3
lea edx, [esp + 0x50]
mov byte [esp + 0x51], 1
push edx
mov ecx, ebp
call fcn.00576cb0
test al, al
jne 0x5a8496
push str.Failed_to_send_version_identifier_to_SOCKS5_server.
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov eax, dword [edi + 4]
push esi
push eax
push ebx
push 0
mov ecx, ebp
call fcn.00576ac0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x410], 3
call fcn.00485710
jmp 0x5a8b68
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push ebx
push 2
lea edx, [esp + 0x48]
push edx
mov ecx, ebp
mov dword [esp + 0x38], 0
call fcn.00577bb0
test al, al
jne 0x5a84bf
push str.Failed_to_receive_method_select_reply_from_SOCKS5_server.
jmp 0x5a8465
mov ax, word [esp + 0x34]
test ah, ah
jne 0x5a84e7
cmp byte [esi + 0x121], ah
je 0x5a86d3
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.SOCKS5_server_is_allowing_no_authentication.
mov ecx, esi
call eax
jmp 0x5a86d3
cmp ah, 2
jne 0x5a8b30
cmp byte [esi + 0x121], 0
je 0x5a8507
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.SOCKS5_server_selected_username_password_authentication.
mov ecx, esi
call eax
lea ecx, [esp + 0x70]
call fcn.00468060
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x414], 7
call fcn.00468d30
lea ecx, [esp + 0x98]
call fcn.005d5d40
test eax, eax
jne 0x5a857a
push str.SOCKS5_username_is_empty.
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, dword [edi + 4]
push esi
push ecx
push ebx
push 0
mov ecx, ebp
call fcn.00576ac0
lea ecx, [esp + 0x70]
mov byte [esp + 0x410], 5
call fcn.00468860
lea ecx, [esp + 0x10c]
mov byte [esp + 0x410], 3
call fcn.00485710
jmp 0x5a8b68
lea ecx, [esp + 0x1f4]
call fcn.005d5d40
test eax, eax
jne 0x5a8591
push str.SOCKS5_password_is_empty.
jmp 0x5a8538
lea ecx, [esp + 0x98]
call fcn.005d5d40
push eax
lea ecx, [esp + 0x74]
call fcn.00468d30
lea ecx, [esp + 0x98]
call fcn.005d5d40
push eax
lea ecx, [esp + 0x9c]
call fcn.00483ec0
push eax
lea ecx, [esp + 0x78]
call fcn.00469150
lea ecx, [esp + 0x1f4]
call fcn.005d5d40
push eax
lea ecx, [esp + 0x74]
call fcn.00468d30
lea ecx, [esp + 0x1f4]
call fcn.005d5d40
push eax
lea ecx, [esp + 0x1f8]
call fcn.00483ec0
push eax
lea ecx, [esp + 0x78]
call fcn.00469150
push edi
push esi
lea edx, [esp + 0x44]
push edx
push ebx
push 0
push 0
push 0x800
lea ecx, [esp + 0x8c]
call fcn.00544a30
push eax
lea ecx, [esp + 0x90]
call fcn.00467d80
push eax
mov ecx, ebp
call fcn.00576cb0
test al, al
jne 0x5a8651
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_send_username_password_to_SOCKS5_server.
mov ecx, esi
call edx
mov eax, dword [edi + 4]
push esi
push eax
jmp 0x5a8546
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push ebx
push 2
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00577bb0
test al, al
jne 0x5a8683
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_receive_username_password_reply_from_SOCKS5_server.
mov ecx, esi
call edx
mov eax, dword [edi + 4]
push esi
push eax
jmp 0x5a8546
cmp byte [esp + 0x1d], 0
je 0x5a86c2
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.SOCKS5_server_rejected_username_password
mov ecx, esi
call eax
mov eax, dword [esi]
add eax, 0x2c
lea ecx, [esp + 0x98]
mov dword [esp + 0x48], eax
call fcn.00483ec0
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edx]
push str.username
mov ecx, esi
call eax
jmp 0x5a8541
lea ecx, [esp + 0x70]
mov byte [esp + 0x410], 5
call fcn.00468860
lea ecx, [esp + 0x4c]
call fcn.00468060
push 5
lea ecx, [esp + 0x50]
mov byte [esp + 0x414], 8
call fcn.00468d30
push 1
lea ecx, [esp + 0x50]
call fcn.00468d30
push 0
lea ecx, [esp + 0x50]
call fcn.00468d30
cmp byte [esp + 0x17], 0
lea ecx, [esp + 0x4c]
je 0x5a873a
push 3
call fcn.00468d30
mov edx, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x50]
call fcn.00468d30
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00469150
jmp 0x5a8782
push 1
call fcn.00468d30
mov edx, dword [esp + 0x6c]
push edx
lea ecx, [esp + 0x50]
call fcn.00468d30
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x50]
call fcn.00468d30
mov ecx, dword [esp + 0x94]
push ecx
lea ecx, [esp + 0x50]
call fcn.00468d30
mov edx, dword [esp + 0x8c]
push edx
lea ecx, [esp + 0x50]
call fcn.00468d30
mov eax, dword [esp + 0x421]
push eax
lea ecx, [esp + 0x50]
call fcn.00468d30
mov ecx, dword [esp + 0x420]
push ecx
lea ecx, [esp + 0x50]
call fcn.00468d30
push edi
push esi
lea edx, [esp + 0x44]
push edx
push ebx
push 0
push 0
push 0x800
lea ecx, [esp + 0x68]
call fcn.00544a30
push eax
lea ecx, [esp + 0x6c]
call fcn.00467d80
push eax
mov ecx, ebp
call fcn.00576cb0
test al, al
jne 0x5a87fa
push str.Failed_to_send_connection_request_to_SOCKS5_server.
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov eax, dword [edi + 4]
push esi
push eax
push ebx
push 0
mov ecx, ebp
call fcn.00576ac0
lea ecx, [esp + 0x4c]
jmp 0x5a8554
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push ebx
push 4
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00577bb0
test al, al
jne 0x5a881b
push str.Failed_to_receive_response_from_SOCKS5_server..
jmp 0x5a87d9
cmp byte [esp + 0x19], 0
je 0x5a885a
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.SOCKS5_server_rejected_connection_request
mov ecx, esi
call eax
movzx ecx, byte [esp + 0x19]
push ecx
push str.status
mov ecx, esi
call fcn.004b14c0
mov edx, dword [edi + 4]
push esi
push edx
push ebx
push 0
mov ecx, ebp
call fcn.00576ac0
lea ecx, [esp + 0x4c]
jmp 0x5a8554
cmp byte [esi + 0x121], 0
je 0x5a8875
movzx eax, byte [esp + 0x1b]
push eax
push str.responseAddressType
mov ecx, esi
call fcn.004b14c0
mov al, byte [esp + 0x1b]
cmp al, 3
jne 0x5a8985
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push ebx
push 1
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00577bb0
test al, al
je 0x5a895f
cmp byte [esi + 0x121], 0
movzx eax, byte [esp + 0x18]
mov dword [esp + 0x1c], eax
je 0x5a88c2
push eax
push str.domainNameLen
mov ecx, esi
call fcn.004b14c0
mov eax, dword [esp + 0x1c]
cmp eax, 0xff
jbe 0x5a88d5
mov dword [esp + 0x1c], 0xff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push ebx
push eax
lea edx, [esp + 0x2f0]
push edx
mov ecx, ebp
call fcn.00577bb0
test al, al
jne 0x5a88fb
push str.Failed_to_receive_domain_name_from_SOCKS5_server.
jmp 0x5a87d9
cmp byte [esi + 0x121], 0
je 0x5a891d
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x2e0]
push edx
push str.domainName
mov ecx, esi
call fcn.004b0d90
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2e0]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004854b0
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push ebx
push 2
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00577bb0
test al, al
mov byte [esp + 0x17], al
jne 0x5a8a60
push str.Failed_to_receive_port_reply_from_SOCKS5_server.
jmp 0x5a87d9
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_receive_domain_name_length_from_SOCKS5_server.
mov ecx, esi
call eax
mov ecx, dword [edi + 4]
push esi
push ecx
push ebx
push 0
mov ecx, ebp
call fcn.00576ac0
lea ecx, [esp + 0x4c]
jmp 0x5a8554
cmp al, 1
jne 0x5a8a2d
lea edx, [esp + 0x20]
push edx
push esi
push edi
push ebx
push 4
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.00577bb0
test al, al
jne 0x5a89cd
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_receive_IPv4_address_from_SOCKS5_server.
mov ecx, esi
call eax
mov ecx, dword [edi + 4]
push esi
push ecx
push ebx
push 0
mov ecx, ebp
call fcn.00576ac0
lea ecx, [esp + 0x4c]
jmp 0x5a8554
lea edx, [esp + 0x1b]
push edx
lea eax, [esp + 0x1e]
push eax
lea ecx, [esp + 0x21]
push ecx
lea edx, [esp + 0x24]
push edx
push str._b._b._b._b
lea eax, [esp + 0x27c]
push 0x64
push eax
call fcn.004ac0f0
add esp, 0x1c
cmp byte [esi + 0x121], 0
je 0x5a8a17
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x268]
push eax
push str.responseIpv4Addr
mov ecx, esi
call edx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x268]
push eax
call fcn.00485280
jmp 0x5a8933
cmp al, 4
jne 0x5a8b0a
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push ebx
push 0x10
lea edx, [esp + 0x408]
push edx
mov ecx, ebp
call fcn.00577bb0
test al, al
jne 0x5a8933
push str.Failed_to_receive_IPv6_address_from_SOCKS5_server.
jmp 0x5a87d9
mov eax, dword [esp + 0x18]
movzx ecx, al
shl ecx, 8
movzx edx, ah
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x68]
mov dword [ecx], eax
cmp byte [esi + 0x121], 0
je 0x5a8a8c
push eax
push str.responsePort
mov ecx, esi
call fcn.004b14c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x410], 5
call fcn.00468860
lea ecx, [esp + 0x10c]
mov byte [esp + 0x410], 3
call fcn.00485710
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x410], 2
call fcn.00485710
lea ecx, [esp + 0x98]
mov byte [esp + 0x410], 1
call fcn.00485710
lea ecx, [esp + 0x180]
mov byte [esp + 0x410], 0
call fcn.00485710
lea ecx, [esp + 0x24]
mov dword [esp + 0x410], 0xffffffff
call fcn.004b18c0
mov al, byte [esp + 0x17]
jmp 0x5a8bba
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Invalid_response_from_SOCKS5_server
mov ecx, esi
call eax
mov ecx, dword [edi + 4]
push esi
push ecx
push ebx
push 0
mov ecx, ebp
call fcn.00576ac0
lea ecx, [esp + 0x4c]
jmp 0x5a8554
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.No_acceptable_SOCKS5_methods
mov ecx, esi
call eax
movzx ecx, byte [esp + 0x35]
push ecx
push str.method
mov ecx, esi
call fcn.004b14c0
mov edx, dword [edi + 4]
push esi
push edx
jmp 0x5a8473
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.No_SOCKS5_hostname_and_or_port
mov ecx, esi
call edx
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x410], 2
call fcn.00485710
lea ecx, [esp + 0x98]
mov byte [esp + 0x410], 1
call fcn.00485710
lea ecx, [esp + 0x180]
mov byte [esp + 0x410], 0
call fcn.00485710
lea ecx, [esp + 0x24]
mov dword [esp + 0x410], 0xffffffff
call fcn.004b18c0
xor al, al
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x400
ret