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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x88], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x80], xmm4
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
mov dword [rbp + 0x20], r8d
mov dword [rbp + 0x28], r9d
mov ebx, r9d
mov esi, dword [rbp + 0x30]
lea rcx, [0x1402c6e10]
call fcn.140004630
xor ecx, ecx
mov qword [rax + 8], rcx
mov byte [rax + 0x18], 0
mov qword [rax + 0x10], rcx
mov qword [rbp - 0x90], rax
lea rcx, [rbp - 0x48]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x90]
mov qword [rax + 0x10], rcx
mov byte [rax + 0x18], 1
lea rcx, [0x1402c6e10]
call fcn.140004630
xor ecx, ecx
mov qword [rax + 8], rcx
mov byte [rax + 0x18], 0
mov qword [rax + 0x10], rcx
mov qword [rbp - 0x98], rax
lea rcx, [rbp - 0x50]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rcx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x98]
mov qword [rax + 0x10], rcx
mov byte [rax + 0x18], 1
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
cmp dword [0x1404c6f88], 0
jne 0x14008d2f1
lea rdi, [0x1402b1048]
cmp qword [rdi - 8], 0
jne 0x14008d308
cmp byte [rdi + 0x27], 0
je 0x14008d2a1
lea rcx, [0x1402b1048]
cmp qword [rcx - 8], 0
jne 0x14008d312
mov r14, qword [0x1404ba1e0]
mov qword [rbp - 0xa8], r14
mov rcx, qword [r14 + 0x2a8]
lea r10, [0x1402b60b0]
call qword [r10]
cmp eax, dword [rdi + 0x5c]
jle 0x14008cec2
mov rcx, qword [r14 + 0x2a8]
lea r10, [0x1402b60b0]
call qword [r10]
mov dword [rdi + 0x5c], eax
mov byte [rdi + 0x2b], 1
mov dword [rbp - 0x3c], 1
mov rcx, qword [r14 + 0x2c8]
lea r10, [0x1402b60b0]
call qword [r10]
cmp eax, dword [rdi + 0x54]
jle 0x14008cef7
mov rcx, qword [r14 + 0x2c8]
lea r10, [0x1402b60b0]
call qword [r10]
mov dword [rdi + 0x54], eax
mov byte [rdi + 0x29], 1
mov dword [rbp - 0x3c], 1
mov rcx, qword [r14 + 0x2d0]
lea r10, [0x1402b60b0]
call qword [r10]
cmp eax, dword [rdi + 0x58]
jle 0x14008cf2c
mov rcx, qword [r14 + 0x2d0]
lea r10, [0x1402b60b0]
call qword [r10]
mov dword [rdi + 0x58], eax
mov byte [rdi + 0x2a], 1
mov dword [rbp - 0x3c], 1
mov rcx, qword [r14 + 0x2a8]
xor edx, edx
call fcn.140097f60
mov r15, rax
mov rcx, r15
lea r10, [0x1402b60b0]
call qword [r10]
cmp eax, dword [rdi + 0x68]
jle 0x14008cf6a
mov rcx, r15
lea r10, [0x1402b60b0]
call qword [r10]
mov dword [rdi + 0x68], eax
mov byte [rdi + 0x2e], 1
mov dword [rbp - 0x3c], 1
mov rcx, qword [r14 + 0x2d8]
lea r10, [0x1402b60b0]
call qword [r10]
cmp eax, dword [rdi + 0x60]
jle 0x14008cf9f
mov rcx, qword [r14 + 0x2d8]
lea r10, [0x1402b60b0]
call qword [r10]
mov dword [rdi + 0x60], eax
mov byte [rdi + 0x2c], 1
mov dword [rbp - 0x3c], 1
mov rcx, qword [r14 + 0x2e0]
lea r10, [0x1402b60b0]
call qword [r10]
cmp eax, dword [rdi + 0x64]
jle 0x14008cfcf
mov rcx, qword [r14 + 0x2e0]
lea r10, [0x1402b60b0]
call qword [r10]
mov dword [rdi + 0x64], eax
mov byte [rdi + 0x2d], 1
jmp 0x14008cfd5
cmp dword [rbp - 0x3c], 0
je 0x14008cfeb
cmp byte [rdi + 0xc], 0
jne 0x14008d2e5
call fcn.140096790
mov r14, qword [rbp - 0xa8]
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
cmp dword [rbp + 0x20], 0
jle 0x14008d11a
mov qword [rbp - 0xa0], rdi
cmp byte [rdi + 0xc], 0
je 0x14008d2d9
mov rax, qword [rbp - 0x90]
mov r15, qword [rax + 8]
cmp byte [rax + 0x18], 0
je 0x14008d04b
lea rcx, [rbp - 0x58]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x90]
sub rcx, qword [rax + 0x10]
add r15, rcx
cmp dword [0x1404c6f88], 0
mov r14, qword [rbp - 0xa8]
jne 0x14008d31c
lea r13, [0x1402b1668]
cmp qword [r13 - 8], 0
jne 0x14008d333
xorps xmm0, xmm0
cvtsi2sd xmm0, r15
mulsd xmm0, qword [r13 + 0x10]
cvttsd2si rcx, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x1403d25e0]
xorps xmm1, xmm1
cvtsi2sd xmm1, dword [rbp + 0x20]
ucomisd xmm0, xmm1
jb 0x14008d2cd
lea rcx, [0x14026bed8]
call fcn.140098380
lea rcx, [0x14026bed8]
call fcn.1400986e0
lea rcx, [0x14026bed8]
call fcn.140098920
lea rcx, [0x14026bed8]
call fcn.140098860
lea rcx, [0x14026bed8]
call fcn.140098a00
xor ecx, ecx
mov rax, qword [rbp - 0x90]
mov qword [rax + 8], rcx
mov byte [rax + 0x18], 0
mov qword [rax + 0x10], rcx
lea rcx, [rbp - 0x60]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rcx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x90]
mov qword [rax + 0x10], rcx
mov byte [rax + 0x18], 1
cmp dword [0x1404c6f88], 0
mov rdi, qword [rbp - 0xa0]
mov r14, qword [rbp - 0xa8]
jne 0x14008d33d
test esi, esi
jle 0x14008d1fd
mov qword [rbp - 0xa0], rdi
cmp byte [rdi + 0xc], 0
je 0x14008d2c1
mov rdx, qword [rbp - 0x98]
mov r12, qword [rdx + 8]
cmp byte [rdx + 0x18], 0
je 0x14008d173
lea rcx, [rbp - 0x68]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rax, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x98]
sub rax, qword [rdx + 0x10]
add r12, rax
cmp dword [0x1404c6f88], 0
mov r14, qword [rbp - 0xa8]
jne 0x14008d347
lea r15, [0x1402b1668]
cmp qword [r15 - 8], 0
jne 0x14008d35e
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
mulsd xmm0, qword [r15 + 0x10]
cvttsd2si rcx, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x1403d25e0]
xorps xmm1, xmm1
cvtsi2sd xmm1, esi
ucomisd xmm0, xmm1
jb 0x14008d2b5
call fcn.1400929d0
mov qword [rbp - 0x70], rax
lea r8, [rbp - 0x70]
mov qword [rbp - 0x88], r8
mov dword [rbp - 0x80], 1
lea r8, [rbp - 0x88]
xor ecx, ecx
lea rdx, [0x14029ec38]
call fcn.1400d56f0
mov rcx, rax
call fcn.14008f670
call fcn.14008d3e0
mov rdi, qword [rbp - 0xa0]
test ebx, ebx
jle 0x14008d26f
cmp byte [rdi + 0xc], 0
je 0x14008d26f
mov rcx, qword [r14 + 0x2c8]
lea r10, [0x1402b60b0]
call qword [r10]
cmp eax, ebx
jge 0x14008d231
mov rcx, qword [r14 + 0x2d0]
lea r10, [0x1402b60b0]
call qword [r10]
cmp eax, ebx
jl 0x14008d26f
call fcn.1400929d0
mov qword [rbp - 0x78], rax
lea r8, [rbp - 0x78]
mov qword [rbp - 0x88], r8
mov dword [rbp - 0x80], 1
lea r8, [rbp - 0x88]
xor ecx, ecx
lea rdx, [0x14029ebb8]
call fcn.1400d56f0
mov rcx, rax
call fcn.14008f670
call fcn.14008d3e0
nop
call fcn.1400942c0
nop
mov ecx, 5
call fcn.140108bb0
lea rdi, [0x1402b1048]
cmp qword [rdi - 8], 0
jne 0x14008d368
cmp byte [rdi + 0x27], 0
mov ebx, dword [rbp + 0x28]
mov esi, dword [rbp + 0x30]
jne 0x14008ce6d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 0xa0]
jmp 0x14008d1fd
mov rdi, qword [rbp - 0xa0]
jmp 0x14008d1fd
mov rdi, qword [rbp - 0xa0]
jmp 0x14008d11a
mov rdi, qword [rbp - 0xa0]
jmp 0x14008d11a
mov r14, qword [rbp - 0xa8]
jmp 0x14008cfeb
call fcn.140005350
lea rdi, [0x1402b1048]
cmp qword [rdi - 8], 0
je 0x14008ce63
call fcn.14000101d
jmp 0x14008ce63
call fcn.140001678
jmp 0x14008ce7f
call fcn.140005350
lea r13, [0x1402b1668]
cmp qword [r13 - 8], 0
je 0x14008d05d
call fcn.1400013da
jmp 0x14008d05d
call fcn.140005350
jmp 0x14008d11a
call fcn.140005350
lea r15, [0x1402b1668]
cmp qword [r15 - 8], 0
je 0x14008d185
call fcn.1400013da
jmp 0x14008d185
call fcn.14000101d
jmp 0x14008d291