Function at 0x470f80
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x60e0
call fcn.004c6360
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0x60dc], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x20]
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], eax
call ebx
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
cmp edi, eax
je 0x471025
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
je 0x470fe7
jmp 0x470fd0
mov ecx, dword [edi + 8]
call fcn.00464c90
cmp dword [esp + esi*4 + 0x24], eax
mov eax, dword [esp + 0x20]
je 0x470fe7
inc esi
cmp esi, eax
jb 0x470fd0
cmp esi, eax
jne 0x471002
cmp eax, 0x400
jae 0x471002
mov ecx, dword [edi + 8]
call fcn.00464c90
mov dword [esp + esi*4 + 0x24], eax
inc dword [esp + 0x20]
mov ecx, dword [edi + 8]
call fcn.00464c90
cmp eax, ebp
jbe 0x471018
mov ecx, dword [edi + 8]
call fcn.00464c90
mov ebp, eax
mov edi, dword [edi]
mov eax, dword [esp + 0x10]
cmp edi, dword [eax + 0x14]
jne 0x470fc1
mov esi, eax
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
lea edx, [esp + 0x2c]
push edx
inc ebp
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x4710ef
push edi
call ebx
mov eax, dword [esi + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x4710e4
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
call fcn.00464c90
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4710d9
push 0
push 0x5000
lea ecx, [esp + 0x10f4]
push ecx
mov ecx, dword [esi + 8]
call fcn.00464c90
push eax
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x471108
mov ecx, dword [esi + 8]
push eax
lea edx, [esp + 0x10f0]
push edx
call fcn.00464cb0
test al, al
je 0x4711b2
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
push eax
call fcn.0046fc10
test al, al
je 0x4711b2
mov esi, dword [esi]
mov eax, dword [esp + 0x10]
cmp esi, dword [eax + 0x14]
jne 0x471072
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x60ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c6212
add esp, 0x60e0
ret
jne 0x471134
call fcn.0044ac60
test al, al
je 0x4711b2
mov ecx, dword [esi + 8]
call fcn.00464c90
push eax
push str.Red:_Conexion__d_cerrada_desde_el_cliente.
push 2
call fcn.0042a000
add esp, 0xc
jmp 0x4711b2
call ebx
push 0
push 0xc8
lea ecx, [esp + 0x102c]
push ecx
push 0
mov edi, eax
push edi
push 0
push 0x1000
call ebp
test eax, eax
je 0x471199
lea eax, [esp + 0x1024]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x471161
sub eax, edx
cmp eax, 2
jb 0x471176
mov byte [esp + eax + 0x1022], cl
mov ecx, dword [esi + 8]
lea edx, [esp + 0x1024]
push edx
call fcn.00464c90
push eax
push edi
push str.Red:_Error__d_al_leer_la_conexion__d.__s
push 0
call fcn.0042a000
add esp, 0x14
jmp 0x4711b2
mov ecx, dword [esi + 8]
call fcn.00464c90
push eax
push edi
push str.Red:_Error__d_al_leer_la_conexion__d.
push 0
call fcn.0042a000
add esp, 0x10
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
push 1
push eax
call fcn.00470160
jmp 0x4710db