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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541b2d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5a6008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
je 0x47d85d
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x47d89e
cmp byte [ebx + 0x18], 0
je 0x47d8b5
mov ecx, dword [ebx + 0x10]
cmp byte [ecx + 0x21], 0
je 0x47d8b5
mov esi, dword [ebx + 0x14]
lea edx, [ecx + 8]
test esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], edx
mov ecx, esi
sete al
mov byte [ebp - 0x1c], al
test esi, esi
jne 0x47d76a
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], 0
test ecx, ecx
je 0x47d78c
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push edi
push 0
call dword [eax + 8]
mov edi, eax
jmp 0x47d7a9
mov esi, dword [ebx + 0x10]
lea eax, [ebp + 0xc]
push eax
push edi
push 0
mov eax, dword [esi + 0x2a4]
call eax
mov edi, eax
add esp, 0xc
mov dword [esi + 0x2c0], edi
test edi, edi
jne 0x47d7b4
mov eax, str.VSocket::ReadExact_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
jmp 0x47d825
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
jle 0x47d800
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x47d7ed
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
jle 0x47d7eb
mov eax, dword [ebp + 0xc]
add edi, ecx
sub eax, ecx
mov dword [ebp + 0xc], eax
jmp 0x47d7f9
je 0x47d820
call esi
cmp eax, 0x2733
jne 0x47d837
mov eax, dword [ebp + 0xc]
test eax, eax
jg 0x47d7c6
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp + 0xc], edx
test ecx, ecx
je 0x47d873
mov eax, dword [ecx]
lea esi, [ebp - 0x10]
push esi
push edx
push dword [ebp + 8]
call dword [eax + 8]
jmp 0x47d88f
mov eax, str.VSocket::ReadExact_:_zero_bytes_read1_n
push eax
push 4
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
jmp 0x47d84e
call esi
push eax
push str.VSocket::ReadExact_:_socket_error_1:__d_n
push 4
push 0x5a6c48
call fcn.0041d720
add esp, 0x10
cmp dword [ebp - 0x14], 0
jne 0x47d85d
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 esi, dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp + 8]
mov eax, dword [esi + 0x2a4]
call eax
add esp, 0xc
mov dword [esi + 0x2c0], eax
cmp dword [ebp - 0x14], 0
jne 0x47d89e
push dword [ebp - 0x20]
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
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x47d8d7
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x47d8d5
add esi, eax
sub edi, eax
jmp 0x47d8e8
je 0x47d8ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47d85d
test edi, edi
jne 0x47d8b8
jmp 0x47d89e
push str.VSocket::ReadExact_:_zero_bytes_read2_n
push 4
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
jmp 0x47d85d