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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
mov rdi, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rbp, [rsp + 0x30]
lea rsi, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rcx, rbp
call rdi
mov rbx, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, rsi
call rbx
mov rax, qword [rsp + 0x30]
test rax, rax
js 0x140019bb0
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x38]
test rax, rax
js 0x140019bd7
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
movsd xmm7, qword [0x1400571a0]
movsd xmm6, qword [0x1400571a8]
mulsd xmm0, xmm7
comisd xmm0, xmm6
jae 0x140019b28
cvttsd2si r14, xmm0
mov qword [rsp + 0x30], 0
mov rcx, rbp
mov qword [rsp + 0x38], 0
call rdi
mov rcx, rsi
call rbx
mov rax, qword [rsp + 0x30]
test rax, rax
js 0x140019c60
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x38]
test rax, rax
js 0x140019c40
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
mulsd xmm0, xmm7
comisd xmm0, xmm6
jae 0x140019b10
cvttsd2si r12, xmm0
movabs r13, 0x8000000000000000
mov ecx, 0x1c8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400199b0
cvttsd2si rax, xmm0
sub rax, r12
cmp rax, 0x6f854
ja 0x140019a1f
mov qword [rsp + 0x30], 0
mov rcx, rbp
mov qword [rsp + 0x38], 0
call rdi
mov rcx, rsi
call rbx
mov rax, qword [rsp + 0x30]
test rax, rax
js 0x140019af0
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x38]
test rax, rax
js 0x140019ad0
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
mulsd xmm0, xmm7
comisd xmm0, xmm6
jb 0x1400199a0
subsd xmm0, xmm6
cvttsd2si rax, xmm0
xor rax, r13
sub rax, r12
cmp rax, 0x6f854
jbe 0x1400199b0
mov qword [rsp + 0x30], 0
mov rcx, rbp
mov qword [rsp + 0x38], 0
call rdi
mov rcx, rsi
call rbx
mov rax, qword [rsp + 0x30]
test rax, rax
js 0x140019c20
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x38]
test rax, rax
js 0x140019bf8
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
mulsd xmm0, xmm7
comisd xmm0, xmm6
jae 0x140019b40
cvttsd2si rax, xmm0
sub rax, r14
js 0x140019b57
pxor xmm2, xmm2
movsd xmm0, qword [0x1400571b8]
cvtsi2sd xmm2, rax
comisd xmm0, xmm2
ja 0x140019b82
xor eax, eax
comisd xmm2, xmmword [0x1400571c0]
ja 0x140019c80
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
jmp 0x1400199fa
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
jmp 0x1400199e3
subsd xmm0, xmm6
cvttsd2si r12, xmm0
btc r12, 0x3f
jmp 0x140019982
subsd xmm0, xmm6
cvttsd2si r14, xmm0
btc r14, 0x3f
jmp 0x140019921
subsd xmm0, xmm6
cvttsd2si rax, xmm0
btc rax, 0x3f
sub rax, r14
jns 0x140019a89
mov rdx, rax
and eax, 1
pxor xmm2, xmm2
movsd xmm0, qword [0x1400571b8]
shr rdx, 1
or rdx, rax
cvtsi2sd xmm2, rdx
addsd xmm2, xmm2
comisd xmm0, xmm2
jbe 0x140019aa4
mov ecx, 2
call qword [dbg.__acrt_iob_func]
lea rdx, str.timing_error__long_delay_n
mov rcx, rax
call sym.fprintf_18
mov eax, 1
jmp 0x140019ab4
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
mov rax, qword [rsp + 0x38]
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
test rax, rax
jns 0x1400198f1
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
jmp 0x1400198fa
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
jmp 0x140019a69
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
jmp 0x140019a52
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
jmp 0x14001996b
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
jmp 0x140019954
mulsd xmm2, qword [0x1400571c8]
mov ecx, 2
divsd xmm2, qword [0x1400571d0]
movsd qword [rsp + 0x28], xmm2
call qword [dbg.__acrt_iob_func]
mov r8, qword [rsp + 0x28]
lea rdx, str.timing_error__long_delay__5.0f___n
mov rcx, rax
movq xmm2, r8
call sym.fprintf_18
jmp 0x140019b9c