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

Disassembly:
push 0xffffffffffffffff
push 0x48a082
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x260]
push edi
mov ecx, esi
call fcn.00407208
mov edi, eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x18], edi
call fcn.00419150
lea eax, [esp + 0xa0]
mov ecx, esi
push eax
mov dword [esp + 0x238], 0
call fcn.004071c3
lea ecx, [esp + 0x4c]
call fcn.00419150
lea ecx, [esp + 0x4c]
mov byte [esp + 0x234], 1
push ecx
mov ecx, esi
call fcn.004071db
lea ecx, [esp + 0x78]
call fcn.00419150
lea edx, [esp + 0x78]
mov ecx, esi
push edx
mov byte [esp + 0x238], 2
call fcn.004071f0
test edi, edi
je 0x45bc82
lea ecx, [esp + 0xa0]
call fcn.00422090
test eax, eax
je 0x45bc82
mov esi, dword [esp + 0x254]
push 1
push str.SOCKS5
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x20]
mov ebx, dword [esi]
lea ecx, [esp + 0xa0]
call fcn.004220a0
push eax
push str.socksHostname
mov ecx, esi
call dword [ebx + 0x28]
mov edx, dword [esi]
push edi
push str.socksPort
mov ecx, esi
call dword [edx + 0x2c]
mov edi, dword [esi]
lea ecx, [esp + 0x4c]
call fcn.004220a0
push eax
push str.socksUsername
mov ecx, esi
call dword [edi + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [esp + 0x240]
push ecx
lea ecx, [esp + 0xcc]
call fcn.00419050
lea ecx, [esp + 0xc8]
mov byte [esp + 0x234], 3
call fcn.00418050
lea ecx, [esp + 0xc8]
call fcn.00422090
test eax, eax
jne 0x45b460
mov edx, dword [esi]
push str.No_target_hostname_for_SOCKS5_connection.
mov ecx, esi
call dword [edx + 0x10]
jmp 0x45bc6c
lea ecx, [esp + 0xc8]
call fcn.004220a0
mov edi, eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0x100], edi
call fcn.00422090
xor edx, edx
mov dword [esp + 0x74], eax
test eax, eax
mov byte [esp + 0x17], 0
jle 0x45b4a7
mov cl, byte [edx + edi]
cmp cl, 0x2e
je 0x45b4a2
cmp cl, 0x30
jl 0x45b4f8
cmp cl, 0x39
jg 0x45b4f8
inc edx
cmp edx, eax
jl 0x45b490
lea eax, [esp + 0x104]
lea ecx, [esp + 0x108]
push eax
lea edx, [esp + 0xfc]
push ecx
lea eax, [esp + 0x104]
push edx
push eax
push str._d._d._d._d
push edi
call fcn.0047020c
add esp, 0x18
cmp eax, 4
je 0x45b4fd
mov edx, dword [esi]
push str.Invalid_SOCKS5_destination_IP_address
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
push edi
push str.ipAddress
mov ecx, esi
call dword [eax + 0x28]
jmp 0x45bc6c
mov byte [esp + 0x17], 1
mov edi, dword [esp + 0x23c]
lea ebx, [edi + 0x100]
mov ecx, ebx
call fcn.004182d0
mov eax, dword [esp + 0x248]
test eax, eax
je 0x45b524
push eax
mov ecx, ebx
call fcn.0041a2e0
mov ecx, dword [esp + 0x250]
push ecx
mov ecx, edi
call fcn.004569e0
mov ebp, dword [esp + 0x25c]
mov edx, dword [esp + 0x258]
mov ebx, dword [esp + 0x24c]
mov eax, dword [esp + 0x18]
push ebp
push edx
push esi
push ebx
push 0
push eax
lea ecx, [esp + 0xb8]
call fcn.004220a0
push eax
mov ecx, edi
call fcn.004552b0
mov edx, dword [esp + 0x260]
mov ecx, dword [edi + 0xf8]
test al, al
mov dword [edx], ecx
jne 0x45b5b5
mov eax, dword [esi]
push str.Failed_to_connect_to_SOCKS5_server.
mov ecx, esi
call dword [eax + 0x10]
mov edi, dword [esi]
lea ecx, [esp + 0xa0]
call fcn.004220a0
push eax
push str.socksHostname
mov ecx, esi
call dword [edi + 0x28]
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
push str.socksPort
mov ecx, esi
call dword [edx + 0x2c]
jmp 0x45bc6c
mov ecx, dword [esp + 0x250]
mov byte [esp + 0x20], 5
push ecx
mov ecx, edi
mov byte [esp + 0x25], 2
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 2
call fcn.004569c0
lea ecx, [esp + 0x4c]
call fcn.00422090
test eax, eax
je 0x45b603
lea ecx, [esp + 0x78]
call fcn.00422090
test eax, eax
je 0x45b603
push ebp
push esi
push ebx
push 0x800
lea edx, [esp + 0x30]
push 4
push edx
jmp 0x45b623
mov eax, dword [esi]
push str.No_SOCKS5_username_and_or_password__requesting_No_Authentication...
mov ecx, esi
call dword [eax + 0x14]
push ebp
push esi
push ebx
push 0x800
lea ecx, [esp + 0x30]
push 3
mov byte [esp + 0x35], 1
push ecx
mov ecx, edi
call fcn.00456f30
test al, al
jne 0x45b645
mov edx, dword [esi]
push str.Failed_to_send_version_identifier_to_SOCKS5_server.
mov ecx, esi
call dword [edx + 0x10]
push esi
push 0x1d3
jmp 0x45bc65
lea eax, [esp + 0x16]
lea ecx, [esp + 0x15]
push eax
lea edx, [esp + 0x17]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
push esi
push ebx
lea edx, [esp + 0x110]
push 2
push edx
mov ecx, edi
call fcn.00457980
test al, al
jne 0x45b68d
mov eax, dword [esi]
push str.Failed_to_receive_method_select_reply_from_SOCKS5_server.
mov ecx, esi
call dword [eax + 0x10]
push esi
push 0x1d4
jmp 0x45bc65
mov al, byte [esp + 0xf1]
test al, al
jne 0x45b6a9
mov edx, dword [esi]
push str.SOCKS5_server_is_allowing_no_authentication.
mov ecx, esi
call dword [edx + 0x14]
jmp 0x45b893
cmp al, 2
jne 0x45bc39
mov eax, dword [esi]
push str.SOCKS5_server_selected_username_password_authentication.
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x10c]
call fcn.00422400
push 1
lea ecx, [esp + 0x110]
mov byte [esp + 0x238], 4
call fcn.00422f00
lea ecx, [esp + 0x4c]
call fcn.00422090
test eax, eax
jne 0x45b71e
mov edx, dword [esi]
push str.SOCKS5_username_is_empty.
mov ecx, esi
call dword [edx + 0x10]
push esi
push 0x1d5
mov ecx, edi
call fcn.00456a20
lea ecx, [esp + 0x10c]
mov byte [esp + 0x234], 3
call fcn.00422c00
jmp 0x45bc6c
lea ecx, [esp + 0x78]
call fcn.00422090
test eax, eax
jne 0x45b73f
mov eax, dword [esi]
push str.SOCKS5_password_is_empty.
mov ecx, esi
call dword [eax + 0x10]
push esi
push 0x1d6
jmp 0x45b6fe
lea ecx, [esp + 0x4c]
call fcn.00422090
push eax
lea ecx, [esp + 0x110]
call fcn.00422f00
lea ecx, [esp + 0x4c]
call fcn.00422090
push eax
lea ecx, [esp + 0x50]
call fcn.004220a0
push eax
lea ecx, [esp + 0x114]
call fcn.00422fd0
lea ecx, [esp + 0x78]
call fcn.00422090
push eax
lea ecx, [esp + 0x110]
call fcn.00422f00
lea ecx, [esp + 0x78]
call fcn.00422090
push eax
lea ecx, [esp + 0x7c]
call fcn.004220a0
push eax
lea ecx, [esp + 0x114]
call fcn.00422fd0
push ebp
push esi
push ebx
push 0x800
lea ecx, [esp + 0x11c]
call fcn.00422080
push eax
lea ecx, [esp + 0x120]
call fcn.004220a0
push eax
mov ecx, edi
call fcn.00456f30
test al, al
jne 0x45b7ef
mov edx, dword [esi]
push str.Failed_to_send_username_password_to_SOCKS5_server.
mov ecx, esi
call dword [edx + 0x10]
push esi
push 0x1d7
jmp 0x45b6fe
lea eax, [esp + 0x16]
lea ecx, [esp + 0x15]
push eax
lea edx, [esp + 0x17]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
push esi
push ebx
lea edx, [esp + 0x38]
push 2
push edx
mov ecx, edi
call fcn.00457980
test al, al
jne 0x45b834
mov eax, dword [esi]
push str.Failed_to_receive_username_password_reply_from_SOCKS5_server.
mov ecx, esi
call dword [eax + 0x10]
push esi
push 0x1d8
jmp 0x45b6fe
mov al, byte [esp + 0x19]
test al, al
je 0x45b87f
mov edx, dword [esi]
push str.SOCKS5_server_rejected_username_password
mov ecx, esi
call dword [edx + 0x10]
mov ebx, dword [esi]
lea ecx, [esp + 0x4c]
call fcn.004220a0
push eax
push str.username
mov ecx, esi
call dword [ebx + 0x28]
mov ebx, dword [esi]
lea ecx, [esp + 0x78]
call fcn.004220a0
push eax
push str.password
mov ecx, esi
call dword [ebx + 0x28]
push esi
push 0x1d9
jmp 0x45b6fe
lea ecx, [esp + 0x10c]
mov byte [esp + 0x234], 3
call fcn.00422c00
lea ecx, [esp + 0x2c]
call fcn.00422400
push 5
lea ecx, [esp + 0x30]
mov byte [esp + 0x238], 5
call fcn.00422f00
push 1
lea ecx, [esp + 0x30]
call fcn.00422f00
push 0
lea ecx, [esp + 0x30]
call fcn.00422f00
mov al, byte [esp + 0x17]
test al, al
je 0x45b8fe
push 3
lea ecx, [esp + 0x30]
call fcn.00422f00
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x2c]
push eax
call fcn.00422f00
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x100]
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.00422fd0
jmp 0x45b94d
push 1
lea ecx, [esp + 0x30]
call fcn.00422f00
mov eax, dword [esp + 0xfc]
lea ecx, [esp + 0x2c]
push eax
call fcn.00422f00
mov ecx, dword [esp + 0xf8]
push ecx
lea ecx, [esp + 0x30]
call fcn.00422f00
mov edx, dword [esp + 0x108]
lea ecx, [esp + 0x2c]
push edx
call fcn.00422f00
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x2c]
push eax
call fcn.00422f00
mov ecx, dword [esp + 0x245]
push ecx
lea ecx, [esp + 0x30]
call fcn.00422f00
mov edx, dword [esp + 0x244]
lea ecx, [esp + 0x2c]
push edx
call fcn.00422f00
push ebp
push esi
push ebx
push 0x800
lea ecx, [esp + 0x3c]
call fcn.00422080
push eax
lea ecx, [esp + 0x40]
call fcn.004220a0
push eax
mov ecx, edi
call fcn.00456f30
test al, al
jne 0x45b9ad
mov eax, dword [esi]
push str.Failed_to_send_connection_request_to_SOCKS5_server.
mov ecx, esi
call dword [eax + 0x10]
push esi
push 0x1db
jmp 0x45bc0b
lea ecx, [esp + 0x16]
lea edx, [esp + 0x15]
push ecx
lea eax, [esp + 0x17]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
push ebp
push esi
push ebx
lea eax, [esp + 0x44]
push 4
push eax
mov ecx, edi
call fcn.00457980
test al, al
jne 0x45b9f2
mov edx, dword [esi]
push str.Failed_to_receive_response_from_SOCKS5_server..
mov ecx, esi
call dword [edx + 0x10]
push esi
push 0x1dc
jmp 0x45bc0b
mov al, byte [esp + 0x25]
test al, al
je 0x45ba27
mov eax, dword [esi]
push str.SOCKS5_server_rejected_connection_request
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x25]
mov edx, dword [esi]
and eax, 0xff
mov ecx, esi
push eax
push str.status
call dword [edx + 0x2c]
push esi
push 0x1dd
jmp 0x45bc0b
mov al, byte [esp + 0x27]
cmp al, 3
jne 0x45baee
lea ecx, [esp + 0x16]
lea edx, [esp + 0x15]
push ecx
lea eax, [esp + 0x17]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
push ebp
push esi
push ebx
lea eax, [esp + 0x44]
push 1
push eax
mov ecx, edi
call fcn.00457980
test al, al
je 0x45bad7
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
and eax, 0xff
mov ecx, esi
push eax
push str.domainNameLen
mov dword [esp + 0x20], eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x18]
mov eax, 0xff
cmp ecx, eax
jbe 0x45ba8c
mov dword [esp + 0x18], eax
lea eax, [esp + 0x16]
lea ecx, [esp + 0x15]
push eax
lea edx, [esp + 0x17]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
push esi
push ebx
lea eax, [esp + 0x14c]
push edx
push eax
mov ecx, edi
call fcn.00457980
test al, al
jne 0x45bb3b
mov edx, dword [esi]
push str.Failed_to_receive_domain_name_from_SOCKS5_server.
mov ecx, esi
call dword [edx + 0x10]
push esi
push 0x1df
jmp 0x45bc0b
mov eax, dword [esi]
push str.Failed_to_receive_domain_name_length_from_SOCKS5_server.
mov ecx, esi
call dword [eax + 0x10]
push esi
push 0x1e0
jmp 0x45bc0b
cmp al, 1
jne 0x45bbe7
lea ecx, [esp + 0x16]
lea edx, [esp + 0x15]
push ecx
lea eax, [esp + 0x17]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
push ebp
push esi
push ebx
lea eax, [esp + 0x44]
push 4
push eax
mov ecx, edi
call fcn.00457980
test al, al
jne 0x45bb3b
mov edx, dword [esi]
push str.Failed_to_receive_IPv4_address_from_SOCKS5_server.
mov ecx, esi
call dword [edx + 0x10]
push esi
push 0x1de
jmp 0x45bc0b
lea eax, [esp + 0x16]
lea ecx, [esp + 0x15]
push eax
lea edx, [esp + 0x17]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
push esi
push ebx
lea edx, [esp + 0x44]
push 2
push edx
mov ecx, edi
call fcn.00457980
mov bl, al
test bl, bl
jne 0x45bb82
mov eax, dword [esi]
push str.Failed_to_receive_port_reply_from_SOCKS5_server.
mov ecx, esi
call dword [eax + 0x10]
push esi
push 0x1dc
jmp 0x45bc0b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x234], 3
call fcn.00422c00
lea ecx, [esp + 0xc8]
mov byte [esp + 0x234], 2
call fcn.00419440
lea ecx, [esp + 0x78]
mov byte [esp + 0x234], 1
call fcn.00419440
lea ecx, [esp + 0x4c]
mov byte [esp + 0x234], 0
call fcn.00419440
lea ecx, [esp + 0xa0]
mov dword [esp + 0x234], 0xffffffff
call fcn.00419440
mov al, bl
jmp 0x45bcce
cmp al, 4
jne 0x45bbf9
mov edx, dword [esi]
push str.IPv6_addresses_not_yet_supported.
mov ecx, esi
call dword [edx + 0x10]
jmp 0x45bc05
mov eax, dword [esi]
push str.Invalid_response_from_SOCKS5_server
mov ecx, esi
call dword [eax + 0x10]
push esi
push 0x1e2
mov ecx, edi
call fcn.00456a20
lea ecx, [esp + 0x2c]
mov byte [esp + 0x234], 3
call fcn.00422c00
lea ecx, [esp + 0xc8]
mov byte [esp + 0x234], 2
call fcn.00419440
jmp 0x45bc93
mov edx, dword [esi]
push str.No_acceptable_SOCKS5_methods
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [esp + 0xf1]
mov eax, dword [esi]
and ecx, 0xff
push ecx
push str.method
mov ecx, esi
call dword [eax + 0x2c]
push esi
push 0x1da
mov ecx, edi
call fcn.00456a20
lea ecx, [esp + 0xc8]
mov byte [esp + 0x234], 2
call fcn.00419440
jmp 0x45bc93
mov ecx, dword [esp + 0x254]
push str.No_SOCKS5_hostname_and_or_port
mov edx, dword [ecx]
call dword [edx + 0x10]
lea ecx, [esp + 0x78]
mov byte [esp + 0x234], 1
call fcn.00419440
lea ecx, [esp + 0x4c]
mov byte [esp + 0x234], 0
call fcn.00419440
lea ecx, [esp + 0xa0]
mov dword [esp + 0x234], 0xffffffff
call fcn.00419440
xor al, al
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret