Function at 0x5ed170
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72fc8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
mov dword [ebp - 0x3ac], ecx
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0xffffffff
jne 0x5ed1ca
push 0
lea ecx, [ebp - 0x39c]
call fcn.005d0d40
push 0x7df6b8
lea edx, [ebp - 0x39c]
push edx
call fcn.00563aac
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x33c], 0
mov eax, dword [ebp + 0xc]
and eax, 1
je 0x5ed26f
mov dword [ebp - 0x344], 0
jmp 0x5ed20b
mov ecx, dword [ebp - 0x344]
add ecx, 1
mov dword [ebp - 0x344], ecx
mov edx, dword [ebp - 0x344]
cmp edx, dword [ebp - 0x22c]
jae 0x5ed232
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp + eax*4 - 0x228]
cmp ecx, dword [ebp - 0x120]
jne 0x5ed230
jmp 0x5ed232
jmp 0x5ed1fc
mov edx, dword [ebp - 0x344]
cmp edx, dword [ebp - 0x22c]
jne 0x5ed26b
cmp dword [ebp - 0x22c], 0x40
jae 0x5ed26b
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp - 0x120]
mov dword [ebp + eax*4 - 0x228], ecx
mov edx, dword [ebp - 0x22c]
add edx, 1
mov dword [ebp - 0x22c], edx
xor eax, eax
jne 0x5ed1f0
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x5ed2f6
mov dword [ebp - 0x348], 0
jmp 0x5ed292
mov edx, dword [ebp - 0x348]
add edx, 1
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x11c]
jae 0x5ed2b9
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + ecx*4 - 0x118]
cmp edx, dword [ebp - 0x120]
jne 0x5ed2b7
jmp 0x5ed2b9
jmp 0x5ed283
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x11c]
jne 0x5ed2f2
cmp dword [ebp - 0x11c], 0x40
jae 0x5ed2f2
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp - 0x120]
mov dword [ebp + ecx*4 - 0x118], edx
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
xor ecx, ecx
jne 0x5ed277
mov edx, dword [ebp + 0xc]
and edx, 4
je 0x5ed37d
mov dword [ebp - 0x34c], 0
jmp 0x5ed319
mov eax, dword [ebp - 0x34c]
add eax, 1
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
cmp ecx, dword [ebp - 0x33c]
jae 0x5ed340
mov edx, dword [ebp - 0x34c]
mov eax, dword [ebp + edx*4 - 0x338]
cmp eax, dword [ebp - 0x120]
jne 0x5ed33e
jmp 0x5ed340
jmp 0x5ed30a
mov ecx, dword [ebp - 0x34c]
cmp ecx, dword [ebp - 0x33c]
jne 0x5ed379
cmp dword [ebp - 0x33c], 0x40
jae 0x5ed379
mov edx, dword [ebp - 0x34c]
mov eax, dword [ebp - 0x120]
mov dword [ebp + edx*4 - 0x338], eax
mov ecx, dword [ebp - 0x33c]
add ecx, 1
mov dword [ebp - 0x33c], ecx
xor edx, edx
jne 0x5ed2fe
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x234]
call fcn.00590260
mov dword [ebp - 4], 0
mov dword [ebp - 0x340], 0
mov ecx, dword [0x791d34]
push ecx
mov edx, dword [0x791d30]
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00566fd0
mov dword [ebp - 0x354], eax
push 0
push 0xf4240
mov edx, dword [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call fcn.005685f0
mov dword [ebp - 0x350], eax
lea ecx, [ebp - 0x35c]
call fcn.005bb810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x354]
push ecx
lea edx, [ebp - 0x33c]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x120]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x5ed50d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0x2714
jne 0x5ed50d
lea ecx, [ebp - 0x364]
call fcn.005bb810
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x364]
sub eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
sbb ecx, dword [ebp - 0x358]
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3a4], ecx
mov edx, dword [ebp - 0x3a4]
push edx
mov eax, dword [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x36c]
call fcn.00590180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x368]
cmp ecx, dword [ebp - 0x230]
jg 0x5ed4c2
jl 0x5ed4b6
mov edx, dword [ebp - 0x36c]
cmp edx, dword [ebp - 0x234]
jae 0x5ed4c2
mov dword [ebp - 0x3b0], 1
jmp 0x5ed4cc
mov dword [ebp - 0x3b0], 0
movzx eax, byte [ebp - 0x3b0]
test eax, eax
je 0x5ed4eb
lea ecx, [ebp - 0x36c]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00590480
jmp 0x5ed4fa
push 0
push 0
lea ecx, [ebp - 0x234]
call fcn.005902a0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x364]
call fcn.005bb870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x35c]
call fcn.005bb870
cmp dword [ebp - 0x10], 0
jge 0x5ed532
cmp dword [ebp - 0x340], 0x2714
je 0x5ed39d
cmp dword [ebp - 0x10], 0
jge 0x5ed547
mov edx, dword [ebp - 0x340]
push edx
call fcn.005ee220
add esp, 4
xor eax, eax
cmp dword [ebp - 0x10], 0
setg al
mov byte [ebp - 0x39d], al
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x39d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8