Function at 0x1400c11e0
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x140153200]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rsi, r8
mov rdi, rdx
mov r8d, 0x7fffffff
mov r14, rcx
cmp r9, r8
cmovge r9, r8
cmp rcx, 0xffffffffffffffff
jne 0x1400c125d
cmp rdx, rcx
jne 0x1400c125d
cmp rsi, rcx
jne 0x1400c125d
test r9d, r9d
je 0x1400c1254
jns 0x1400c124b
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, r14
mov eax, ebx
jmp 0x1400c1501
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov eax, ebx
jmp 0x1400c1501
xor ebx, ebx
mov qword [rsp + 0x690], r13
mov qword [rsp + 0x688], r15
mov ecx, ebx
mov dword [rsp + 0x40], ebx
mov r10d, ebx
mov dword [rbp + 0x150], ebx
lea r13d, [rbx + 1]
cmp r14, 0xffffffffffffffff
je 0x1400c12a5
mov ecx, r13d
mov qword [rbp + 0x158], r14
mov dword [rsp + 0x40], ecx
mov r10d, r13d
mov dword [rbp + 0x150], r13d
mov qword [rsp + 0x48], r14
mov r12, 0xffffffffffffffff
mov r11, r14
cmove r11, r12
cmp rdi, r12
je 0x1400c1330
mov edx, ebx
test r10d, r10d
je 0x1400c12d3
nop
mov eax, edx
cmp qword [rbp + rax*8 + 0x158], rdi
je 0x1400c12d3
inc edx
cmp edx, r10d
jb 0x1400c12c0
cmp edx, r10d
jne 0x1400c12f9
cmp r10d, 0x40
jae 0x1400c12f9
mov eax, edx
mov qword [rbp + rax*8 + 0x158], rdi
mov r10d, dword [rbp + 0x150]
inc r10d
mov dword [rbp + 0x150], r10d
mov edx, ebx
test ecx, ecx
je 0x1400c130f
nop
mov eax, edx
cmp qword [rsp + rax*8 + 0x48], rdi
je 0x1400c130f
inc edx
cmp edx, ecx
jb 0x1400c1300
cmp edx, ecx
jne 0x1400c1329
cmp ecx, 0x40
jae 0x1400c1329
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
cmova r11, rdi
mov dword [rbp + 0x360], ebx
mov r15d, ebx
cmp rsi, r12
je 0x1400c1385
mov qword [rbp + 0x368], rsi
mov r15d, r13d
mov dword [rbp + 0x360], r13d
mov edx, ebx
test ecx, ecx
je 0x1400c1364
mov eax, edx
cmp qword [rsp + rax*8 + 0x48], rsi
je 0x1400c1364
inc edx
cmp edx, ecx
jb 0x1400c1355
cmp edx, ecx
jne 0x1400c137e
cmp ecx, 0x40
jae 0x1400c137e
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, r8
cmovge r9, r8
test r10d, r10d
jne 0x1400c13cb
test r15d, r15d
jne 0x1400c13cb
test ecx, ecx
jne 0x1400c13cb
test r9d, r9d
jne 0x1400c13a6
mov eax, ebx
jmp 0x1400c144e
jns 0x1400c13bb
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, r12d
jmp 0x1400c144e
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
jmp 0x1400c144e
lea r13, [rsp + 0x30]
test r9, r9
jns 0x1400c13da
mov r13, rbx
jmp 0x1400c1412
jle 0x1400c1408
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 0x1400c1412
test r9, r9
jne 0x1400c1412
mov qword [rsp + 0x30], rbx
test ecx, ecx
mov qword [rsp + 0x20], r13
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 r13d, 1
mov r15, qword [rsp + 0x688]
test eax, eax
jns 0x1400c1462
mov eax, r12d
jmp 0x1400c14f9
jne 0x1400c146b
xor eax, eax
jmp 0x1400c14f9
cmp r14, r12
je 0x1400c1499
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, r13d
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c1499
or ebx, 4
cmp rdi, r12
je 0x1400c14c8
lea rdx, [rbp + 0x150]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c14b4
or ebx, 8
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c14c8
or ebx, 4
cmp rsi, r12
je 0x1400c14f7
lea rdx, [rbp + 0x360]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c14e3
or ebx, 2
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c14f7
or ebx, 4
mov eax, ebx
mov r13, qword [rsp + 0x690]
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1400ed9d0
add rsp, 0x698
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret