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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x586f0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
call fcn.00414ee0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x407182
push str.Failed_to_create_nsock_pool.
call fcn.0040119a
add esp, 4
cmp dword [0x58a208], 1
jle 0x4071a5
call fcn.00413270
push eax
push 1
call fcn.004bf54b
add eax, 0x40
push eax
push ebx
call fcn.00414e70
add esp, 0x10
push 1
push ebx
call fcn.00414ec0
push ebx
call fcn.00415240
add esp, 0xc
mov esi, eax
call fcn.00405eb0
cmp word [0x58a180], 0
jne 0x40740f
cmp word [0x58a080], 0
jne 0x407437
push 0
push ebx
call fcn.00411430
add esp, 8
mov dword [0x589fec], eax
test eax, eax
jne 0x4071ff
push str.Failed_to_create_nsock_iod.
call fcn.0040119a
mov eax, dword [0x589fec]
add esp, 4
mov ecx, dword [0x58a20c]
push ecx
push eax
call fcn.004113f0
add esp, 8
cmp eax, 0xffffffff
jne 0x407221
push str.Failed_to_set_hostname_on_iod.
call fcn.0040119a
add esp, 4
cmp word [0x58a100], 0
je 0x407245
mov edx, dword [0x58a07c]
mov eax, dword [0x589fec]
push edx
push 0x58a100
push eax
call fcn.004112a0
add esp, 0xc
cmp dword [0x58a284], 0
je 0x4072b1
cmp dword [0x58a210], 2
mov dword [ebp - 0x328], 0
je 0x40726e
push str.Sorry___g_can_only_currently_be_used_with_IPv4.
call fcn.0040119a
add esp, 4
mov edx, dword [0x58a288]
mov eax, dword [0x58a284]
lea ecx, [ebp - 0x328]
push ecx
mov ecx, dword [0x58a2bc]
push edx
push eax
push 0x58a264
push ecx
call fcn.00401064
mov edx, dword [ebp - 0x328]
mov esi, eax
mov eax, dword [0x589fec]
push edx
push esi
push eax
call fcn.00411300
push esi
call fcn.004be321
add esp, 0x24
cmp dword [0x58a22c], 0
je 0x4072ef
push 0x58a2b8
call fcn.004010a5
mov edx, dword [0x58a078]
movzx ecx, ax
mov eax, dword [0x589fec]
push ecx
push edx
push 0x58a2b8
push 0
push 0x406fe0
push eax
push ebx
call fcn.00411ab0
add esp, 0x20
jmp 0x407641
cmp dword [0x58a230], 0
je 0x407387
cmp dword [0x58a2a4], 0
je 0x40734b
push 0
push 0x58a2b8
call fcn.004010a5
mov edx, dword [0x58a078]
add esp, 4
movzx ecx, ax
mov eax, dword [0x58a290]
push ecx
mov ecx, dword [0x589fec]
push 0x84
push edx
push 0x58a2b8
push 0
push eax
push 0x406fe0
push ecx
push ebx
call fcn.004118f0
add esp, 0x28
jmp 0x407641
push 0x58a2b8
call fcn.004010a5
mov ecx, dword [0x58a290]
movzx edx, ax
mov eax, dword [0x58a078]
push edx
mov edx, dword [0x589fec]
push eax
push 0x58a2b8
push 0
push ecx
push 0x406fe0
push edx
push ebx
call fcn.00411810
add esp, 0x24
jmp 0x407641
cmp dword [0x58a2a4], 0
je 0x4073d3
push 0
push 0x58a2b8
call fcn.004010a5
mov ecx, dword [0x58a078]
mov edx, dword [0x58a290]
add esp, 4
movzx eax, ax
push eax
mov eax, dword [0x589fec]
push 6
push ecx
push 0x58a2b8
push 0
push edx
push 0x406fe0
push eax
push ebx
call fcn.004118f0
add esp, 0x28
jmp 0x407641
push 0x58a2b8
call fcn.004010a5
mov edx, dword [0x58a078]
movzx ecx, ax
mov eax, dword [0x58a290]
push ecx
mov ecx, dword [0x589fec]
push edx
push 0x58a2b8
push 0
push eax
push 0x406fe0
push ecx
push ebx
call fcn.00411740
add esp, 0x24
jmp 0x407641
call fcn.004064d0
mov dword [0x58a074], eax
cmp eax, 0xffffffff
jne 0x407601
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push 1
call fcn.00401082
add esp, 4
mov dword [0x58a074], eax
cmp eax, 0xffffffff
jne 0x407479
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00415fb0
push eax
push str.Proxy_connection_failed:__s._n
call fcn.004010eb
add esp, 0xc
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push eax
lea edx, [ebp - 0x324]
push edx
call fcn.00401230
add esp, 8
cmp dword [0x58a204], 0
je 0x4074be
push 0x58a2b8
call fcn.004010a5
movzx eax, ax
add esp, 4
push eax
push 0x58a2b8
call fcn.0040121c
add esp, 4
push eax
push str.Connected_to_proxy__s:_hu_n
call fcn.004010eb
add esp, 0xc
lea ecx, [ebp - 0x114]
push 0x108
push ecx
call fcn.004010f5
mov eax, dword [0x58a084]
mov dx, word [0x58a082]
mov dword [ebp - 0x110], eax
mov eax, dword [0x58a29c]
add esp, 8
mov word [ebp - 0x114], 0x104
mov word [ebp - 0x112], dx
test eax, eax
je 0x407512
push 0x100
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00416eb0
add esp, 0xc
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
jmp 0x407520
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407520
sub eax, edx
push 0
add eax, 9
push eax
mov eax, dword [0x58a074]
lea edx, [ebp - 0x114]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x407574
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00415fb0
push eax
push str.Error_sending_proxy_request:__s._n
call fcn.004010eb
add esp, 0xc
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push 8
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x324]
push edx
call fcn.004010f0
add esp, 0xc
test eax, eax
jns 0x4075af
push str.Error:_short_reponse_from_proxy._n
call fcn.004010eb
add esp, 4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xb], 0x5a
je 0x4075d7
push str.Proxy_connection_failed._n
call fcn.004010eb
add esp, 4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x324]
push ecx
call fcn.004011bd
mov edx, dword [ebp - 0x328]
push edx
push eax
push 1
call fcn.00401050
mov eax, dword [0x58a074]
add esp, 0x14
push 0
push eax
push ebx
call fcn.00410e00
push 0
push 0
push ebx
mov dword [0x589fec], eax
call fcn.00410e00
add esp, 0x18
mov dword [0x589ff0], eax
test eax, eax
jne 0x407632
push str.Failed_to_create_stdin_nsiod.
call fcn.0040119a
add esp, 4
push edi
mov edi, dword [0x589fec]
mov esi, ebx
call fcn.00406f10
pop edi
push 0xffffffffffffffff
push ebx
call fcn.00414790
add esp, 8
cmp dword [0x58a204], 0
mov esi, eax
je 0x4076ce
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004170b0
mov ecx, dword [ebp - 8]
sub ecx, dword [0x58a33c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0xc]
sub edx, dword [0x58a338]
mov eax, dword [0x589fec]
imul edx, edx, 0x3e8
add ecx, edx
mov dword [ebp - 0x328], ecx
fild dword [ebp - 0x328]
fdiv qword [0x537bd8]
fstp qword [esp]
push eax
call fcn.00411390
mov ecx, dword [0x589fec]
add esp, 4
push eax
push ecx
call fcn.004113c0
add esp, 4
push eax
push str._lu_bytes_sent___lu_bytes_received_in__.2f_seconds._n
call fcn.004010eb
add esp, 0x14
push ebx
call fcn.00415000
mov ecx, dword [ebp - 4]
add esp, 4
xor eax, eax
cmp esi, 4
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004bf32e
mov esp, ebp
pop ebp
ret