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

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x5b5b47
cmp edx, 0xffffffff
je 0x5b5ca9
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [ebp + 0x78], ebx
jle 0x5b5ca7
xor ecx, ecx
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [ebp + 0x74]
add esi, ecx
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x5b5d5a
cmp dword [esi + 0x54], 0
jne 0x5b5d5a
test edi, edi
je 0x5b5bd9
push edi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5b5d56
mov edx, dword [edi]
xor eax, eax
test edx, edx
je 0x5b5be1
mov ebx, dword [esi + 0x20]
lea ecx, [edi + 4]
nop
cmp dword [ecx], ebx
je 0x5b5bb2
inc eax
add ecx, 4
cmp eax, edx
jb 0x5b5ba0
mov ebx, dword [esp + 0x1c]
jmp 0x5b5be1
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x5b5bd1
lea edx, [edi + 4]
lea edx, [edx + eax*4]
nop
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov ecx, dword [edi]
dec ecx
cmp eax, ecx
jb 0x5b5bc0
dec dword [edi]
mov ebx, dword [esp + 0x1c]
jmp 0x5b5be1
cmp eax, edx
jne 0x5b5d5a
mov eax, dword [esi + 0x28]
cmp eax, 2
je 0x5b5cac
mov ebx, dword [ebp + 0x91b8]
mov ecx, 2
mov edx, dword [esi + 0x20]
sub ecx, eax
add eax, 0x24
add eax, esi
test ebx, ebx
je 0x5b5c1f
push dword [ebp + 0x91bc]
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [ebx + 0xc]
push edx
call eax
add esp, 0x1c
jmp 0x5b5c2a
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x5b5c63
cmp eax, 0xffffffff
jne 0x5b5c4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x5b5d56
cmp eax, 0x2733
je 0x5b5d56
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.005b4fb0
add esp, 0xc
jmp 0x5b5d56
add dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x5b5d56
movzx ecx, byte [esi + 0x24]
movzx eax, byte [esi + 0x25]
shl ecx, 8
or ecx, eax
push ecx
mov dword [esi + 0x2c], ecx
call dword [0x6ab138]
add esp, 4
mov dword [esi + 0x30], eax
test eax, eax
jne 0x5b5d4f
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.005b4fb0
add esp, 0xc
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
sub ecx, dword [esi + 0x34]
add edx, dword [esi + 0x34]
cmp dword [ebp + 0x91b8], 0
mov eax, dword [esi + 0x20]
je 0x5b5ce3
push dword [ebp + 0x91bc]
push 0
push 0
push 0
push ecx
push edx
push eax
mov eax, dword [ebp + 0x91b8]
mov eax, dword [eax + 0xc]
call eax
add esp, 0x1c
jmp 0x5b5cee
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x5b5d19
cmp eax, 0xffffffff
jne 0x5b5d09
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x5b5d56
cmp eax, 0x2733
je 0x5b5d56
push dword [esp + 0x24]
push ebx
push ebp
call fcn.005b4fb0
add esp, 0xc
jmp 0x5b5d56
add dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
cmp dword [esi + 0x34], eax
jne 0x5b5d56
push dword [esp + 0x24]
push 1
push ebx
push eax
push dword [esi + 0x30]
push ebp
call fcn.005b5750
push dword [esi + 0x30]
call dword [0x6ab140]
add esp, 0x1c
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], 0x58
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ebp + 0x78]
jge 0x5b5ca6
mov ecx, dword [esp + 0x10]
mov ebx, eax
jmp 0x5b5b63