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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x20]
call fcn.004083a2
mov ebx, eax
mov eax, 0x8000
cmp ebx, eax
jle 0x40eaab
mov ebx, eax
test ebx, ebx
je 0x40eaee
mov eax, dword [edi + 0x30]
lea esi, [edi + 0x30]
push ebx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
lea esi, [edi + 0x20]
push ebx
push eax
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00408361
push 0
push ebx
push dword [ebp - 4]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x40eaf3
push edi
mov ecx, esi
call fcn.004082ac
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x40eb04
cmp eax, 0x2733
je 0x40eaee
push edi
push eax
lea eax, [ebp - 8]
push str.ERROR__d__d_in_CTransportTCP1::SendFromQueue__1
push eax
call fcn.0040e74c
add esp, 0x10
lea eax, [ebp - 8]
push 0x467fa0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x45f050
call fcn.0045d320
sub esp, 0x230
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x1c], ebx
je 0x40ecd5
mov ecx, dword [ebp + 8]
mov esi, dword [ebx + 4]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x32
lea edi, [ebx + 0x20]
and dword [ebp - 0x138], 0
mov ecx, edi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], 1
call fcn.004083a2
test eax, eax
jle 0x40ebbb
mov edx, dword [ebp - 0x138]
xor eax, eax
test edx, edx
jbe 0x40eba5
lea ecx, [ebp - 0x134]
cmp dword [ecx], esi
je 0x40eba5
inc eax
add ecx, 4
cmp eax, edx
jb 0x40eb99
cmp eax, edx
jne 0x40ebbb
cmp edx, 0x40
jae 0x40ebbb
mov dword [ebp + eax*4 - 0x134], esi
inc dword [ebp - 0x138]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x138]
push 0
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x40ebeb
cmp eax, 2
jg 0x40ebeb
test eax, eax
jg 0x40ec0b
jmp 0x40eb65
push eax
lea eax, [ebp - 0x34]
push str.ERROR_in_CTransportTCP1::ReadExact__1__d
push eax
call fcn.0040e74c
add esp, 0xc
lea eax, [ebp - 0x34]
push 0x467fa0
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40ec3d
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x40ec81
add dword [ebp - 0x18], edi
sub dword [ebp - 0x14], edi
je 0x40ecc7
lea eax, [ebp - 0x138]
push eax
push dword [ebx + 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40eb62
lea edi, [ebx + 0x44]
mov ecx, edi
call fcn.004111e2
test al, al
je 0x40eb62
and dword [ebp - 4], 0
mov ecx, ebx
call fcn.0040ea8c
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004378a4
jmp 0x40eb62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x40ec92
cmp eax, 0x2733
je 0x40ec3d
push edi
push eax
lea eax, [ebp - 0x2c]
push str.ERROR__d__d_in_CTransportTCP1::ReadExact__2
push eax
call fcn.0040e74c
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0x467fa0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x44]
call fcn.004378a4
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 0xc]
lea ecx, [ebx + 0x14]
push dword [ebp + 8]
call fcn.0041074d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8