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

Disassembly:
cmp ecx, 1
jl 0x14006bd6c
mov r11, rsp
push rbp
push rsi
push r14
sub rsp, 0x100
movaps xmmword [r11 - 0x58], xmm7
movaps xmmword [r11 - 0x68], xmm8
movaps xmmword [r11 - 0x78], xmm9
movaps xmmword [r11 - 0x88], xmm10
mov rax, qword [0x140086040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r11 + 0x20], rbx
mov r14d, r8d
mov qword [r11 - 0x20], rdi
mov ebp, edx
mov qword [r11 - 0x28], r12
xorps xmm9, xmm9
mov qword [r11 - 0x30], r13
xorps xmm8, xmm8
mov qword [r11 - 0x38], r15
xorps xmm7, xmm7
movaps xmmword [r11 - 0x48], xmm6
xorps xmm10, xmm10
movsd xmm6, qword [0x14007a000]
mov r13d, r8d
mov esi, ecx
movaps xmmword [r11 - 0x98], xmm11
mov r12d, esi
movaps xmmword [rsp + 0x70], xmm12
mov r15d, esi
movaps xmmword [rsp + 0x60], xmm13
movaps xmmword [rsp + 0x50], xmm14
movd xmm14, esi
cvtdq2pd xmm14, xmm14
mov dword [rsp + 0x30], edx
nop word [rax + rax]
movd xmm0, ebp
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm14
comisd xmm0, xmm9
jb 0x14006baff
addsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
jmp 0x14006bb08
subsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si eax, xmm0
movd xmm0, r14d
cvtdq2pd xmm0, xmm0
movd xmm13, eax
divsd xmm0, xmm14
cvtdq2pd xmm13, xmm13
comisd xmm0, xmm9
jb 0x14006bb36
addsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
jmp 0x14006bb3f
subsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si eax, xmm0
movd xmm11, esi
cvtdq2pd xmm11, xmm11
movd xmm12, eax
cvtdq2pd xmm12, xmm12
divsd xmm11, xmm14
comisd xmm12, xmm9
movaps xmm0, xmm12
jb 0x14006bb72
addsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
jmp 0x14006bb7b
subsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
comisd xmm7, xmm9
cvttsd2si ebx, xmm0
jb 0x14006bb94
addsd xmm7, xmm6
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
jmp 0x14006bba0
subsd xmm7, xmm6
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si eax, xmm0
sub ebx, eax
comisd xmm8, xmm9
jb 0x14006bbbd
addsd xmm8, xmm6
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
jmp 0x14006bbcb
subsd xmm8, xmm6
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
comisd xmm13, xmm9
cvttsd2si edi, xmm0
movaps xmm0, xmm13
jb 0x14006bbe5
addsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
jmp 0x14006bbee
subsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si edx, xmm0
xor r9d, r9d
mov r8d, ebx
sub edx, edi
xor edi, edi
mov qword [rsp + 0x20], rdi
lea ecx, [rdi + 1]
call qword [sym.imp.USER32.dll_mouse_event]
comisd xmm11, xmm9
movaps xmm0, xmm11
jb 0x14006bc20
addsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
jmp 0x14006bc29
subsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
comisd xmm10, xmm9
cvttsd2si ebx, xmm0
jb 0x14006bc44
addsd xmm10, xmm6
movaps xmm0, xmm10
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
jmp 0x14006bc52
subsd xmm10, xmm6
movaps xmm0, xmm10
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
lea rcx, [rsp + 0x40]
movaps xmm7, xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [rsp + 0x38]
imul qword [rsp + 0x40]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cvttsd2si eax, xmm7
sub ebx, eax
mov rax, qword [rsp + 0x38]
cqo
movsxd rbx, ebx
idiv qword [rsp + 0x40]
mov qword [rsp + 0x38], rdi
add rbx, rax
test rbx, rbx
jle 0x14006bcd1
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
cqo
idiv qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
cmp rax, rbx
jl 0x14006bcb0
add ebp, dword [rsp + 0x30]
add r14d, r13d
add esi, r12d
movaps xmm8, xmm13
movaps xmm7, xmm12
movaps xmm10, xmm11
sub r15, 1
jne 0x14006bae0
movaps xmm14, xmmword [rsp + 0x50]
movaps xmm13, xmmword [rsp + 0x60]
movaps xmm12, xmmword [rsp + 0x70]
movaps xmm11, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0xd0]
mov r15, qword [rsp + 0xe0]
mov r13, qword [rsp + 0xe8]
mov r12, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006bfe0
lea r11, [rsp + 0x100]
movaps xmm7, xmmword [r11 - 0x40]
movaps xmm8, xmmword [r11 - 0x50]
movaps xmm9, xmmword [r11 - 0x60]
movaps xmm10, xmmword [r11 - 0x70]
mov rsp, r11
pop r14
pop rsi
pop rbp
ret