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

Disassembly:
push 0xffffffffffffffff
push 0x564cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x2ef4]
test eax, eax
jne 0x4f6e52
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f6cc2
mov ecx, dword [eax]
mov dword [ebx + 0x2eca], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x2ece], edx
movsx ecx, word [ebx + 0x2efa]
neg eax
sbb eax, eax
push 0
and eax, 8
mov esi, eax
mov eax, 0x28
sub eax, esi
sub eax, ecx
add ecx, esi
push eax
mov eax, dword [ebx + 0x2eb8]
lea edx, [ecx + ebx + 0x2eca]
push edx
push eax
call sub.WSOCK32.dll_recv
movsx ecx, word [ebx + 0x2efa]
mov edx, 0x28
mov edi, eax
sub edx, ecx
sub edx, esi
cmp edi, edx
je 0x4f6df2
test edi, edi
jle 0x4f6d3e
push str.WSAEWOULDBLOCK__lb1_n
mov ecx, ebx
call fcn.004cfa50
mov word [ebx + 0x2efa], di
pop edi
pop esi
mov eax, 0x2733
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
jne 0x4f6d73
push str.Recv_cmd_failed__connection_closed_by_server._n
mov ecx, ebx
call fcn.004cfa50
mov eax, dword [0x5c831c]
mov ecx, dword [ebx + 0x6c]
push eax
call fcn.004d1ef0
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp edi, 0xffffffff
jne 0x4f6e0c
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
je 0x4f6dc9
mov ecx, dword [0x5c2a74]
mov dword [esp + 0x24], ecx
push esi
lea edx, [esp + 0x28]
push str.Recv_cmd_failed__error___ld_n
push edx
mov dword [esp + 0x24], 0
call fcn.0053afda
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004cfa50
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.005421be
mov eax, esi
pop edi
sub eax, 0x2733
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0xffffd8ca
add eax, 0x2733
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
lea ecx, [ebx + 0x2ed2]
push ecx
call fcn.004f6c50
add esp, 4
cmp eax, 0x18
mov dword [ebx + 0x2efc], eax
jae 0x4f6e23
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
add eax, 0x10
push eax
call fcn.0054276d
add esp, 4
mov dword [ebx + 0x2ef4], eax
test eax, eax
jne 0x4f6e52
pop edi
pop esi
mov eax, 0x753b
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov edi, dword [ebx + 0x2ef4]
lea esi, [ebx + 0x2eca]
mov ecx, 0xa
push 0
rep movsd dword es:[edi], dword [esi]
movsx eax, word [ebx + 0x2ef8]
mov edx, dword [ebx + 0x2efc]
mov ecx, dword [ebx + 0x2ef4]
sub edx, eax
sub edx, 0x18
push edx
lea edx, [eax + ecx + 0x28]
mov eax, dword [ebx + 0x2eb8]
push edx
push eax
call sub.WSOCK32.dll_recv
movsx ecx, word [ebx + 0x2ef8]
mov edx, dword [ebx + 0x2efc]
mov esi, eax
sub edx, ecx
sub edx, 0x18
cmp esi, edx
je 0x4f6edd
test esi, esi
jle 0x4f6e0c
push str.WSAEWOULDBLOCK__lb2_n
mov ecx, ebx
call fcn.004cfa50
mov word [ebx + 0x2ef8], si
pop edi
pop esi
mov eax, 0x2733
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov eax, dword [ebx + 0x2ef4]
xor ecx, ecx
mov cl, byte [eax + 0x24]
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov edx, dword [0x5c2a74]
mov dword [esp + 0xc], edx
mov eax, ecx
lea ecx, [esp + 0xc]
push eax
push str.recv__x_command_n
push ecx
mov dword [esp + 0x24], 1
call fcn.0053afda
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.004cfa50
mov eax, dword [ebx + 0x2efc]
mov ecx, dword [ebx + 0x2ef4]
add eax, 0x10
push eax
push ecx
mov ecx, ebx
call fcn.004cfae0
push 2
push 0x5bdf2c
mov ecx, ebx
call fcn.004cfae0
lea ecx, [esp + 0xc]
mov word [ebx + 0x2efa], 0
mov word [ebx + 0x2ef8], 0
mov dword [esp + 0x18], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8