Function at 0x422854
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 + 0x3b98]
call fcn.00419ed3
mov ebx, eax
mov eax, 0x8000
cmp ebx, eax
jle 0x422876
mov ebx, eax
test ebx, ebx
je 0x4228be
lea esi, [edi + 0x3ba8]
push ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea esi, [edi + 0x3b98]
push ebx
push eax
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00419e92
push 0
push ebx
push dword [ebp - 4]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x4228c3
push edi
mov ecx, esi
call fcn.00419ddd
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x4228d4
cmp eax, 0x2733
je 0x4228be
push edi
push eax
lea eax, [ebp - 8]
push str.ERROR__d__d_in_TransportTCP1::SendFromQueue__1
push eax
call fcn.004226a9
add esp, 0x10
lea eax, [ebp - 8]
push 0x48822c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x47bf50
call fcn.00478530
sub esp, 0x230
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x1c], esi
je 0x422ac0
mov ecx, dword [ebp + 8]
mov edi, dword [esi + 8]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x32
lea ebx, [edi + 1]
and dword [ebp - 0x138], 0
lea ecx, [esi + 0x3b98]
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], 1
call fcn.00419ed3
test eax, eax
jle 0x42298b
mov ecx, dword [ebp - 0x138]
xor eax, eax
test ecx, ecx
jbe 0x422975
cmp dword [ebp + eax*4 - 0x134], edi
je 0x422975
inc eax
cmp eax, ecx
jb 0x422967
cmp eax, ecx
jne 0x42298b
cmp ecx, 0x40
jae 0x42298b
mov dword [ebp + eax*4 - 0x134], edi
inc dword [ebp - 0x138]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x138]
push 0
push eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x4229e7
cmp eax, 2
jg 0x4229e7
test eax, eax
jle 0x422935
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x422a39
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x422a07
add dword [ebp - 0x18], ebx
sub dword [ebp - 0x14], ebx
je 0x422a99
jmp 0x422a39
push eax
lea eax, [ebp - 0x34]
push str.ERROR_in_TransportTCP1::ReadExact__1__d
push eax
call fcn.004226a9
add esp, 0xc
lea eax, [ebp - 0x34]
push 0x48822c
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x422a18
cmp eax, 0x2733
je 0x422a39
push ebx
push eax
lea eax, [ebp - 0x2c]
push str.ERROR__d__d_in_TransportTCP1::ReadExact__2
push eax
call fcn.004226a9
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0x48822c
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x138]
push eax
push dword [esi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x422932
lea ecx, [esi + 0x3bc0]
call fcn.00425fc8
test al, al
je 0x422932
and dword [ebp - 4], 0
mov ecx, esi
call fcn.00422854
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x3bc0]
call fcn.004528d0
jmp 0x422932
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x3b80]
add dword [eax], ecx
adc dword [eax + 4], 0
cmp byte [esi + 0x3b7c], 0
je 0x422ac0
push ecx
lea ecx, [esi + 0x1dc4]
push dword [ebp + 8]
call fcn.00424e93
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8