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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400e1300]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rdx
mov rdi, rcx
lea rcx, [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
mov rax, qword [rdi + 0x40]
cmp qword [rbp - 0x71], rax
jl 0x14004ccc5
mov al, byte [rdi + 0x71]
xor esi, esi
test al, al
jne 0x14004ccc5
mov al, byte [rdi + 0x70]
test al, al
jne 0x14004ccc5
lea ebx, [rsi + 1]
mov eax, ebx
xchg byte [rdi + 0x71], al
xorps xmm0, xmm0
movss dword [rbp - 0x79], xmm0
lea r14, [rdi + 0x78]
lea r8, [rbp - 0x79]
movss xmm1, dword [r15 + 8]
mov rcx, r14
call fcn.14004bffc
test al, al
je 0x14004cc64
movss xmm0, dword [rdi + 0x48]
movss xmm6, dword [rbp - 0x79]
comiss xmm0, xmm6
ja 0x14004cbb7
comiss xmm6, dword [rdi + 0x4c]
ja 0x14004cbb7
add dword [rdi + 0x54], ebx
call fcn.140007fc8
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004cb22
cmp dword [rcx], esi
jbe 0x14004cb22
call fcn.140007fc8
movss dword [rsp + 0x28], xmm6
mov eax, dword [rdi + 0x5c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x60]
mov r8d, dword [rdi + 0x54]
xor edx, edx
call fcn.14004d2c4
mov eax, dword [rdi + 0x58]
cmp dword [rdi + 0x54], eax
jb 0x14004cc89
mov eax, dword [rdi + 0x5c]
cmp dword [rdi + 0x60], eax
je 0x14004cc89
xchg byte [rdi + 0x70], bl
mov qword [rbp - 0x59], rdi
movss xmm0, dword [rbp - 0x79]
movss dword [rbp - 0x51], xmm0
movups xmm1, xmmword [rbp - 0x59]
movaps xmmword [rbp - 0x59], xmm1
lea rax, [0x1400a29f0]
mov qword [rbp - 0x29], rax
movdqu xmmword [rbp - 0x21], xmm1
lea rax, [rbp - 0x29]
mov qword [rbp + 0xf], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.14000aa98
nop
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x14004cb99
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [0x1400aa8c0]
lea rcx, [rdi + 0x88]
lea rdx, [rbp - 0x41]
call fcn.14004d5ec
lea rcx, [rbp - 0x41]
call fcn.14000b4dc
jmp 0x14004cc89
mov dword [rdi + 0x54], esi
mov edx, esi
mov rax, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x28]
jmp 0x14004cbe2
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jb 0x14004cbd9
movss dword [rdi + 0x48], xmm0
mov edx, dword [rax]
jmp 0x14004cbde
comiss xmm0, xmm6
ja 0x14004cbe9
add rax, 8
cmp rax, rcx
jne 0x14004cbc6
jmp 0x14004cbee
movss dword [rdi + 0x4c], xmm0
cmp edx, dword [rcx - 8]
jne 0x14004cbf9
mov eax, dword [rdi + 0x48]
mov dword [rdi + 0x4c], eax
mov dword [rdi + 0x5c], edx
mov rax, qword [r14]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [r14]
mov qword [rax + 8], rax
mov qword [r14 + 8], rsi
cmp rcx, qword [r14]
je 0x14004cc25
mov rbx, qword [rcx]
call fcn.1400986c0
mov rcx, rbx
cmp rbx, qword [r14]
jne 0x14004cc15
cvttss2si rbx, dword [rdi + 0x4c]
cvttss2si r14, dword [rdi + 0x48]
call fcn.140007fc8
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004cc89
cmp dword [rcx], esi
jbe 0x14004cc89
call fcn.140007fc8
movss dword [rsp + 0x28], xmm6
mov eax, dword [rdi + 0x5c]
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, r14d
xor edx, edx
call fcn.14004d3d0
jmp 0x14004cc89
call fcn.140007fc8
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004cc89
cmp dword [rcx], esi
jbe 0x14004cc89
call fcn.140007fc8
lea r8, str.Not_enough_samples.
xor edx, edx
call fcn.14004d0bc
lea rcx, [rbp - 0x69]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
mov ecx, dword [rdi + 0x38]
imul rcx, qword [0x1400e23f8]
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
add rdx, qword [rbp - 0x69]
mov qword [rdi + 0x40], rdx
xchg byte [rdi + 0x71], sil
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140098120
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret