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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push edi
mov dword [ebp - 0x154], ecx
cmp dword [ebp + 8], 0
je 0x52777f
cmp dword [ebp + 0xc], 1
jae 0x527786
xor eax, eax
jmp 0x527a64
mov dword [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x11c], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x5277df
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x120], edx
lea edx, [ebp - 0x124]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x52782d
cmp dword [ebp - 0x118], 0x40
jae 0x527827
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x10]
mov dword [ebp + ecx*4 - 0x114], edx
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
xor ecx, ecx
test ecx, ecx
jne 0x5277ff
mov dword [ebp - 0x128], 0
mov edx, dword [ebp - 0x11c]
push edx
push 0
push 0
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call sub.WSOCK32.dll_select
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x527a5e
mov ecx, dword [ebp - 0x154]
call fcn.00526d2f
and eax, 0xff
test eax, eax
jne 0x52788e
mov ecx, dword [ebp - 0x154]
call fcn.00526d40
and eax, 0xff
test eax, eax
je 0x527a21
lea ecx, [ebp - 0x13c]
call fcn.005281b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00528100
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x154]
call fcn.00526d40
and eax, 0xff
neg eax
sbb eax, eax
and eax, dword [ebp - 0x144]
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x12c]
jae 0x52790e
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x148], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.005281d0
mov eax, dword [ebp - 0x148]
jmp 0x527a64
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x12c]
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.005281a0
push eax
push 0
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.WSOCK32.dll_recvfrom
mov dword [ebp - 0x14], eax
push 8
push 0
lea edx, [ebp - 0x134]
push edx
call fcn.0054bf90
add esp, 0xc
mov ecx, dword [ebp - 0x154]
call fcn.00526d62
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x154]
add ecx, 0x10
call fcn.00528510
cmp dword [ebp - 0x14], 0
jl 0x527a02
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x14c]
push edx
mov ecx, dword [ebp - 0x154]
add ecx, 0x10
call fcn.00528320
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x150]
push ecx
mov ecx, dword [ebp - 0x154]
add ecx, 0x10
call fcn.00528360
mov ecx, dword [ebp - 0x154]
call fcn.00526d40
and eax, 0xff
test eax, eax
je 0x527a02
lea ecx, [ebp - 0x13c]
call fcn.00528100
push eax
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0054c7e0
add esp, 0xc
lea ecx, [ebp - 0x13c]
call fcn.00528100
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x154]
call fcn.00526d85
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.005281d0
jmp 0x527a37
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x527a48
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x158], edx
jmp 0x527a52
mov dword [ebp - 0x158], 0xffffffff
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 0xc