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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1400e5470]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rdi, rcx
lea rcx, [rbp - 0x61]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
mov rax, qword [rdi + 0x40]
cmp qword [rbp - 0x61], rax
jl 0x14004e9e7
mov al, byte [rdi + 0x71]
xor esi, esi
test al, al
jne 0x14004e9e7
mov al, byte [rdi + 0x70]
test al, al
jne 0x14004e9e7
lea ebx, [rsi + 1]
mov eax, ebx
xchg byte [rdi + 0x71], al
xorps xmm0, xmm0
movss dword [rbp - 0x69], xmm0
lea r14, [rdi + 0x78]
lea r8, [rbp - 0x69]
movss xmm1, dword [r15 + 8]
mov rcx, r14
call fcn.14004dd18
test al, al
je 0x14004e986
movss xmm0, dword [rdi + 0x48]
movss xmm6, dword [rbp - 0x69]
comiss xmm0, xmm6
ja 0x14004e8d9
comiss xmm6, dword [rdi + 0x4c]
ja 0x14004e8d9
add dword [rdi + 0x54], ebx
call fcn.140008200
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004e844
cmp dword [rcx], esi
jbe 0x14004e844
call fcn.140008200
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.14004efb4
mov eax, dword [rdi + 0x58]
cmp dword [rdi + 0x54], eax
jb 0x14004e9ab
mov eax, dword [rdi + 0x5c]
cmp dword [rdi + 0x60], eax
je 0x14004e9ab
xchg byte [rdi + 0x70], bl
mov qword [rbp - 0x49], rdi
movss xmm0, dword [rbp - 0x69]
movss dword [rbp - 0x41], xmm0
movups xmm1, xmmword [rbp - 0x49]
movaps xmmword [rbp - 0x49], xmm1
lea rax, [0x1400a4d90]
mov qword [rbp - 0x19], rax
movdqu xmmword [rbp - 0x11], xmm1
lea rax, [rbp - 0x19]
mov qword [rbp + 0x1f], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x31]
call fcn.14000ad98
nop
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x14004e8bb
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14009c17e.0]
lea rcx, [rdi + 0x88]
lea rdx, [rbp - 0x31]
call fcn.14004f2dc
lea rcx, [rbp - 0x31]
call fcn.14000b7fc
jmp 0x14004e9ab
mov dword [rdi + 0x54], esi
mov ecx, esi
mov rax, qword [rdi + 0x20]
mov rdx, qword [rdi + 0x28]
jmp 0x14004e904
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jb 0x14004e8fb
movss dword [rdi + 0x48], xmm0
mov ecx, dword [rax]
jmp 0x14004e900
comiss xmm0, xmm6
ja 0x14004e90b
add rax, 8
cmp rax, rdx
jne 0x14004e8e8
jmp 0x14004e910
movss dword [rdi + 0x4c], xmm0
cmp ecx, dword [rdx - 8]
jne 0x14004e91b
mov eax, dword [rdi + 0x48]
mov dword [rdi + 0x4c], eax
mov dword [rdi + 0x5c], ecx
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 0x14004e947
mov rbx, qword [rcx]
call fcn.14009b410
mov rcx, rbx
cmp rbx, qword [r14]
jne 0x14004e937
cvttss2si rbx, dword [rdi + 0x4c]
cvttss2si r14, dword [rdi + 0x48]
call fcn.140008200
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004e9ab
cmp dword [rcx], esi
jbe 0x14004e9ab
call fcn.140008200
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.14004f0c0
jmp 0x14004e9ab
call fcn.140008200
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004e9ab
cmp dword [rcx], esi
jbe 0x14004e9ab
call fcn.140008200
lea r8, str.Not_enough_samples.
xor edx, edx
call fcn.14004eda8
lea rcx, [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
mov ecx, dword [rdi + 0x38]
imul rcx, qword [0x1400e6508]
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
add rdx, qword [rbp - 0x59]
mov qword [rdi + 0x40], rdx
xchg byte [rdi + 0x71], sil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14009ae70
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret