Function at 0x57c720
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x7b7fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
mov eax, dword [ebp - 0x210]
cmp dword [eax + 0x5c], 0xffffffff
jne 0x57c74a
jmp 0x57c9b0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x108], 0
cmp dword [ebp - 0x20c], 0x40
jae 0x57c78c
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x5c]
mov dword [ebp + ecx*4 - 0x208], eax
mov ecx, dword [ebp - 0x20c]
add ecx, 1
mov dword [ebp - 0x20c], ecx
xor edx, edx
jne 0x57c75e
cmp dword [ebp - 0x108], 0x40
jae 0x57c7be
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 0x5c]
mov dword [ebp + eax*4 - 0x104], edx
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
jne 0x57c790
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea edx, [ebp - 0x228]
push edx
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x57c7fe
jmp 0x57c9b0
mov edx, dword [ebp - 0x210]
movzx eax, byte [edx + 0x48]
test eax, eax
jne 0x57c8b2
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x5c]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x57c849
mov ecx, dword [ebp - 0x210]
mov byte [ecx + 0x48], 1
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
mov edx, dword [eax + 4]
call edx
jmp 0x57c8ad
push 0
call fcn.00567740
add esp, 4
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [edx + 0xc]
jl 0x57c8ad
jg 0x57c88f
mov ecx, dword [ebp - 0x214]
mov edx, dword [ebp - 0x220]
cmp edx, dword [ecx + 8]
jbe 0x57c8ad
mov ecx, dword [ebp - 0x210]
call fcn.0057c1d0
mov eax, dword [ebp - 0x210]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x210]
mov eax, dword [edx + 8]
call eax
jmp 0x57c9b0
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x5c]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x57c92c
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x210]
mov eax, dword [ecx + 0x34]
cmp eax, dword [edx + 0x38]
jle 0x57c92c
mov ecx, dword [ebp - 0x210]
call fcn.0057cdd0
movzx ecx, al
test ecx, ecx
jne 0x57c92c
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0x2733
je 0x57c92c
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [ebp - 0x210]
call fcn.0057c1d0
jmp 0x57c9b0
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 0x5c]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x57c978
mov ecx, dword [ebp - 0x210]
call fcn.0057ccc0
movzx eax, al
test eax, eax
jne 0x57c978
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x210]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x210]
call fcn.0057c1d0
jmp 0x57c9b0
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x210]
mov eax, dword [edx + 0x14]
call eax
movzx ecx, al
test ecx, ecx
jne 0x57c9b0
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [ebp - 0x210]
call fcn.0057c1d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065d40e
mov esp, ebp
pop ebp
ret