Function at 0x1401f6e20
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x1402ee010]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov eax, 0x7fffffff
mov r10, r9
cmp r9, rax
mov rsi, r8
mov rdi, rdx
mov r15, rcx
cmovge r10, rax
cmp rcx, 0xffffffffffffffff
jne 0x1401f6e9b
cmp rdx, rcx
jne 0x1401f6e9b
cmp r8, rcx
jne 0x1401f6e9b
test r10d, r10d
je 0x1401f6e94
jns 0x1401f6e8b
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, r15
jmp 0x1401f710d
mov ecx, r10d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x1401f710d
xor ebx, ebx
mov qword [rsp + 0x690], r12
test r10, r10
mov qword [rsp + 0x688], r14
mov eax, r10d
mov dword [rsp + 0x40], ebx
cmovle eax, ebx
mov r9d, ebx
mov dword [rsp + 0x38], eax
lea eax, [rbx + 1]
cmp r15, 0xffffffffffffffff
je 0x1401f6edd
mov qword [rsp + 0x48], r15
mov r9d, eax
mov dword [rsp + 0x40], eax
mov qword [rbp + 0x368], r15
mov r13, 0xffffffffffffffff
mov r11, r15
cmove r11, r13
mov edx, r9d
mov dword [rbp + 0x360], edx
mov r8d, r9d
cmp rdi, r13
je 0x1401f6f8e
mov ecx, ebx
test r9d, r9d
je 0x1401f6f17
mov eax, ecx
cmp qword [rsp + rax*8 + 0x48], rdi
je 0x1401f6f17
inc ecx
cmp ecx, r9d
jb 0x1401f6f07
cmp ecx, r9d
jne 0x1401f6f36
cmp r9d, 0x40
jae 0x1401f6f36
mov eax, ecx
mov qword [rsp + rax*8 + 0x48], rdi
mov r9d, dword [rsp + 0x40]
inc r9d
mov dword [rsp + 0x40], r9d
mov ecx, ebx
test r8d, r8d
je 0x1401f6f53
nop dword [rax]
mov eax, ecx
cmp qword [rbp + rax*8 + 0x368], rdi
je 0x1401f6f53
inc ecx
cmp ecx, r8d
jb 0x1401f6f40
mov dword [rbp + 0x360], edx
cmp ecx, r8d
jne 0x1401f6f82
mov dword [rbp + 0x360], edx
cmp r8d, 0x40
jae 0x1401f6f82
mov eax, ecx
mov qword [rbp + rax*8 + 0x368], rdi
mov edx, dword [rbp + 0x360]
inc edx
mov dword [rbp + 0x360], edx
cmp rdi, r11
mov eax, 1
cmova r11, rdi
mov dword [rbp + 0x150], ebx
mov r12d, ebx
cmp rsi, r13
je 0x1401f6fe4
mov qword [rbp + 0x158], rsi
mov r12d, eax
mov dword [rbp + 0x150], eax
mov ecx, ebx
test edx, edx
je 0x1401f6fc4
mov eax, ecx
cmp qword [rbp + rax*8 + 0x368], rsi
je 0x1401f6fc4
inc ecx
cmp ecx, edx
jb 0x1401f6fb2
cmp ecx, edx
jne 0x1401f6fdd
cmp edx, 0x40
jae 0x1401f6fdd
mov eax, ecx
mov qword [rbp + rax*8 + 0x368], rsi
inc dword [rbp + 0x360]
cmp rsi, r11
cmova r11, rsi
test r10, r10
lea r14, [rsp + 0x30]
cmovs r14, rbx
jle 0x1401f701f
mov ecx, dword [rsp + 0x38]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x1401f7026
jne 0x1401f7026
mov qword [rsp + 0x30], rbx
test r12d, r12d
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x150]
cmove r8, rbx
lea rdx, [rsp + 0x40]
test r9d, r9d
lea ecx, [r11 + 1]
lea r9, [rbp + 0x360]
cmove rdx, rbx
call qword [sym.imp.WS2_32.dll_select]
mov r14, qword [rsp + 0x688]
mov r12, qword [rsp + 0x690]
test eax, eax
jns 0x1401f7072
mov eax, r13d
jmp 0x1401f710f
jne 0x1401f707b
xor eax, eax
jmp 0x1401f710f
cmp r15, r13
je 0x1401f70ad
lea rdx, [rsp + 0x40]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea rdx, [rbp + 0x360]
mov eax, 1
mov rcx, r15
cmovne ebx, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f70ad
or ebx, 4
cmp rdi, r13
je 0x1401f70dc
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f70c6
or ebx, 8
lea rdx, [rbp + 0x360]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f70dc
or ebx, 4
cmp rsi, r13
je 0x1401f710d
lea rdx, [rbp + 0x150]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f70f7
or ebx, 2
lea rdx, [rbp + 0x360]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f710d
or ebx, 4
mov eax, ebx
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140084100
add rsp, 0x698
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret