Function at 0x140162b20
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, 0x138
movaps xmmword [rsp + 0x120], xmm6
lea rbp, [rsp + 0x170]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x100], xmm4
movaps xmmword [rbp - 0xf0], xmm4
movabs rax, 0xffffffffffffff70
movaps xmmword [rbp + rax - 0x50], xmm4
movaps xmmword [rbp + rax - 0x40], xmm4
movaps xmmword [rbp + rax - 0x30], xmm4
add rax, 0x30
jne 0x140162b5e
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov rbx, r8
call fcn.1400be370
mov r8, rax
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
divsd xmm0, qword [0x1402b09b0]
lea rdx, [0x1401df630]
call fcn.14009e880
mov rdx, rax
lea rcx, [0x1401dc510]
lea r8, [0x1401bd740]
call fcn.14008cf90
mov rcx, rax
mov edx, 0xb
xor r8d, r8d
call fcn.140164880
lea rdx, [rbp - 0x60]
mov rcx, rdi
mov r8d, 0x186a0
cmp dword [rcx], ecx
call fcn.1401652d0
mov ecx, 0x1000
call fcn.1400e6650
mov qword [rbp - 0x68], rax
mov qword [rbp + 0x18], rdi
mov rcx, qword [rdi + 8]
mov r14, qword [rcx + 8]
mov rcx, qword [0x140343bd0]
mov rcx, qword [rcx + 8]
mov edx, dword [rbp - 0x58]
mov r8, qword [rcx]
call qword [r8 + 0x38]
cmp eax, dword [rbp - 0x58]
jae 0x140162d78
mov rcx, qword [rbp - 0x60]
mov edx, eax
mov rdx, qword [rcx + rdx*8]
mov rcx, qword [r14 + 8]
mov r9, qword [rbp - 0x68]
mov r8d, 0x1000
call fcn.140166490
xor r14d, r14d
xor r15d, r15d
movabs r13, 0x7fffffffffffffff
movabs r12, 0x8000000000000000
xor eax, eax
mov qword [rbp - 0x70], rax
xor edx, edx
mov dword [rbp - 0x74], edx
lea rcx, [0x1401f1998]
call fcn.140002fd0
xor ecx, ecx
mov qword [rax + 8], rcx
mov byte [rax + 0x18], 0
mov qword [rax + 0x10], rcx
mov qword [rbp - 0x110], rax
lea rcx, [0x1401f1998]
call fcn.140002fd0
xor ecx, ecx
mov qword [rax + 8], rcx
mov byte [rax + 0x18], 0
mov qword [rax + 0x10], rcx
mov qword [rbp - 0x120], rax
cmp byte [rax + 0x18], 0
jne 0x140162ccc
lea rcx, [rbp - 0xd8]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rcx, qword [rbp - 0xd8]
mov rsi, qword [rbp - 0x120]
mov qword [rsi + 0x10], rcx
mov byte [rsi + 0x18], 1
cmp dword [0x14034cb78], 0
jne 0x140162f1a
mov rax, qword [rbp - 0x120]
mov qword [rbp - 0x118], rax
lea rcx, [rbp - 0xd0]
mov edx, 0x1e
mov r8d, 1
call fcn.1400e38b0
movups xmm0, xmmword [rbp - 0xd0]
movups xmmword [rbp - 0xa0], xmm0
movups xmm0, xmmword [rbp - 0xc0]
movups xmmword [rbp - 0x90], xmm0
mov rcx, qword [rbp - 0xb0]
mov qword [rbp - 0x80], rcx
mov ecx, dword [rbp - 0x90]
cmp ecx, dword [rbp - 0x80]
ja 0x140162f14
mov rdx, qword [rbp - 0x88]
mov eax, ecx
lea rdx, [rdx + rax*2]
mov eax, dword [rbp - 0x80]
sub eax, ecx
cmp eax, 0x1b
jb 0x140162d7d
lea rcx, [0x1401dc5f0]
add rcx, 0xc
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x26]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x26], xmm3
mov ecx, dword [rbp - 0x90]
add ecx, 0x1b
mov dword [rbp - 0x90], ecx
jmp 0x140162d90
call fcn.1401074a0
lea rcx, [rbp - 0xa0]
lea rdx, [0x1401dc5f0]
call fcn.1400e3a80
call fcn.1400965d0
mov rcx, rax
mov rdx, rbx
call fcn.1400968b0
mov rdx, rax
lea rcx, [rbp - 0xa0]
call fcn.1401a7de0
mov ecx, dword [rbp - 0x90]
cmp ecx, dword [rbp - 0x80]
ja 0x140162f14
mov rdx, qword [rbp - 0x88]
mov eax, ecx
lea rdx, [rdx + rax*2]
mov eax, dword [rbp - 0x80]
sub eax, ecx
cmp eax, 3
jb 0x140162dfd
lea rcx, [0x1401bf070]
add rcx, 0xc
mov eax, dword [rcx]
mov r8d, dword [rcx + 2]
mov dword [rdx], eax
mov dword [rdx + 2], r8d
mov ecx, dword [rbp - 0x90]
add ecx, 3
mov dword [rbp - 0x90], ecx
jmp 0x140162e10
lea rcx, [rbp - 0xa0]
lea rdx, [0x1401bf070]
call fcn.1400e3a80
lea rcx, [rbp - 0xa0]
call fcn.1400e3940
mov rcx, rax
mov edx, 0xb
xor r8d, r8d
call fcn.140164880
mov rax, qword [rbp - 0x118]
mov rdx, qword [rax + 8]
mov qword [rbp - 0xf8], rdx
cmp byte [rax + 0x18], 0
je 0x140162e7f
lea rcx, [rbp - 0x100]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rcx, qword [rbp - 0x100]
mov rsi, qword [rbp - 0x118]
sub rcx, qword [rsi + 0x10]
mov rdx, rcx
add rdx, qword [rbp - 0xf8]
mov rdi, rdx
cmp dword [0x14034cb78], 0
mov qword [rbp - 0xf8], rdi
jne 0x140162eeb
lea r8, [0x1401e5bc8]
mov qword [rbp - 0x108], r8
cmp qword [r8 - 8], 0
jne 0x140162f06
mov qword [rbp - 0x148], r8
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp - 0xf8]
mulsd xmm0, qword [r8 + 0x10]
cvttsd2si rcx, xmm0
cmp rcx, rbx
jl 0x140162f24
lea rcx, [0x1401dc008]
xor edx, edx
mov r8d, 0xa
call fcn.140164880
mov rbx, r14
mov rdi, r15
mov r14, qword [rbp - 0x70]
jmp 0x140163347
call fcn.140004980
mov rax, qword [rbp - 0x128]
jmp 0x140162fa2
call fcn.140004980
jmp 0x140162e7f
call fcn.140002062
jmp 0x1401630ec
call fcn.140004980
jmp 0x140163078
call fcn.14000127e
mov r8, qword [rbp - 0x108]
jmp 0x140162e94
call fcn.1400a34e0
int3
call fcn.140004980
jmp 0x140162ccc
mov rcx, qword [0x140343bd0]
mov rcx, qword [rcx + 8]
mov edx, dword [rbp - 0x58]
mov r10, qword [rcx]
call qword [r10 + 0x38]
cmp eax, dword [rbp - 0x58]
jae 0x140162d78
mov rcx, qword [rbp - 0x60]
mov eax, eax
mov rax, qword [rcx + rax*8]
mov qword [rbp - 0xa8], rax
xor ecx, ecx
mov rdx, qword [rbp - 0x110]
mov qword [rdx + 8], rcx
lea rcx, [rbp - 0xe0]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rcx, qword [rbp - 0xe0]
mov rsi, qword [rbp - 0x110]
mov qword [rsi + 0x10], rcx
mov byte [rsi + 0x18], 1
mov rdi, qword [rbp + 0x18]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rbp - 0x128], rax
cmp dword [0x14034cb78], 0
jne 0x140162eda
mov rcx, qword [rax + 8]
mov rdx, qword [rbp - 0xa8]
mov r9, qword [rbp - 0x68]
mov r8d, 0x1000
call fcn.140166490
test eax, eax
jne 0x140163028
call fcn.1400965d0
mov rcx, rax
movabs r9, 0x8000000000000000
lea rdx, [0x1401d23b8]
xor r8d, r8d
call fcn.140099e10
mov rdx, rax
lea rcx, [0x1401dbae0]
lea r8, [0x1401dcb40]
call fcn.14008cf90
mov qword [rbp - 0x140], rax
mov ecx, 0xc
call fcn.140078d00
xor ecx, ecx
call fcn.140078c80
mov rcx, qword [rbp - 0x140]
call fcn.1400784a0
call fcn.140078d70
inc r14
jmp 0x140162e2c
mov rax, qword [rsi + 8]
mov qword [rbp - 0xe8], rax
cmp byte [rsi + 0x18], 0
je 0x140163078
lea rcx, [rbp - 0xf0]
call sub.KERNEL32.dll_QueryPerformanceCounter
mov rcx, qword [rbp - 0xf0]
mov rsi, qword [rbp - 0x110]
sub rcx, qword [rsi + 0x10]
mov rax, rcx
add rax, qword [rbp - 0xe8]
mov rdi, rax
cmp dword [0x14034cb78], 0
mov qword [rbp - 0xe8], rdi
jne 0x140162efc
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp - 0xe8]
mov r8, qword [rbp - 0x148]
mulsd xmm0, qword [r8 + 0x10]
cvttsd2si rcx, xmm0
cmp rcx, r13
jge 0x14016309e
mov r13, rcx
cmp rcx, r12
jle 0x1401630a6
mov r12, rcx
mov rax, qword [rbp - 0x70]
add rax, rcx
mov qword [rbp - 0x70], rax
inc r15
mov edx, dword [rbp - 0x74]
inc edx
mov dword [rbp - 0x74], edx
xorps xmm6, xmm6
cvtsi2sd xmm6, rcx
divsd xmm6, qword [0x1402b09b8]
ucomisd xmm6, qword [0x1402b09c0]
jbe 0x140163020
lea rcx, [0x1401e5f38]
cmp qword [rcx - 8], 0
jne 0x140162ef2
mov rcx, qword [0x140344210]
mov rcx, qword [rcx + 8]
mov edx, 0x100
cmp dword [rcx], ecx
call fcn.140169ce0
test rax, rax
jne 0x14016310e
xor ecx, ecx
xor edx, edx
jmp 0x140163115
lea rcx, [rax + 0x10]
mov edx, dword [rax + 8]
xor r8d, r8d
mov qword [rbp - 0xa0], r8
mov qword [rbp - 0x98], rax
mov dword [rbp - 0x90], r8d
mov byte [rbp - 0x8c], 0
mov qword [rbp - 0x88], rcx
mov dword [rbp - 0x80], edx
mov ecx, dword [rbp - 0x90]
cmp ecx, dword [rbp - 0x80]
ja 0x140162f14
mov rdx, qword [rbp - 0x88]
mov eax, ecx
lea rdx, [rdx + rax*2]
mov eax, dword [rbp - 0x80]
sub eax, ecx
cmp eax, 1
jb 0x140163185
lea rcx, [0x1401dbae0]
add rcx, 0xc
movzx eax, word [rcx]
mov word [rdx], ax
mov ecx, dword [rbp - 0x90]
inc ecx
mov dword [rbp - 0x90], ecx
jmp 0x140163198
lea rcx, [rbp - 0xa0]
lea rdx, [0x1401dbae0]
call fcn.1400e3a80
call fcn.1400965d0
mov rcx, rax
movabs r9, 0x8000000000000000
lea rdx, [0x1401d23b8]
xor r8d, r8d
call fcn.140099e10
mov qword [rbp - 0x130], rax
cmp byte [rbp - 0x8c], 0
jne 0x140163220
test rax, rax
je 0x140163220
mov r8d, dword [rbp - 0x90]
cmp r8d, dword [rbp - 0x80]
ja 0x140162f14
mov rcx, qword [rbp - 0x88]
mov edx, r8d
lea rcx, [rcx + rdx*2]
mov edx, dword [rbp - 0x80]
sub edx, r8d
cmp dword [rax + 8], edx
ja 0x140163220
lea rdx, [rax + 0xc]
mov r8d, dword [rax + 8]
add r8, r8
call fcn.140087ee0
mov ecx, dword [rbp - 0x90]
mov rax, qword [rbp - 0x130]
add ecx, dword [rax + 8]
mov dword [rbp - 0x90], ecx
jmp 0x14016322f
lea rcx, [rbp - 0xa0]
mov rdx, rax
call fcn.1400e39e0
mov ecx, dword [rbp - 0x90]
cmp ecx, dword [rbp - 0x80]
ja 0x140162f14
mov rdx, qword [rbp - 0x88]
mov eax, ecx
lea rdx, [rdx + rax*2]
mov eax, dword [rbp - 0x80]
sub eax, ecx
cmp eax, 0xc
jb 0x14016327f
lea rcx, [0x1401dcb70]
add rcx, 0xc
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 8]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 8], xmm1
mov ecx, dword [rbp - 0x90]
add ecx, 0xc
mov dword [rbp - 0x90], ecx
jmp 0x140163292
lea rcx, [rbp - 0xa0]
lea rdx, [0x1401dcb70]
call fcn.1400e3a80
movaps xmm0, xmm6
call fcn.14008abd0
cvttsd2si edx, xmm0
lea rcx, [rbp - 0xa0]
call fcn.1401ac080
mov ecx, dword [rbp - 0x90]
cmp ecx, dword [rbp - 0x80]
ja 0x140162f14
mov rdx, qword [rbp - 0x88]
mov eax, ecx
lea rdx, [rdx + rax*2]
mov eax, dword [rbp - 0x80]
sub eax, ecx
cmp eax, 3
jb 0x1401632f8
lea rcx, [0x1401bd7b0]
add rcx, 0xc
mov eax, dword [rcx]
mov r8d, dword [rcx + 2]
mov dword [rdx], eax
mov dword [rdx + 2], r8d
mov ecx, dword [rbp - 0x90]
add ecx, 3
mov dword [rbp - 0x90], ecx
jmp 0x14016330b
lea rcx, [rbp - 0xa0]
lea rdx, [0x1401bd7b0]
call fcn.1400e3a80
lea rcx, [rbp - 0xa0]
call fcn.1400e3940
mov qword [rbp - 0x138], rax
mov ecx, 6
call fcn.140078d00
xor ecx, ecx
call fcn.140078c80
mov rcx, qword [rbp - 0x138]
call fcn.1400784a0
mov rsi, qword [rbp - 0x110]
jmp 0x14016301b
mov r9, qword [rbp - 0x68]
test r9, 0xffffffffffff0000
je 0x14016335c
mov rcx, r9
call fcn.140108b40
mov rsi, qword [rbp + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x20], r12
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret