Function at 0x487f70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568dad
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d60c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0xffffffff
je 0x488101
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4880a9
cmp byte [edi + 0x20], 0
je 0x488117
mov ecx, dword [edi + 0x18]
cmp byte [ecx + 0x21], 0
je 0x488117
mov edx, dword [edi + 0x1c]
lea ebx, [ecx + 8]
test edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], ebx
sete al
mov byte [ebp - 0x1c], al
test edx, edx
jne 0x487fe5
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push esi
push ecx
mov ecx, edi
mov dword [ebp + 0xc], 0
call fcn.00488270
mov esi, eax
test esi, esi
jne 0x488010
mov eax, str.VSocket::ReadExactIPV4_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
jmp 0x4880e2
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x488083
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x488044
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
jne 0x488050
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
jne 0x488050
xor eax, eax
jmp 0x48805a
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
jne 0x488050
or eax, eax
jmp 0x48805a
push 0
push ecx
push esi
push eax
call ebx
mov ecx, dword [ebp + 0xc]
test eax, eax
jle 0x488067
add esi, eax
sub ecx, eax
mov dword [ebp + 0xc], ecx
jmp 0x488079
je 0x4880dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4880c0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x488022
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.004882b0
cmp dword [ebp - 0x10], 0
jne 0x4880a9
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.VSocket::ReadExactIPV4_:_socket_error_1:__d_n
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0x10
jmp 0x4880f2
mov eax, str.VSocket::ReadExactIPV4_:_zero_bytes_read1_n
push eax
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
cmp dword [ebp - 0x10], 0
jne 0x488101
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [sym.imp.WS2_32.dll_recv]
mov ebx, dword [ebp + 8]
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x488142
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
jne 0x48814e
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
jne 0x48814e
xor eax, eax
jmp 0x488155
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
jne 0x48814e
or eax, eax
jmp 0x488155
push 0
push esi
push ebx
push eax
call ecx
test eax, eax
jle 0x48815f
add ebx, eax
sub esi, eax
jmp 0x48816e
je 0x48817d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x488101
mov ecx, dword [sym.imp.WS2_32.dll_recv]
test esi, esi
jne 0x488120
jmp 0x4880a9
push str.VSocket::ReadExactIPV4_:_zero_bytes_read2_n
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
jmp 0x488101