Function at 0x42d73e
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x48c464
call fcn.004874e0
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
test ebx, ebx
mov dword [ebp - 0x24], esi
je 0x42da56
mov al, byte [esi + 0x3bd8]
mov edi, dword [esi + 8]
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x11], al
mov eax, dword [esi + 0x13be0]
mov dword [ebp - 0x20], edi
test eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jbe 0x42d7e9
cmp eax, ebx
jae 0x42d78c
mov ebx, eax
mov eax, dword [esi + 0x13bdc]
cmp byte [esi + 0x3b7c], 0
push ebx
lea eax, [esi + eax + 0x3bd9]
push eax
push ecx
je 0x42d7b2
lea ecx, [esi + 0x1dc4]
call fcn.0043026d
jmp 0x42d7ba
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
sub eax, ebx
sub dword [esi + 0x13be0], ebx
mov dword [ebp - 0x1c], eax
jne 0x42d7d3
and dword [esi + 0x13bdc], 0
jmp 0x42d7d9
add dword [esi + 0x13bdc], ebx
test eax, eax
je 0x42da47
mov eax, dword [ebp + 8]
add ebx, eax
mov dword [ebp - 0x18], ebx
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x32
cmp byte [ebp - 0x11], 0
je 0x42d8a5
lea ebx, [esi + 0x3b98]
and dword [ebp - 0x160], 0
mov ecx, ebx
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x264], 1
call fcn.004209ac
test eax, eax
jle 0x42d856
mov ecx, dword [ebp - 0x160]
xor eax, eax
test ecx, ecx
jbe 0x42d840
cmp dword [ebp + eax*4 - 0x15c], edi
je 0x42d840
inc eax
cmp eax, ecx
jb 0x42d832
cmp eax, ecx
jne 0x42d856
cmp ecx, 0x40
jae 0x42d856
mov dword [ebp + eax*4 - 0x15c], edi
inc dword [ebp - 0x160]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x160]
push 0
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x42d883
cmp eax, 2
jg 0x42d883
test eax, eax
jle 0x42d804
jmp 0x42d8de
push eax
push str.ERROR_in_TransportTCP::ReadExact__1__d
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0042d3ef
add esp, 0x10
lea eax, [ebp - 0x4c]
push 0x4a2784
push eax
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
mov dword [ebp - 0x260], edi
push eax
push eax
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x264], 1
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test ebx, ebx
jle 0x42da1f
cmp ebx, 2
jg 0x42da1f
lea eax, [ebp - 0x264]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42d982
lea ebx, [esi + 0x3bd9]
push 0
push 0x10000
push ebx
push edi
call dword [sym.imp.WS2_32.dll_recv]
push dword [ebp - 0x1c]
mov edi, eax
movzx eax, byte [ebp - 0x11]
push dword [ebp + 0xc]
push edi
push eax
push str.recv_send_u__ret_4d__len_d__currlen_d
push 0x4c2700
call fcn.004319df
add esp, 0x18
test edi, edi
jle 0x42d9d5
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], edi
cmp edi, eax
jb 0x42d93d
mov dword [ebp + 8], eax
push dword [ebp + 8]
cmp byte [esi + 0x3b7c], 0
push ebx
push dword [ebp - 0x18]
je 0x42d95a
lea ecx, [esi + 0x1dc4]
call fcn.0043026d
jmp 0x42d962
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
sub edi, eax
sub dword [ebp - 0x1c], eax
mov dword [esi + 0x13be0], edi
mov dword [esi + 0x13bdc], eax
je 0x42da47
add dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
cmp byte [ebp - 0x11], 0
je 0x42d8a5
lea eax, [ebp - 0x160]
push eax
push dword [esi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42d7f4
lea ecx, [esi + 0x3bc0]
call fcn.004315e3
test al, al
je 0x42d7f4
and dword [ebp - 4], 0
mov ecx, esi
call fcn.0042d5fe
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x3bc0]
call fcn.004315db
jmp 0x42d7f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x42d9e6
cmp eax, 0x2733
je 0x42d97f
push edi
push eax
push str.ERROR__d__d_in_TransportTCP::ReadExact__2
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0042d3ef
add esp, 0x14
lea eax, [ebp - 0x5c]
push 0x4a2784
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x3bc0]
call fcn.004315db
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push str.ERROR__d_in_TransportTCP2::ReadExact__1__d
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0042d3ef
add esp, 0x14
lea eax, [ebp - 0x3c]
push 0x4a2784
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x3b80]
add dword [eax], ecx
adc dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8