Function at 0x1400125a0
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 0x14001262b
cmp dword [rcx + 0x20], 0
ja 0x14001262b
cmp qword [rcx + 0x50], 0
jne 0x14001262b
movsd xmm0, qword [0x1402b3c28]
xor esi, esi
mov edi, esi
call fcn.140018200
mov qword [rbx + 0x40], rax
cmp dword [rbx + 0x30], 0
je 0x1400125fe
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 [0x1402b3c28]
mov edi, 1
movsd xmm6, qword [0x1402b3c40]
xor esi, esi
movabs r12, 0x8000000000000000
xorps xmm7, xmm7
cmp dword [rbx + 0x30], esi
jne 0x1400125f5
movsd xmm0, qword [0x1402f1338]
ucomisd xmm0, xmm7
jp 0x14001266a
jne 0x14001266a
mov rax, rsi
jmp 0x1400126b8
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
jne 0x140012681
mov rax, rsi
jmp 0x1400126b8
xorps xmm0, xmm0
xor ecx, ecx
cvtsi2sd xmm0, qword [rsp + 0xd8]
mulsd xmm0, qword [0x1402f1338]
mulsd xmm0, xmm8
comisd xmm0, xmm6
jb 0x1400126b0
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400126b0
mov rcx, r12
cvttsd2si rax, xmm0
add rax, rcx
mov rcx, rbx
mov qword [rbx + 0x40], rax
call fcn.140016ed0
mov rcx, rbx
call fcn.1400116b0
mov rcx, qword [rbx + 0x70]
mov ebp, eax
mov qword [rbx + 0x88], rcx
test rcx, rcx
je 0x140012701
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 0x1400126e0
mov rax, qword [rbx + 0x60]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x140012728
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 0x140012710
mov edi, esi
cmp r13d, 1
jne 0x140012736
test ebp, ebp
je 0x14001273b
jmp 0x140012745
test r13d, r13d
jne 0x140012745
mov rcx, rbx
call fcn.140012330
mov edi, eax
cmp qword [0x1402f15f8], rsi
je 0x14001275d
mov edx, edi
mov rcx, rbx
call fcn.140012390
jmp 0x1400128fc
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 0x140012870
lea ebp, [rcx + 1]
nop
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x102
jne 0x14001296b
test edi, edi
je 0x1400128fc
movsd xmm0, qword [0x1402f1338]
ucomisd xmm0, xmm7
jp 0x1400127ce
jne 0x1400127ce
mov rax, rsi
jmp 0x140012816
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
jne 0x1400127e2
mov rax, rsi
jmp 0x140012816
xorps xmm0, xmm0
xor ecx, ecx
cvtsi2sd xmm0, qword [rsp + 0x30]
mulsd xmm0, qword [0x1402f1338]
mulsd xmm0, xmm8
comisd xmm0, xmm6
jb 0x14001280e
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x14001280e
mov rcx, r12
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rbx + 0x40], rax
cmp r14, rax
jbe 0x1400128fc
mov edi, r14d
sub edi, eax
test r15d, r15d
je 0x140012833
mov eax, ebp
ror eax, 1
jmp 0x140012835
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 0x1400127a0
add rcx, 0xffffffffffffffc0
mov qword [rcx + 0x68], rsi
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x140012893
mov rax, qword [rax + 0x68]
mov qword [rcx + 0x68], rax
mov rax, qword [rbx + 0x48]
mov qword [rax + 0x68], rcx
jmp 0x140012897
mov qword [rcx + 0x68], rcx
mov qword [rbx + 0x48], rcx
movsd xmm0, qword [0x1402f1338]
ucomisd xmm0, xmm7
jp 0x1400128b0
jne 0x1400128b0
mov rax, rsi
jmp 0x1400128f8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
jne 0x1400128c4
mov rax, rsi
jmp 0x1400128f8
xorps xmm0, xmm0
xor ecx, ecx
cvtsi2sd xmm0, qword [rsp + 0x40]
mulsd xmm0, qword [0x1402f1338]
mulsd xmm0, xmm8
comisd xmm0, xmm6
jb 0x1400128f0
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400128f0
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 0x140012931
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 0x140012910
mov rcx, rbx
call fcn.140011420
cmp r13d, 1
jne 0x140012947
mov rcx, rbx
call fcn.140016ed0
mov rcx, rbx
call fcn.140012580
lea ecx, [r13 - 1]
mov edi, eax
cmp ecx, 1
jbe 0x1400125f5
test eax, eax
jne 0x140012650
jmp 0x1400125f5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b2d00]
call fcn.140023220
int3