Function at 0x5f8990
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63fd4b
mov eax, dword fs:[0]
push eax
mov eax, 0x1898
call fcn.00622a10
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x18a4], edi
mov dword [ebp - 0x18a0], eax
mov dword [ebp - 0x1888], ecx
mov dword [ebp - 0x1894], esi
mov dword [eax], 0xffffffff
test edi, edi
jne 0x5f8a03
mov eax, dword [esi]
mov ecx, esi
push str.NULL_arg.
call dword [eax + 0x14]
xor al, al
jmp 0x5f8da8
cmp dword [ebp + 0x14], 0xabcd0123
mov eax, 1
cmovne eax, dword [ebp + 0x14]
mov dword [ebp - 0x1898], eax
call fcn.004d90e0
mov ebx, dword [ebp + 8]
xor ecx, ecx
test ebx, ebx
jle 0x5f8a47
mov eax, edi
nop dword [eax]
cmp dword [eax], 0xffffffff
mov byte [eax + 0x18], 0
je 0x5f8b66
inc ecx
add eax, 0x90
cmp ecx, ebx
jl 0x5f8a30
mov edx, dword [ebp - 0x1888]
xor ecx, ecx
mov dword [ebp - 0x188c], ecx
mov eax, dword [edx + 4]
test eax, eax
je 0x5f8a7c
mov ecx, dword [eax + 0x88]
mov dword [ebp - 0x188c], ecx
test ecx, ecx
je 0x5f8a7c
mov eax, 0x32
cmp ecx, eax
cmovb ecx, eax
mov dword [ebp - 0x188c], ecx
mov eax, dword [ebp - 0x1898]
test eax, eax
mov dword [ebp - 0x14], 0xc042c00
cmove eax, dword [ebp - 0x14]
mov dword [ebp - 0x1898], eax
test ecx, ecx
jne 0x5f8ab6
mov ecx, edx
call fcn.004d9180
mov ecx, dword [ebp - 0x188c]
test al, al
mov edx, 0x42
cmovne ecx, edx
mov dword [ebp - 0x188c], ecx
mov dword [ebp - 0x1890], 0
test ebx, ebx
jle 0x5f8b04
mov eax, edi
mov dword [ebp - 0x189c], edi
nop dword [eax]
push dword [eax]
call fcn.004777c0
add esp, 4
test al, al
jne 0x5f8b83
mov ecx, dword [ebp - 0x1890]
mov eax, dword [ebp - 0x189c]
inc ecx
add eax, 0x90
mov dword [ebp - 0x1890], ecx
mov dword [ebp - 0x189c], eax
cmp ecx, ebx
jl 0x5f8ad0
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x1890], 0
mov byte [ebp - 0x1881], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00581a90
mov ebx, dword [ebp - 0x1898]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x5f8d8f
xor ecx, ecx
mov eax, dword [ebp - 0x188c]
mov esi, ebx
sub esi, ecx
mov edx, 0x14d
test eax, eax
jne 0x5f8c92
cmp esi, edx
cmovae esi, edx
jmp 0x5f8c9c
mov eax, dword [esi]
mov ecx, esi
push str.Invalid_socket.
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x1888]
xor al, al
mov byte [ecx + 0x16], 1
jmp 0x5f8da8
push 0x1010
lea eax, [ebp - 0x1880]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1880]
call fcn.00615e90
mov dword [ebp - 4], 0
mov ecx, edi
mov dword [ebp - 0x189c], 0
mov dword [ebp - 0x1894], edi
nop dword [eax]
push 1
push dword [ecx]
lea ecx, [ebp - 0x1880]
call fcn.006164a0
test al, al
je 0x5f8c66
mov eax, dword [ebp - 0x189c]
mov ecx, dword [ebp - 0x1894]
inc eax
add ecx, 0x90
mov dword [ebp - 0x189c], eax
mov dword [ebp - 0x1894], ecx
cmp eax, ebx
jl 0x5f8bc0
mov eax, dword [ebp - 0x1898]
mov ecx, 0xc042c00
test eax, eax
mov dword [ebp - 0x14], 0
cmove eax, ecx
mov ecx, dword [ebp - 0x1888]
push dword [ecx + 4]
lea ecx, [ebp - 0x14]
push ecx
push esi
push 0
push 1
push eax
push dword [ebp - 0x188c]
lea ecx, [ebp - 0x1880]
call fcn.00615f00
cmp dword [ebp - 0x14], 0
je 0x5f8c5c
xor esi, esi
nop dword [eax]
push dword [edi]
lea ecx, [ebp - 0x1880]
call fcn.00616570
test al, al
jne 0x5f8c78
inc esi
add edi, 0x90
cmp esi, ebx
jl 0x5f8c40
mov eax, dword [ebp - 0x1888]
mov byte [eax + 0x14], 1
lea ecx, [ebp - 0x1880]
xor bl, bl
call fcn.00615ea0
jmp 0x5f8da6
mov eax, dword [ebp - 0x18a0]
lea ecx, [ebp - 0x1880]
mov bl, 1
mov dword [eax], esi
call fcn.00615ea0
jmp 0x5f8da6
cmp eax, esi
cmovbe esi, eax
cmp esi, eax
cmova esi, eax
cmp byte [ebp - 0x1881], 0
je 0x5f8cb2
shr esi, 1
mov eax, 1
cmp esi, 1
cmovb esi, eax
cmp esi, ebx
mov eax, 0x10624dd3
cmova esi, ebx
mul esi
mov ecx, esi
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0x1c], edx
sub ecx, eax
imul eax, ecx, 0x3e8
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x18], eax
call fcn.00581e30
xor ebx, ebx
cmp dword [ebp + 8], ebx
jle 0x5f8d1d
nop dword [eax]
push dword [ebp - 0x1894]
lea ecx, [ebp - 0x870]
push dword [edi]
call fcn.00581de0
test al, al
je 0x5f8dc4
inc ebx
add edi, 0x90
cmp ebx, dword [ebp + 8]
jl 0x5f8cf0
mov edi, dword [ebp - 0x18a4]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x864]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x5f8d99
test eax, eax
js 0x5f8d99
jne 0x5f8de8
cmp dword [ebp + 0x14], 0xabcd0123
je 0x5f8d8f
mov eax, dword [ebp - 0x1890]
mov ebx, dword [ebp - 0x1898]
add eax, esi
mov dword [ebp - 0x1890], eax
inc eax
cmp eax, ebx
jae 0x5f8d8f
mov esi, dword [ebp - 0x1894]
mov ecx, dword [ebp - 0x1888]
push esi
call fcn.004d9240
test al, al
jne 0x5f8dd0
mov ecx, dword [ebp - 0x1890]
mov byte [ebp - 0x1881], al
cmp ecx, ebx
jb 0x5f8b45
mov eax, dword [ebp - 0x1888]
mov byte [eax + 0x14], 1
xor bl, bl
lea ecx, [ebp - 0x870]
call fcn.00581be0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1888]
mov byte [eax + 0x16], 1
jmp 0x5f8d99
mov eax, dword [ebp - 0x1888]
mov ecx, esi
push str.socket_operation_aborted_by_application
mov byte [eax + 0x15], 1
mov eax, dword [esi]
call dword [eax + 0x14]
jmp 0x5f8d99
mov ebx, dword [ebp + 8]
xor esi, esi
test ebx, ebx
jle 0x5f8e24
push dword [ebp - 0x1894]
lea ecx, [ebp - 0x870]
push dword [edi]
call fcn.00581dc0
test al, al
je 0x5f8e19
mov eax, dword [ebp - 0x18a0]
mov byte [edi + 0x18], 1
cmp dword [eax], 0
jge 0x5f8e19
mov dword [eax], esi
inc esi
add edi, 0x90
cmp esi, ebx
jl 0x5f8df1
mov eax, dword [ebp - 0x18a0]
cmp dword [eax], 0
jl 0x5f8d99
mov bl, 1
jmp 0x5f8d9b