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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, byte [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
push str.TCPProxy::startTcpSend__I64u__isInSocket_d__len_d
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 0x18
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x4065f0
mov edx, dword [ebp + 8]
add edx, 8
mov dword [ebp - 4], edx
jmp 0x4065f9
mov eax, dword [ebp + 8]
add eax, 0x20
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x406608
mov ecx, dword [ebp - 4]
mov byte [ecx + 7], 1
jmp 0x40662a
cmp dword [ebp + 0x14], 0xffffffff
je 0x40662a
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404fb0
push eax
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.0041df20
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 6]
test edx, edx
je 0x40663c
mov al, 1
jmp 0x4067e4
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00420420
movzx eax, al
test eax, eax
je 0x406698
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 7]
test edx, edx
je 0x406691
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40667a
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00406990
jmp 0x406691
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.00406990
mov al, 1
jmp 0x4067e4
mov ecx, dword [ebp - 0xc]
call fcn.00405d00
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], 3
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], eax
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x34
call fcn.004204c0
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00420460
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 8]
test eax, eax
jne 0x4066ec
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0xffffffff
jne 0x406727
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], 4
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 8
call fcn.00402c30
movzx eax, al
test eax, eax
jne 0x406720
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00405df0
xor al, al
jmp 0x4067e4
mov edx, dword [ebp - 4]
mov byte [edx + 6], 1
push 0
mov eax, dword [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x34
call fcn.004203f0
push eax
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x34
call fcn.004203d0
mov ecx, eax
call fcn.00405020
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x4067e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3e5
je 0x4067e2
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
push str.TCPProxy::startTcpSend__I64u__failed__err_d
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 0x14
mov ecx, dword [ebp - 4]
mov byte [ecx + 8], 1
mov edx, dword [ebp - 4]
mov byte [edx + 6], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], 4
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 8
call fcn.00402c30
movzx ecx, al
test ecx, ecx
jne 0x4067de
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.00405df0
xor al, al
jmp 0x4067e4
mov al, 1
mov esp, ebp
pop ebp
ret 0x18