Function at 0x140017800
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor edi, edi
mov r14d, r9d
mov r13, r8
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x30], rdi
mov r15d, edi
cmp rcx, 0xffffffffffffffff
jne 0x14001787e
cmp rdx, rcx
jne 0x14001787e
cmp r8, rcx
jne 0x14001787e
test r9d, r9d
je 0x140017877
jns 0x14001786e
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or edi, r12d
mov eax, edi
jmp 0x140017b5f
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
jmp 0x140017b5f
mov qword [rsp + 0x698], rbx
test r9d, r9d
jle 0x140017898
mov r15d, r9d
call fcn.140022b80
mov rbx, rax
jmp 0x14001789d
mov rbx, qword [rsp + 0x30]
or r8, 0xffffffffffffffff
mov ecx, edi
mov r9d, edi
lea eax, [r8 + 2]
mov dword [rbp + 0x370], ecx
mov dword [rsp + 0x50], edi
cmp r12, r8
je 0x1400178d7
mov qword [rsp + 0x58], r12
mov r9d, eax
mov dword [rsp + 0x50], eax
mov qword [rbp + 0x378], r12
mov ecx, eax
mov dword [rbp + 0x370], eax
mov r8, r12
cmp rsi, 0xffffffffffffffff
je 0x14001796a
mov eax, edi
test r9d, r9d
je 0x140017900
lea rdx, [rsp + 0x58]
nop dword [rax]
cmp qword [rdx], rsi
je 0x140017900
inc eax
add rdx, 8
cmp eax, r9d
jb 0x1400178f0
cmp eax, r9d
jne 0x14001791d
cmp r9d, 0x40
jae 0x14001791d
mov qword [rsp + rax*8 + 0x58], rsi
mov r9d, dword [rsp + 0x50]
inc r9d
mov dword [rsp + 0x50], r9d
mov eax, edi
test ecx, ecx
je 0x14001793f
lea rdx, [rbp + 0x378]
nop word [rax + rax]
cmp qword [rdx], rsi
je 0x14001793f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x140017930
cmp eax, ecx
jne 0x14001795e
cmp ecx, 0x40
jae 0x14001795e
mov qword [rbp + rax*8 + 0x378], rsi
mov ecx, dword [rbp + 0x370]
inc ecx
mov dword [rbp + 0x370], ecx
cmp rsi, r8
mov eax, 1
cmova r8, rsi
mov dword [rbp + 0x160], edi
cmp r13, 0xffffffffffffffff
je 0x1400179bd
mov dword [rbp + 0x160], eax
mov qword [rbp + 0x168], r13
mov eax, edi
test ecx, ecx
je 0x14001799f
lea rdx, [rbp + 0x378]
cmp qword [rdx], r13
je 0x14001799f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x140017990
cmp eax, ecx
jne 0x1400179b6
cmp ecx, 0x40
jae 0x1400179b6
mov qword [rbp + rax*8 + 0x378], r13
inc dword [rbp + 0x370]
cmp r13, r8
cmova r8, r13
lea rcx, [rsp + 0x30]
test r14d, r14d
lea r10d, [r8 + 1]
cmovs rcx, rdi
mov dword [rsp + 0x38], r10d
mov qword [rsp + 0x40], rcx
test r14d, r14d
jle 0x140017a09
mov eax, 0x10624dd3
imul r15d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r15d
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x140017a10
jne 0x140017a10
mov qword [rsp + 0x30], rdi
cmp dword [rbp + 0x160], edi
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x160]
cmove r8, rdi
test r9d, r9d
lea rdx, [rsp + 0x50]
lea r9, [rbp + 0x370]
cmove rdx, rdi
mov ecx, r10d
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x140017aa8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140017a60
cmp dword [0x140094568], edi
jne 0x140017aac
cmp eax, 0x2714
jne 0x140017aac
test r14d, r14d
jg 0x140017a79
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov r10d, dword [rsp + 0x38]
jmp 0x1400179d7
call fcn.140022b80
mov rdx, rbx
mov rcx, rax
call fcn.140022bc0
mov r15d, r14d
sub r15d, eax
test r15d, r15d
jle 0x140017ab6
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov r10d, dword [rsp + 0x38]
jmp 0x1400179d7
test eax, eax
jns 0x140017ab4
or eax, 0xffffffff
jmp 0x140017b57
jne 0x140017abd
xor eax, eax
jmp 0x140017b57
mov rbx, r12
cmp rbx, 0xffffffffffffffff
je 0x140017af3
lea rdx, [rsp + 0x50]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
lea rdx, [rbp + 0x370]
mov rcx, rbx
test eax, eax
mov eax, 1
cmovne edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140017af3
or edi, 4
cmp rsi, 0xffffffffffffffff
je 0x140017b23
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140017b0d
or edi, 8
lea rdx, [rbp + 0x370]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140017b23
or edi, 4
cmp r13, 0xffffffffffffffff
je 0x140017b55
lea rdx, [rbp + 0x160]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140017b3f
or edi, 2
lea rdx, [rbp + 0x370]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140017b55
or edi, 4
mov eax, edi
mov rbx, qword [rsp + 0x698]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret