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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568d7d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 [ebp + 0x10], 0xffffffff
je 0x487ed1
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x487e79
cmp byte [edi + 0x20], 0
je 0x487ee7
mov ecx, dword [edi + 0x18]
cmp byte [ecx + 0x21], 0
je 0x487ee7
mov edx, dword [edi + 0x1c]
lea ebx, [ecx + 8]
test edx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x1c], ebx
sete al
mov byte [ebp - 0x18], al
test edx, edx
jne 0x487db5
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
push esi
push ecx
mov ecx, edi
mov dword [ebp + 0x10], 0
call fcn.00488270
mov esi, eax
test esi, esi
jne 0x487de0
mov eax, str.VSocket::ReadExactSock_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
jmp 0x487eb2
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x487e53
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x487e14
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
jne 0x487e20
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
jne 0x487e20
xor eax, eax
jmp 0x487e2a
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
jne 0x487e20
or eax, eax
jmp 0x487e2a
push 0
push ecx
push esi
push eax
call ebx
mov ecx, dword [ebp + 0x10]
test eax, eax
jle 0x487e37
add esi, eax
sub ecx, eax
mov dword [ebp + 0x10], ecx
jmp 0x487e49
je 0x487ead
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x487e90
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jg 0x487df2
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp + 0x10], eax
call fcn.004882b0
cmp dword [ebp + 0xc], 0
jne 0x487e79
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 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.VSocket::ReadExactSock_:_socket_error_1:__d_n
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0x10
jmp 0x487ec2
mov eax, str.VSocket::ReadExactSock_:_zero_bytes_read1_n
push eax
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x487ed1
push dword [ebp - 0x1c]
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 0xc
mov ecx, dword [sym.imp.WS2_32.dll_recv]
mov ebx, dword [ebp + 8]
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x487f12
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
jne 0x487f1e
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
jne 0x487f1e
xor eax, eax
jmp 0x487f25
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
jne 0x487f1e
or eax, eax
jmp 0x487f25
push 0
push esi
push ebx
push eax
call ecx
test eax, eax
jle 0x487f2f
add ebx, eax
sub esi, eax
jmp 0x487f3e
je 0x487f4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x487ed1
mov ecx, dword [sym.imp.WS2_32.dll_recv]
test esi, esi
jne 0x487ef0
jmp 0x487e79
push str.VSocket::ReadExactSock_:_zero_bytes_read2_n
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
jmp 0x487ed1