Function at 0x14002e6f0
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0x5a8]
sub rsp, 0x6a8
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14002e73c
cmp rdx, rcx
jne 0x14002e73c
cmp r8, rcx
jne 0x14002e73c
mov rcx, r9
call fcn.14002ea50
jmp 0x14002ea2f
mov qword [rsp + 0x6a0], rbx
xor ebx, ebx
mov qword [rsp + 0x698], r12
mov r10d, ebx
mov qword [rsp + 0x690], r13
mov qword [rsp + 0x688], r15
mov dword [rbp + 0x150], ebx
lea r12d, [rbx + 1]
cmp r14, 0xffffffffffffffff
je 0x14002e787
mov qword [rbp + 0x158], r14
mov r10d, r12d
mov dword [rbp + 0x150], r12d
mov qword [rsp + 0x48], r14
mov r13, 0xffffffffffffffff
mov r11, r14
cmove r11, r13
mov edx, r10d
mov dword [rsp + 0x40], edx
mov r8d, r10d
cmp rdi, r13
je 0x14002e82b
mov ecx, ebx
test r10d, r10d
je 0x14002e7c3
nop
mov eax, ecx
cmp qword [rbp + rax*8 + 0x158], rdi
je 0x14002e7c3
inc ecx
cmp ecx, r10d
jb 0x14002e7b0
cmp ecx, r10d
jne 0x14002e7e9
cmp r10d, 0x40
jae 0x14002e7e9
mov eax, ecx
mov qword [rbp + rax*8 + 0x158], rdi
mov r10d, dword [rbp + 0x150]
inc r10d
mov dword [rbp + 0x150], r10d
mov ecx, ebx
test edx, edx
je 0x14002e7ff
nop
mov eax, ecx
cmp qword [rsp + rax*8 + 0x48], rdi
je 0x14002e7ff
inc ecx
cmp ecx, edx
jb 0x14002e7f0
mov dword [rsp + 0x40], edx
cmp ecx, edx
jne 0x14002e824
mov dword [rsp + 0x40], edx
cmp edx, 0x40
jae 0x14002e824
mov eax, ecx
mov qword [rsp + rax*8 + 0x48], rdi
mov r8d, dword [rsp + 0x40]
inc r8d
mov dword [rsp + 0x40], r8d
cmp rdi, r11
cmova r11, rdi
mov dword [rbp + 0x360], ebx
mov r15d, ebx
cmp rsi, r13
je 0x14002e887
mov qword [rbp + 0x368], rsi
mov r15d, r12d
mov dword [rbp + 0x360], r12d
mov ecx, ebx
test r8d, r8d
je 0x14002e861
mov eax, ecx
cmp qword [rsp + rax*8 + 0x48], rsi
je 0x14002e861
inc ecx
cmp ecx, r8d
jb 0x14002e851
cmp ecx, r8d
jne 0x14002e880
cmp r8d, 0x40
jae 0x14002e880
mov eax, ecx
mov qword [rsp + rax*8 + 0x48], rsi
mov r8d, dword [rsp + 0x40]
inc r8d
mov dword [rsp + 0x40], r8d
cmp rsi, r11
cmova r11, rsi
test r10d, r10d
jne 0x14002e8d5
test r15d, r15d
jne 0x14002e8d5
test r8d, r8d
jne 0x14002e8d5
test r9, r9
jne 0x14002e8a2
mov eax, ebx
jmp 0x14002e96c
jns 0x14002e8b7
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, r13d
jmp 0x14002e96c
mov eax, 0xffffffff
mov ecx, 0xfffffffe
cmp r9, rax
cmovl ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
jmp 0x14002e96c
lea r12, [rsp + 0x30]
test r9, r9
jns 0x14002e8e4
mov r12, rbx
jmp 0x14002e92f
jle 0x14002e92a
mov rcx, r9
movabs rax, 0x624dd2f1a9fbe77
mul r9
sub rcx, rdx
shr rcx, 1
add rcx, rdx
mov edx, 0x7fffffff
shr rcx, 9
imul rax, rcx, 0x3e8
sub r9, rax
imul rax, r9, 0x3e8
cmp rcx, rdx
mov dword [rsp + 0x34], eax
cmovg rcx, rdx
mov dword [rsp + 0x30], ecx
jmp 0x14002e92f
mov qword [rsp + 0x30], rbx
test r8d, r8d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
cmove r9, rbx
lea r8, [rbp + 0x360]
test r15d, r15d
lea rdx, [rbp + 0x150]
lea ecx, [r11 + 1]
cmove r8, rbx
test r10d, r10d
cmove rdx, rbx
call qword [sym.imp.WS2_32.dll_select]
mov r12d, 1
mov r15, qword [rsp + 0x688]
test eax, eax
jns 0x14002e980
mov eax, r13d
jmp 0x14002ea17
jne 0x14002e989
xor eax, eax
jmp 0x14002ea17
cmp r14, r13
je 0x14002e9b7
lea rdx, [rbp + 0x150]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea rdx, [rsp + 0x40]
mov rcx, r14
cmovne ebx, r12d
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14002e9b7
or ebx, 4
cmp rdi, r13
je 0x14002e9e6
lea rdx, [rbp + 0x150]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14002e9d2
or ebx, 8
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14002e9e6
or ebx, 4
cmp rsi, r13
je 0x14002ea15
lea rdx, [rbp + 0x360]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14002ea01
or ebx, 2
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14002ea15
or ebx, 4
mov eax, ebx
mov r12, qword [rsp + 0x698]
mov rbx, qword [rsp + 0x6a0]
mov r13, qword [rsp + 0x690]
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1400425e0
add rsp, 0x6a8
pop r14
pop rdi
pop rsi
pop rbp
ret