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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54aacd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
je 0x48445d
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x48449e
cmp byte [ebx + 0x18], 0
je 0x4844b5
mov ecx, dword [ebx + 0x10]
cmp byte [ecx + 0x21], 0
je 0x4844b5
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 0x48436a
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 0x48438c
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push edi
push 0
call dword [eax + 8]
mov edi, eax
jmp 0x4843a9
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 0x4843b4
mov eax, str.VSocket::ReadExact_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
jmp 0x484425
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
jle 0x484400
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x4843ed
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
jle 0x4843eb
mov eax, dword [ebp + 0xc]
add edi, ecx
sub eax, ecx
mov dword [ebp + 0xc], eax
jmp 0x4843f9
je 0x484420
call esi
cmp eax, 0x2733
jne 0x484437
mov eax, dword [ebp + 0xc]
test eax, eax
jg 0x4843c6
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp + 0xc], edx
test ecx, ecx
je 0x484473
mov eax, dword [ecx]
lea esi, [ebp - 0x10]
push esi
push edx
push dword [ebp + 8]
call dword [eax + 8]
jmp 0x48448f
mov eax, str.VSocket::ReadExact_:_zero_bytes_read1_n
push eax
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
jmp 0x48444e
call esi
push eax
push str.VSocket::ReadExact_:_socket_error_1:__d_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
cmp dword [ebp - 0x14], 0
jne 0x48445d
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 0x48449e
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 0x4844d7
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4844d5
add esi, eax
sub edi, eax
jmp 0x4844e8
je 0x4844ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x48445d
test edi, edi
jne 0x4844b8
jmp 0x48449e
push str.VSocket::ReadExact_:_zero_bytes_read2_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
jmp 0x48445d