Function at 0x1400121a0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
cmp dword [rcx + 8], 0
mov r13d, edx
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rcx
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
ja 0x14001222b
cmp dword [rcx + 0x20], 0
ja 0x14001222b
cmp qword [rcx + 0x50], 0
jne 0x14001222b
movsd xmm0, qword [0x140111e28]
xor esi, esi
mov edi, esi
call fcn.14000cb30
mov qword [rbx + 0x40], rax
cmp dword [rbx + 0x30], 0
je 0x1400121fe
mov dword [rbx + 0x30], esi
mov rbx, qword [rsp + 0xc8]
mov eax, edi
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x50]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsd xmm8, qword [0x140111e28]
mov edi, 1
movsd xmm6, qword [0x140111e38]
xor esi, esi
movabs r12, 0x8000000000000000
xorps xmm7, xmm7
cmp dword [rbx + 0x30], esi
jne 0x1400121f5
movsd xmm0, qword [0x14043efd0]
ucomisd xmm0, xmm7
jp 0x14001226a
jne 0x14001226a
mov rax, rsi
jmp 0x1400122b8
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x140012281
mov rax, rsi
jmp 0x1400122b8
xorps xmm0, xmm0
xor ecx, ecx
cvtsi2sd xmm0, qword [rsp + 0xd8]
mulsd xmm0, qword [0x14043efd0]
mulsd xmm0, xmm8
comisd xmm0, xmm6
jb 0x1400122b0
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400122b0
mov rcx, r12
cvttsd2si rax, xmm0
add rax, rcx
mov rcx, rbx
mov qword [rbx + 0x40], rax
call fcn.140010bf0
mov rcx, rbx
call fcn.140011230
mov rcx, qword [rbx + 0x70]
mov ebp, eax
mov qword [rbx + 0x88], rcx
test rcx, rcx
je 0x140012301
nop
mov rdx, qword [rbx + 0x88]
mov rcx, qword [rdx + 0x68]
mov qword [rbx + 0x88], rcx
mov rcx, rdx
call qword [rdx + reloc.WS2_32.dll_WSASetLastError]
cmp qword [rbx + 0x88], rsi
jne 0x1400122e0
mov rax, qword [rbx + 0x60]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x140012328
nop
mov rdx, qword [rbx + 0x78]
mov rcx, rdx
mov rax, qword [rdx + 0x68]
mov qword [rbx + 0x78], rax
call qword [rdx + reloc.WS2_32.dll_WSASetLastError]
cmp qword [rbx + 0x78], rsi
jne 0x140012310
mov edi, esi
cmp r13d, 1
jne 0x140012336
test ebp, ebp
je 0x14001233b
jmp 0x140012345
test r13d, r13d
jne 0x140012345
mov rcx, rbx
call fcn.140011f30
mov edi, eax
cmp qword [0x14043f298], rsi
je 0x14001235d
mov edx, edi
mov rcx, rbx
call fcn.140011f90
jmp 0x1400124fc
mov rcx, qword [rbx + 0x38]
lea r9, [rsp + 0xd0]
mov r14d, edi
lea r8, [rsp + 0x38]
add r14, qword [rbx + 0x40]
lea rdx, [rsp + 0xc0]
mov r15d, esi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
jne 0x140012470
lea ebp, [rcx + 1]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x14001256b
test edi, edi
je 0x1400124fc
movsd xmm0, qword [0x14043efd0]
ucomisd xmm0, xmm7
jp 0x1400123ce
jne 0x1400123ce
mov rax, rsi
jmp 0x140012416
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400123e2
mov rax, rsi
jmp 0x140012416
xorps xmm0, xmm0
xor ecx, ecx
cvtsi2sd xmm0, qword [rsp + 0x30]
mulsd xmm0, qword [0x14043efd0]
mulsd xmm0, xmm8
comisd xmm0, xmm6
jb 0x14001240e
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x14001240e
mov rcx, r12
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rbx + 0x40], rax
cmp r14, rax
jbe 0x1400124fc
mov edi, r14d
sub edi, eax
test r15d, r15d
je 0x140012433
mov eax, ebp
ror eax, 1
jmp 0x140012435
mov eax, esi
mov rcx, qword [rbx + 0x38]
lea r9, [rsp + 0xd0]
add edi, eax
rol ebp, 1
lea r8, [rsp + 0x38]
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0xc0]
inc r15d
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x1400123a0
add rcx, 0xffffffffffffffc0
mov qword [rcx + 0x68], rsi
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x140012493
mov rax, qword [rax + 0x68]
mov qword [rcx + 0x68], rax
mov rax, qword [rbx + 0x48]
mov qword [rax + 0x68], rcx
jmp 0x140012497
mov qword [rcx + 0x68], rcx
mov qword [rbx + 0x48], rcx
movsd xmm0, qword [0x14043efd0]
ucomisd xmm0, xmm7
jp 0x1400124b0
jne 0x1400124b0
mov rax, rsi
jmp 0x1400124f8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400124c4
mov rax, rsi
jmp 0x1400124f8
xorps xmm0, xmm0
xor ecx, ecx
cvtsi2sd xmm0, qword [rsp + 0x40]
mulsd xmm0, qword [0x14043efd0]
mulsd xmm0, xmm8
comisd xmm0, xmm6
jb 0x1400124f0
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400124f0
mov rcx, r12
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rbx + 0x40], rax
mov rax, qword [rbx + 0x68]
mov qword [rbx + 0x80], rax
test rax, rax
je 0x140012531
nop dword [rax]
mov rdx, qword [rbx + 0x80]
mov rcx, rdx
mov rax, qword [rdx + 0x68]
mov qword [rbx + 0x80], rax
call qword [rdx + reloc.WS2_32.dll_WSASetLastError]
cmp qword [rbx + 0x80], rsi
jne 0x140012510
mov rcx, rbx
call fcn.140010f90
cmp r13d, 1
jne 0x140012547
mov rcx, rbx
call fcn.140010bf0
mov rcx, rbx
call fcn.140012180
lea ecx, [r13 - 1]
mov edi, eax
cmp ecx, 1
jbe 0x1400121f5
test eax, eax
jne 0x140012250
jmp 0x1400121f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x1401119a0]
call fcn.140016450
int3