Function at 0x5b0aa0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x34c
push ebx
push ebp
mov ebp, dword [esp + 0x368]
xor eax, eax
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
jl 0x5b0ae6
jg 0x5b0add
mov edi, dword [esp + 0x36c]
cmp edi, 0x7fffffff
jb 0x5b0aed
mov edi, accept
xor ebp, ebp
jmp 0x5b0aed
mov edi, dword [esp + 0x36c]
mov ecx, dword [esp + 0x360]
mov ebx, dword [esp + 0x364]
cmp ecx, 0xffffffff
jne 0x5b0b40
cmp ebx, 0xffffffff
jne 0x5b0b40
cmp dword [esp + 0x368], ebx
jne 0x5b0b40
test edi, edi
je 0x5b0b33
jns 0x5b0b2c
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
test ebp, ebp
jl 0x5b0b67
jg 0x5b0b4a
test edi, edi
je 0x5b0b67
lea eax, [esp + 0x30]
mov dword [esp + 0x10], edi
push eax
call fcn.005c02b0
mov ecx, dword [esp + 0x364]
add esp, 4
movups xmm0, xmmword [eax]
jmp 0x5b0b6c
movups xmm0, xmmword [esp + 0x20]
xor eax, eax
xor esi, esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x154], esi
movups xmmword [esp + 0x30], xmm0
cmp ecx, 0xffffffff
je 0x5b0ba2
mov esi, 1
mov dword [esp + 0x158], ecx
mov eax, esi
mov dword [esp + 0x154], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov edx, ecx
mov dword [esp + 0x18], 0xffffffff
cmove edx, dword [esp + 0x18]
cmp ebx, 0xffffffff
je 0x5b0c19
xor ecx, ecx
test esi, esi
je 0x5b0bce
nop dword [eax]
cmp dword [esp + ecx*4 + 0x158], ebx
je 0x5b0bce
inc ecx
cmp ecx, esi
jb 0x5b0bc0
cmp ecx, esi
jne 0x5b0bed
cmp esi, 0x40
jae 0x5b0bed
mov dword [esp + ecx*4 + 0x158], ebx
mov esi, dword [esp + 0x154]
inc esi
mov dword [esp + 0x154], esi
xor ecx, ecx
test eax, eax
je 0x5b0bfe
cmp dword [esp + ecx*4 + 0x54], ebx
je 0x5b0bfe
inc ecx
cmp ecx, eax
jb 0x5b0bf3
cmp ecx, eax
jne 0x5b0c14
cmp eax, 0x40
jae 0x5b0c14
mov dword [esp + ecx*4 + 0x54], ebx
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
cmp ebx, edx
cmova edx, ebx
mov ecx, dword [esp + 0x368]
mov dword [esp + 0x258], 0
cmp ecx, 0xffffffff
je 0x5b0c89
mov dword [esp + 0x25c], ecx
xor ecx, ecx
mov dword [esp + 0x258], 1
test eax, eax
je 0x5b0c62
mov ebx, dword [esp + 0x368]
nop
cmp dword [esp + ecx*4 + 0x54], ebx
je 0x5b0c5b
inc ecx
cmp ecx, eax
jb 0x5b0c50
mov ebx, dword [esp + 0x364]
cmp ecx, eax
jne 0x5b0c7a
cmp eax, 0x40
jae 0x5b0c7a
mov eax, dword [esp + 0x368]
mov dword [esp + ecx*4 + 0x54], eax
inc dword [esp + 0x50]
cmp dword [esp + 0x368], edx
cmova edx, dword [esp + 0x368]
test ebp, ebp
jg 0x5b0c9d
jl 0x5b0c93
test edi, edi
jae 0x5b0c9d
mov dword [esp + 0x14], 0
jmp 0x5b0ca5
lea eax, [esp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [edx + 1]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
test ebp, ebp
jl 0x5b0ce3
jg 0x5b0cba
test edi, edi
je 0x5b0ce3
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x24], eax
jmp 0x5b0cf1
mov eax, edi
or eax, ebp
jne 0x5b0cf1
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push dword [esp + 0x14]
xor ecx, ecx
lea eax, [esp + 0x54]
cmp dword [esp + 0x25c], ecx
push eax
lea eax, [esp + 0x260]
cmove eax, ecx
test esi, esi
push eax
lea eax, [esp + 0x160]
cmove eax, ecx
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x5b0da2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x5b0d44
cmp dword [0x6970ec], 0
jne 0x5b0da6
cmp eax, 0x2714
jne 0x5b0da6
test ebp, ebp
jl 0x5b0d50
jg 0x5b0d5c
test edi, edi
jne 0x5b0d5c
nop
mov esi, dword [esp + 0x154]
jmp 0x5b0cac
lea eax, [esp + 0x40]
push eax
call fcn.005c02b0
movups xmm0, xmmword [esp + 0x34]
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.005c0360
mov ecx, edi
add esp, 0x20
sub ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x5b0b33
mov esi, dword [esp + 0x154]
jmp 0x5b0cb0
test eax, eax
jns 0x5b0db5
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
je 0x5b0b33
mov edi, dword [esp + 0x360]
xor esi, esi
cmp edi, 0xffffffff
je 0x5b0df3
lea eax, [esp + 0x154]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [esp + 0x50]
push eax
push edi
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5b0df3
or esi, 4
cmp ebx, 0xffffffff
je 0x5b0e1f
lea eax, [esp + 0x154]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5b0e0d
or esi, 8
lea eax, [esp + 0x50]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5b0e1f
or esi, 4
mov ebx, dword [esp + 0x368]
cmp ebx, 0xffffffff
je 0x5b0e52
lea eax, [esp + 0x258]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5b0e40
or esi, 2
lea eax, [esp + 0x50]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5b0e52
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret