Function at 0x140008d05
Capabilities:
Get socket status

Disassembly:
jmp 0x1401f08b0
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x14039ae00]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov r12d, 0x7fffffff
mov rsi, r8
cmp r9, r12
mov rdi, rdx
mov r14, rcx
cmovge r9, r12
cmp rcx, 0xffffffffffffffff
jne 0x1401f092b
cmp rdx, rcx
jne 0x1401f092b
cmp r8, rcx
jne 0x1401f092b
test r9d, r9d
je 0x1401f0924
jns 0x1401f091b
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, r14
jmp 0x1401f0bcd
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x1401f0bcd
xor ebx, ebx
mov qword [rsp + 0x688], r15
mov dword [rbp + 0x150], ebx
mov r10d, ebx
lea eax, [rbx + 1]
cmp r14, 0xffffffffffffffff
je 0x1401f095c
mov qword [rbp + 0x158], r14
mov r10d, eax
mov dword [rbp + 0x150], eax
mov qword [rsp + 0x48], r14
mov r13, 0xffffffffffffffff
mov r11, r14
cmove r11, r13
mov ecx, r10d
mov dword [rsp + 0x40], ecx
mov r8d, r10d
cmp rdi, r13
je 0x1401f0a07
mov ecx, ebx
test r10d, r10d
je 0x1401f0997
mov eax, ecx
cmp qword [rbp + rax*8 + 0x158], rdi
je 0x1401f0997
inc ecx
cmp ecx, r10d
jb 0x1401f0984
cmp ecx, r10d
jne 0x1401f09bd
cmp r10d, 0x40
jae 0x1401f09bd
mov eax, ecx
mov qword [rbp + rax*8 + 0x158], rdi
mov r10d, dword [rbp + 0x150]
inc r10d
mov dword [rbp + 0x150], r10d
mov edx, ebx
test r8d, r8d
je 0x1401f09d4
mov eax, edx
cmp qword [rsp + rax*8 + 0x48], rdi
je 0x1401f09d4
inc edx
cmp edx, r8d
jb 0x1401f09c4
mov ecx, r8d
mov dword [rsp + 0x40], ecx
cmp edx, r8d
jne 0x1401f09fb
mov dword [rsp + 0x40], ecx
cmp r8d, 0x40
jae 0x1401f09fb
mov eax, edx
mov qword [rsp + rax*8 + 0x48], rdi
mov ecx, dword [rsp + 0x40]
inc ecx
mov dword [rsp + 0x40], ecx
cmp rdi, r11
mov eax, 1
cmova r11, rdi
mov dword [rbp + 0x360], ebx
mov r15d, ebx
cmp rsi, r13
je 0x1401f0a60
mov qword [rbp + 0x368], rsi
mov r15d, eax
mov dword [rbp + 0x360], eax
mov edx, ebx
test ecx, ecx
je 0x1401f0a3f
nop dword [rax + rax]
mov eax, edx
cmp qword [rsp + rax*8 + 0x48], rsi
je 0x1401f0a3f
inc edx
cmp edx, ecx
jb 0x1401f0a30
cmp edx, ecx
jne 0x1401f0a59
cmp ecx, 0x40
jae 0x1401f0a59
mov eax, edx
mov qword [rsp + rax*8 + 0x48], rsi
mov ecx, dword [rsp + 0x40]
inc ecx
mov dword [rsp + 0x40], ecx
cmp rsi, r11
cmova r11, rsi
cmp r9, r12
cmovge r9, r12
test r10d, r10d
jne 0x1401f0aa3
test r15d, r15d
jne 0x1401f0aa3
test ecx, ecx
jne 0x1401f0aa3
test r9d, r9d
jne 0x1401f0a81
mov eax, ebx
jmp 0x1401f0b20
jns 0x1401f0a96
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, r13d
jmp 0x1401f0b20
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
jmp 0x1401f0b20
lea r12, [rsp + 0x30]
test r9, r9
jns 0x1401f0ab2
mov r12, rbx
jmp 0x1401f0aea
jle 0x1401f0ae0
mov eax, 0x10624dd3
imul r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r9d, eax
imul eax, r9d, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x1401f0aea
test r9, r9
jne 0x1401f0aea
mov qword [rsp + 0x30], rbx
test ecx, ecx
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 r15, qword [rsp + 0x688]
test eax, eax
jns 0x1401f0b34
mov eax, r13d
jmp 0x1401f0bcf
jne 0x1401f0b3d
xor eax, eax
jmp 0x1401f0bcf
cmp r14, r13
je 0x1401f0b6f
lea rdx, [rbp + 0x150]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea rdx, [rsp + 0x40]
mov eax, 1
mov rcx, r14
cmovne ebx, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f0b6f
or ebx, 4
cmp rdi, r13
je 0x1401f0b9e
lea rdx, [rbp + 0x150]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f0b8a
or ebx, 8
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f0b9e
or ebx, 4
cmp rsi, r13
je 0x1401f0bcd
lea rdx, [rbp + 0x360]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f0bb9
or ebx, 2
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401f0bcd
or ebx, 4
mov eax, ebx
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1400048e5
add rsp, 0x690
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret