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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4c8c0a
cmp edx, 0xffffffff
je 0x4c8d86
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [esi + 0x78], 0
jle 0x4c8d85
xor ecx, ecx
mov dword [ebp - 0xc], ecx
push edi
mov edi, dword [esi + 0x74]
add edi, ecx
mov ecx, dword [edi + 0x20]
cmp ecx, 0xffffffff
je 0x4c8e57
cmp dword [edi + 0x54], 0
jne 0x4c8e57
test ebx, ebx
je 0x4c8ca2
push ebx
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c8e54
mov esi, dword [ebx]
xor eax, eax
mov edx, dword [edi + 0x20]
test esi, esi
je 0x4c8c9a
lea ecx, [ebx + 4]
cmp dword [ecx], edx
je 0x4c8c75
inc eax
add ecx, 4
cmp eax, esi
jb 0x4c8c61
mov ecx, dword [edi + 0x20]
mov esi, dword [ebp + 8]
jmp 0x4c8caa
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x4c8c95
lea edx, [eax + 1]
lea edx, [ebx + edx*4]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov esi, dword [ebx]
lea ecx, [esi - 1]
cmp eax, ecx
jb 0x4c8c82
lea eax, [esi - 1]
mov dword [ebx], eax
mov ecx, dword [edi + 0x20]
mov esi, dword [ebp + 8]
jmp 0x4c8caa
cmp ecx, edx
jne 0x4c8e57
mov eax, dword [edi + 0x28]
cmp eax, 2
je 0x4c8d8b
mov edx, 2
sub edx, eax
add eax, 0x24
add eax, edi
cmp dword [esi + 0x91b8], 0
je 0x4c8cf5
push dword [esi + 0x91bc]
push 0
push 0
push 0
push edx
push eax
mov eax, dword [esi + 0x91b8]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x51a4a0]
call esi
mov esi, dword [ebp + 8]
add esp, 0x1c
jmp 0x4c8d00
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4c8d37
cmp eax, 0xffffffff
jne 0x4c8d23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x4c8e54
cmp eax, 0x2733
je 0x4c8e54
push dword [ebp + 0x14]
push dword [ebp - 4]
push esi
call fcn.004c82d0
add esp, 0xc
jmp 0x4c8e54
add dword [edi + 0x28], eax
cmp dword [edi + 0x28], 2
jne 0x4c8e54
movzx ecx, byte [edi + 0x24]
movzx eax, byte [edi + 0x25]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x2c], ecx
mov esi, dword [0x55f1a8]
push ecx
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [edi + 0x30], eax
test eax, eax
jne 0x4c8e4a
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004c82d0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 0x30]
add ebx, dword [edi + 0x34]
mov edx, dword [edi + 0x2c]
sub edx, dword [edi + 0x34]
mov eax, dword [esi + 0x91b8]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4c8dcd
push dword [esi + 0x91bc]
mov esi, dword [eax + 0xc]
push 0
push 0
push 0
push edx
push dword [ebp - 8]
push ecx
mov ecx, esi
call dword [0x51a4a0]
call esi
mov esi, dword [ebp + 8]
add esp, 0x1c
jmp 0x4c8dda
push 0
push edx
push dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4c8e06
cmp eax, 0xffffffff
jne 0x4c8df5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x4c8e54
cmp eax, 0x2733
je 0x4c8e54
push dword [ebp + 0x14]
push dword [ebp - 4]
push esi
call fcn.004c82d0
add esp, 0xc
jmp 0x4c8e54
add dword [edi + 0x34], eax
mov eax, dword [edi + 0x2c]
cmp dword [edi + 0x34], eax
jne 0x4c8e54
push dword [ebp + 0x14]
push 1
push dword [ebp - 4]
push eax
push dword [edi + 0x30]
push esi
call fcn.004c88d0
mov esi, dword [fcn.004b7430]
add esp, 0x18
mov ecx, esi
push dword [edi + 0x30]
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [edi + 0x30], 0
mov dword [edi + 0x28], 0
mov esi, dword [ebp + 8]
mov dword [edi + 0x34], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc eax
add ecx, 0x58
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [esi + 0x78]
jl 0x4c8c25
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret