Function at 0x5f1cb0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x358
mov edx, dword [esp + 0x35c]
xor eax, eax
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x36c]
push esi
push edi
test edx, edx
je 0x5f1e7d
mov ecx, dword [esp + 0x370]
test ecx, ecx
je 0x5f1e7d
cmp dword [edx + eax*8], 0xffffffff
jne 0x5f1d06
inc eax
cmp eax, ecx
jb 0x5f1cf6
jmp 0x5f1e7d
test ebp, ebp
jle 0x5f1d27
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], ebp
push eax
call fcn.005f5730
mov edx, dword [esp + 0x370]
add esp, 4
movups xmm0, xmmword [eax]
jmp 0x5f1d2c
movups xmm0, xmmword [esp + 0x2c]
xor edi, edi
lea ecx, [edx + 4]
mov edx, dword [esp + 0x370]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x5c], edi
or eax, 0xffffffff
mov dword [esp + 0x160], ebx
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x264], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
xor edx, edx
mov dword [esp + 0x20], eax
mov word [ecx + 2], dx
mov ecx, dword [ecx - 4]
cmp ecx, 0xffffffff
je 0x5f1e5b
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
movzx edx, ax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
test eax, 0x710
je 0x5f1e57
cmp ecx, edx
mov eax, ecx
cmovbe eax, edx
test dword [esp + 0x28], 0x300
mov dword [esp + 0x10], eax
je 0x5f1dd5
xor eax, eax
test edi, edi
je 0x5f1dbf
cmp dword [esp + eax*4 + 0x60], ecx
je 0x5f1dbf
inc eax
cmp eax, edi
jb 0x5f1db4
cmp eax, edi
jne 0x5f1dd5
cmp edi, 0x40
jae 0x5f1dd5
mov dword [esp + eax*4 + 0x60], ecx
mov edi, dword [esp + 0x5c]
inc edi
mov dword [esp + 0x5c], edi
mov edx, dword [esp + 0x1c]
test dl, 0x10
je 0x5f1e11
xor eax, eax
test ebx, ebx
je 0x5f1df2
cmp dword [esp + eax*4 + 0x164], ecx
je 0x5f1df2
inc eax
cmp eax, ebx
jb 0x5f1de4
cmp eax, ebx
jne 0x5f1e11
cmp ebx, 0x40
jae 0x5f1e11
mov dword [esp + eax*4 + 0x164], ecx
mov ebx, dword [esp + 0x160]
inc ebx
mov dword [esp + 0x160], ebx
test edx, 0x600
je 0x5f1e57
xor eax, eax
test esi, esi
je 0x5f1e2e
nop
cmp dword [esp + eax*4 + 0x268], ecx
je 0x5f1e2e
inc eax
cmp eax, esi
jb 0x5f1e20
cmp eax, esi
jne 0x5f1e4d
cmp esi, 0x40
jae 0x5f1e4d
mov dword [esp + eax*4 + 0x268], ecx
mov esi, dword [esp + 0x264]
inc esi
mov dword [esp + 0x264], esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
jmp 0x5f1e5b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add ecx, 8
sub dword [esp + 0x24], 1
mov dword [esp + 0x18], ecx
jne 0x5f1d62
test edi, edi
jne 0x5f1ea4
test ebx, ebx
jne 0x5f1ea4
test esi, esi
jne 0x5f1ea4
test ebp, ebp
je 0x5f2079
jns 0x5f2072
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret
xor ecx, ecx
lea eax, [esp + 0x2c]
test ebp, ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmovs eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x374]
mov ecx, dword [esp + 0x14]
test eax, eax
jle 0x5f1ef1
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x30], eax
jmp 0x5f1f03
jne 0x5f1f03
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
push dword [esp + 0x1c]
xor ecx, ecx
lea eax, [esp + 0x268]
test esi, esi
cmove eax, ecx
test ebx, ebx
push eax
lea eax, [esp + 0x168]
cmove eax, ecx
test edi, edi
push eax
lea eax, [esp + 0x68]
cmove eax, ecx
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x5f1fdf
call ebp
test eax, eax
je 0x5f1f60
cmp dword [0x6b9cd8], 0
jne 0x5f1e96
cmp eax, 0x2714
jne 0x5f1e96
mov eax, dword [esp + 0x374]
test eax, eax
jg 0x5f1f82
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x160]
mov esi, dword [esp + 0x264]
jmp 0x5f1ec0
lea eax, [esp + 0x4c]
push eax
call fcn.005f5730
movups xmm0, xmmword [esp + 0x40]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.005f57e0
mov ecx, dword [esp + 0x394]
add esp, 0x20
sub ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x5f2079
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x160]
mov esi, dword [esp + 0x264]
mov eax, dword [esp + 0x374]
jmp 0x5f1ec4
test eax, eax
js 0x5f1e96
je 0x5f2079
mov esi, dword [esp + 0x36c]
xor edi, edi
add esi, 6
mov ebp, 0x300
mov ebx, 0x400
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x5f2058
lea ecx, [esp + 0x5c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5f2022
or word [esi], bp
lea eax, [esp + 0x160]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5f203a
or word [esi], 0x10
lea eax, [esp + 0x264]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5f2051
or word [esi], bx
cmp word [esi], 0
je 0x5f2058
inc edi
add esi, 8
sub dword [esp + 0x370], 1
jne 0x5f2003
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x358
ret