Function at 0x1401a9ce0
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 [0x1402aa298]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor edi, edi
mov eax, 0x7fffffff
mov rsi, r9
cmp r9, rax
mov r13, r8
mov r12, rdx
cmovge rsi, rax
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x30], rdi
mov r14d, edi
cmp rcx, 0xffffffffffffffff
jne 0x1401a9d4f
cmp rdx, rcx
jne 0x1401a9d4f
cmp r8, rcx
jne 0x1401a9d4f
mov ecx, esi
call fcn.1401a9cb0
jmp 0x1401aa01c
mov qword [rsp + 0x698], rbx
test rsi, rsi
jle 0x1401a9d69
mov r14d, esi
call fcn.1401b65a0
mov rbx, rax
jmp 0x1401a9d6e
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 r15, r8
je 0x1401a9da8
mov qword [rsp + 0x58], r15
mov r9d, eax
mov dword [rsp + 0x50], eax
mov qword [rbp + 0x378], r15
mov ecx, eax
mov dword [rbp + 0x370], eax
mov r8, r15
cmp r12, 0xffffffffffffffff
je 0x1401a9e3a
mov eax, edi
test r9d, r9d
je 0x1401a9dd0
lea rdx, [rsp + 0x58]
nop
cmp qword [rdx], r12
je 0x1401a9dd0
inc eax
add rdx, 8
cmp eax, r9d
jb 0x1401a9dc0
cmp eax, r9d
jne 0x1401a9ded
cmp r9d, 0x40
jae 0x1401a9ded
mov qword [rsp + rax*8 + 0x58], r12
mov r9d, dword [rsp + 0x50]
inc r9d
mov dword [rsp + 0x50], r9d
mov eax, edi
test ecx, ecx
je 0x1401a9e0f
lea rdx, [rbp + 0x378]
nop word [rax + rax]
cmp qword [rdx], r12
je 0x1401a9e0f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x1401a9e00
cmp eax, ecx
jne 0x1401a9e2e
cmp ecx, 0x40
jae 0x1401a9e2e
mov qword [rbp + rax*8 + 0x378], r12
mov ecx, dword [rbp + 0x370]
inc ecx
mov dword [rbp + 0x370], ecx
cmp r12, r8
mov eax, 1
cmova r8, r12
mov dword [rbp + 0x160], edi
cmp r13, 0xffffffffffffffff
je 0x1401a9e8d
mov dword [rbp + 0x160], eax
mov qword [rbp + 0x168], r13
mov eax, edi
test ecx, ecx
je 0x1401a9e6f
lea rdx, [rbp + 0x378]
cmp qword [rdx], r13
je 0x1401a9e6f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x1401a9e60
cmp eax, ecx
jne 0x1401a9e86
cmp ecx, 0x40
jae 0x1401a9e86
mov qword [rbp + rax*8 + 0x378], r13
inc dword [rbp + 0x370]
cmp r13, r8
cmova r8, r13
lea r15, [rsp + 0x30]
lea ecx, [r8 + 1]
test rsi, rsi
cmovs r15, rdi
mov dword [rsp + 0x38], ecx
test rsi, rsi
jle 0x1401a9ed3
mov eax, 0x10624dd3
imul r14d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r14d
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x1401a9eda
jne 0x1401a9eda
mov qword [rsp + 0x30], rdi
cmp dword [rbp + 0x160], edi
lea r8, [rbp + 0x160]
lea rdx, [rsp + 0x50]
cmove r8, rdi
test r9d, r9d
lea r9, [rbp + 0x370]
cmove rdx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1401a9f63
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1401a9f27
cmp dword [0x1402b75f8], edi
jne 0x1401a9f67
cmp eax, 0x2714
jne 0x1401a9f67
test rsi, rsi
jg 0x1401a9f3a
mov r9d, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
jmp 0x1401a9ea1
call fcn.1401b65a0
mov rdx, rbx
mov rcx, rax
call fcn.1401b65e0
mov r14d, esi
sub r14d, eax
test r14d, r14d
jle 0x1401a9f71
mov r9d, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
jmp 0x1401a9ea1
test eax, eax
jns 0x1401a9f6f
or eax, 0xffffffff
jmp 0x1401aa014
jne 0x1401a9f78
xor eax, eax
jmp 0x1401aa014
mov rbx, qword [rsp + 0x40]
cmp rbx, 0xffffffffffffffff
je 0x1401a9fb0
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 0x1401a9fb0
or edi, 4
cmp r12, 0xffffffffffffffff
je 0x1401a9fe0
lea rdx, [rsp + 0x50]
mov rcx, r12
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401a9fca
or edi, 8
lea rdx, [rbp + 0x370]
mov rcx, r12
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401a9fe0
or edi, 4
cmp r13, 0xffffffffffffffff
je 0x1401aa012
lea rdx, [rbp + 0x160]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401a9ffc
or edi, 2
lea rdx, [rbp + 0x370]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401aa012
or edi, 4
mov eax, edi
mov rbx, qword [rsp + 0x698]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14018e7b0
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret