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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x3b98]
call fcn.0041d54c
mov ebx, eax
mov eax, 0x8000
cmp ebx, eax
jle 0x42781a
mov ebx, eax
test ebx, ebx
je 0x427862
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.0041d50b
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 0x427867
push edi
mov ecx, esi
call fcn.0041d456
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x427878
cmp eax, 0x2733
je 0x427862
push edi
push eax
push str.ERROR__d__d_in_TransportTCP1::SendFromQueue__1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00427645
add esp, 0x14
lea eax, [ebp - 0x14]
push 0x497a90
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x482824
call fcn.0047e070
sub esp, 0x240
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 0x427a68
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 - 0x148], 0
lea ecx, [esi + 0x3b98]
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x24c], 1
call fcn.0041d54c
test eax, eax
jle 0x427930
mov ecx, dword [ebp - 0x148]
xor eax, eax
test ecx, ecx
jbe 0x42791a
cmp dword [ebp + eax*4 - 0x144], edi
je 0x42791a
inc eax
cmp eax, ecx
jb 0x42790c
cmp eax, ecx
jne 0x427930
cmp ecx, 0x40
jae 0x427930
mov dword [ebp + eax*4 - 0x144], edi
inc dword [ebp - 0x148]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x148]
push 0
push eax
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x42798c
cmp eax, 2
jg 0x42798c
test eax, eax
jle 0x4278da
lea eax, [ebp - 0x24c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4279e1
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 0x4279ae
add dword [ebp - 0x18], ebx
sub dword [ebp - 0x14], ebx
je 0x427a41
jmp 0x4279e1
push eax
push str.ERROR_in_TransportTCP1::ReadExact__1__d
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00427645
add esp, 0x10
lea eax, [ebp - 0x44]
push 0x497a90
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x4279bf
cmp eax, 0x2733
je 0x4279e1
push ebx
push eax
push str.ERROR__d__d_in_TransportTCP1::ReadExact__2
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00427645
add esp, 0x14
lea eax, [ebp - 0x34]
push 0x497a90
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x148]
push eax
push dword [esi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4278d7
lea ecx, [esi + 0x3bc0]
call fcn.0042b139
test al, al
je 0x4278d7
and dword [ebp - 4], 0
mov ecx, esi
call fcn.004277f7
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x3bc0]
call fcn.0042b131
jmp 0x4278d7
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x3b80]
add dword [eax], ecx
adc dword [eax + 4], 0
cmp byte [esi + 0x3b7c], 0
je 0x427a68
push ecx
lea ecx, [esi + 0x1dc4]
push dword [ebp + 8]
call fcn.00429edf
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8