Function at 0x405ee0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
mov eax, dword [0x479520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3ac], edi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3b4], edx
mov dword [ebp - 0x3a8], eax
call fcn.00418791
mov ecx, eax
test ecx, ecx
je 0x4065aa
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3b8], esi
mov ecx, dword [ebp - 0x3a8]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
mov word [ebp - 0x110], 0x105
cmp dword [ecx + 0x18], 0
je 0x4061e2
xor ecx, ecx
mov byte [ebp - 0x10e], 2
mov dword [ebp - 0x3a4], ecx
push 0
mov eax, 3
sub eax, ecx
push eax
lea eax, [ebp - 0x110]
add eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x405ff9
mov ecx, dword [ebp - 0x3a4]
add ecx, eax
mov dword [ebp - 0x3a4], ecx
cmp ecx, 3
jl 0x405f77
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push 2
call fcn.00403ed0
add esp, 4
test eax, eax
je 0x40602d
push str._nError_:_connection_to_the_proxy_server_was_closed_unexpectedly.
push 1
push edi
call fcn.0040d4d0
push str._n_tPlease_make_sure_that_the_proxy_server_protocol_and_address_are_correct.
push 3
push edi
call fcn.0040d4d0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x406560
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x405fab
push str._nError_:_connection_to_the_proxy_server_was_closed_unexpectedly.
push 1
push edi
call fcn.0040d4d0
add esp, 0xc
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x406560
mov al, byte [ebp - 0x210]
cmp al, 5
je 0x40604b
movsx eax, al
push eax
push str._nWarning_:_the_proxy_server_has_returned_an_unexpected_answer__0x_X_.
push 1
push edi
call fcn.0040d4d0
add esp, 0x10
mov al, byte [ebp - 0x20f]
test al, al
je 0x4062a9
cmp al, 2
je 0x40608b
movsx eax, al
push eax
push str._nError_:_the_proxy_server_uses_unsupported_methods__0x_X_.
push 1
push edi
call fcn.0040d4d0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x406560
mov eax, dword [ebp - 0x3a8]
mov byte [ebp - 0x110], 1
mov ecx, dword [eax + 0x10]
push ecx
mov eax, dword [ecx - 0xc]
lea ecx, [ebp - 0x3a4]
mov byte [ebp - 0x10f], al
call fcn.00403400
mov ecx, dword [ebp - 0x3a8]
mov ecx, dword [ecx + 0x10]
push dword [ecx - 0xc]
push dword [eax]
lea eax, [ebp - 0x10e]
push eax
call fcn.0043a630
mov edx, dword [ebp - 0x3a4]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4060ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x3a8]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
push ecx
mov edx, dword [eax - 0xc]
mov eax, dword [ecx - 0xc]
add edx, 2
lea ecx, [ebp - 0x3b0]
mov dword [ebp - 0x3a4], edx
mov byte [ebp + edx - 0x110], al
call fcn.00403400
mov ecx, dword [ebp - 0x3a8]
mov ecx, dword [ecx + 0x14]
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10f]
push dword [eax]
mov eax, dword [ebp - 0x3a4]
add eax, ecx
push eax
call fcn.0043a630
mov edx, dword [ebp - 0x3b0]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40615a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3a8]
lea edx, [ebp - 0x110]
mov ecx, dword [ebp - 0x3a4]
inc ecx
mov eax, dword [eax + 0x14]
mov eax, dword [eax - 0xc]
add eax, ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00403f40
add esp, 4
test eax, eax
je 0x40619a
push str._nError_:_connection_to_the_proxy_server_was_closed_unexpectedly.
push 1
push edi
call fcn.0040d4d0
add esi, 0xfffffff0
jmp 0x40654e
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push 2
call fcn.00403ed0
add esp, 4
test eax, eax
jne 0x406185
cmp byte [ebp - 0x20f], al
je 0x4062a9
push str._nError_:_Authentication_on_the_proxy_server_failed.
push 1
push edi
call fcn.0040d4d0
push str._n_tPlease_check_your_username_and_password.
push 3
push edi
call fcn.0040d4d0
add esp, 0x18
add esi, 0xfffffff0
jmp 0x406551
xor ecx, ecx
mov byte [ebp - 0x10e], 0
mov dword [ebp - 0x3a4], ecx
push 0
mov eax, 3
sub eax, ecx
push eax
lea eax, [ebp - 0x110]
add eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x406227
mov ecx, dword [ebp - 0x3a4]
add ecx, eax
mov dword [ebp - 0x3a4], ecx
cmp ecx, 3
jl 0x4061f1
jmp 0x406235
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x406003
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push 2
call fcn.00403ed0
add esp, 4
test eax, eax
jne 0x406003
mov al, byte [ebp - 0x210]
cmp al, 5
je 0x40626e
movsx eax, al
push eax
push str._nWarning_:_the_proxy_server_has_returned_an_unexpected_answer__0x_X_.
push 1
push edi
call fcn.0040d4d0
add esp, 0x10
mov al, byte [ebp - 0x20f]
test al, al
je 0x4062a9
add esi, 0xfffffff0
cmp al, 2
jne 0x406294
push str._nError_:_the_proxy_server_requires_authentication.
push 1
push edi
call fcn.0040d4d0
add esp, 0xc
jmp 0x406016
push str._nError_:_the_proxy_server_uses_unsupported_methods_or_authentication_is_required.
push 1
push edi
call fcn.0040d4d0
add esp, 0xc
jmp 0x406016
push str._nAuthentication_was_successful.
push 0
push edi
call fcn.0040d4d0
mov ecx, dword [ebp - 0x3b4]
add esp, 0xc
xor al, al
mov word [ebp - 0x110], 0x105
mov byte [ebp - 0x10e], 0
cmp dword [ecx + 4], 0
jne 0x406322
push dword [ecx]
lea ecx, [ebp - 0x3b0]
call fcn.00403400
lea edx, [ebp - 0x378]
mov ecx, dword [eax]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4062f0
mov edx, dword [ebp - 0x3b0]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40631a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x3b4]
mov al, 1
test al, al
je 0x406389
lea ecx, [ebp - 0x378]
mov byte [ebp - 0x10d], 3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406336
sub ecx, edx
lea eax, [ebp - 0x378]
push ecx
push eax
lea eax, [ebp - 0x10b]
mov dword [ebp - 0x3b0], ecx
push eax
mov byte [ebp - 0x10c], cl
call fcn.0043a630
mov edx, dword [ebp - 0x3b4]
add esp, 0xc
mov ecx, dword [ebp - 0x3b0]
movzx eax, byte [edx + 9]
mov byte [ebp + ecx - 0x10b], al
movzx eax, byte [edx + 8]
mov byte [ebp + ecx - 0x10a], al
add ecx, 7
jmp 0x4063b2
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10c], eax
movzx eax, byte [ecx + 9]
mov byte [ebp - 0x108], al
movzx eax, byte [ecx + 8]
mov ecx, 0xa
mov byte [ebp - 0x10d], 1
mov byte [ebp - 0x107], al
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x110]
call fcn.00403f40
add esp, 4
test eax, eax
jne 0x406185
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push 5
call fcn.00403ed0
add esp, 4
test eax, eax
jne 0x406185
mov al, byte [ebp - 0x210]
cmp al, 5
je 0x406405
movsx eax, al
push eax
push str._nWarning_:_the_proxy_server_has_returned_an_unexpected_answer__0x_X_.
push 1
push edi
call fcn.0040d4d0
add esp, 0x10
mov al, byte [ebp - 0x20f]
test al, al
je 0x40650e
movsx edi, al
mov eax, 9
cmp edi, eax
mov dword [ebp - 0x3a0], str.Succeeded
mov dword [ebp - 0x39c], str.General_SOCKS_server_failure
cmovg edi, eax
mov dword [ebp - 0x398], str.Connection_not_allowed_by_ruleset
mov eax, dword [ebp - 0x3b4]
mov dword [ebp - 0x394], str.Network_unreachable
mov dword [ebp - 0x390], str.Host_unreachable
mov dword [ebp - 0x38c], str.Connection_refused
push dword [eax + 8]
mov dword [ebp - 0x388], str.Timeout
push dword [eax]
mov dword [ebp - 0x384], str.Command_not_supported
push str._nError_:_the_proxy_server_cannot_establish_connection_to__s:_d
push 1
push dword [ebp - 0x3ac]
mov dword [ebp - 0x380], str.Address_type_not_supported
mov dword [ebp - 0x37c], str.Unknown_error
call fcn.0040d4d0
push dword [ebp + edi*4 - 0x3a0]
movsx eax, byte [ebp - 0x20f]
mov edi, dword [ebp - 0x3ac]
push eax
push str._n_tError__0x0_X___s_.
push 3
push edi
call fcn.0040d4d0
add esp, 0x28
cmp byte [ebp - 0x20f], 2
je 0x4064e0
mov dword [ebp - 0x3ac], str._n_tThe_error_may_also_indicate_that_the_proxy_server_is_not_operating_properly.
mov eax, str._n_tPlease_confirm_that_the_target_host_address_is_correct.
jmp 0x4064ef
mov dword [ebp - 0x3ac], str._n_ttry_to_use_another_host_and_or_port_as_a_test_target.
mov eax, str._n_tConnection_to_the_target_is_denied_by_proxy_access_rules_
push eax
push 3
push edi
call fcn.0040d4d0
push dword [ebp - 0x3ac]
push 3
push edi
call fcn.0040d4d0
add esp, 0x18
add esi, 0xfffffff0
jmp 0x406551
cmp byte [ebp - 0x20d], 1
jne 0x40651e
mov eax, 5
jmp 0x406528
movsx eax, byte [ebp - 0x20c]
add eax, 2
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push eax
add esi, 0xfffffff0
call fcn.00403ed0
add esp, 4
test eax, eax
je 0x40656e
push str._nError_:_connection_to_the_proxy_server_was_closed_unexpectedly.
push 1
push edi
call fcn.0040d4d0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40656a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x40658c
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x406587
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438a38
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00402150
int3