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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov rdi, rdx
mov r14, rcx
lea rcx, [rsp + 0x278]
mov r8d, 0x98
call fcn.180170ea0
mov ebp, dword [rdi + 0xa0]
cmp ebp, 0x3b9aca00
jne 0x1800f19d4
mov ebp, 0x3b9aca00
jmp 0x1800f1b16
mov rsi, qword [rdi + 0x98]
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800f1ebe
mov rbx, qword [rsp + 0x90]
mov r8, qword [0x180219970]
test r8, r8
jne 0x1800f1a4b
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800f1ebe
mov r8, qword [rsp + 0x90]
mov qword [0x180219970], r8
test r8, r8
je 0x1800f1ec3
mov rax, rbx
or rax, r8
shr rax, 0x20
je 0x1800f1a64
mov rax, rbx
xor edx, edx
div r8
mov rcx, rax
jmp 0x1800f1a6d
mov eax, ebx
xor edx, edx
div r8d
mov ecx, eax
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, r8
shr rdx, 0x20
je 0x1800f1a87
xor edx, edx
div r8
jmp 0x1800f1a8c
xor edx, edx
div r8d
imul r9, rcx, 0x3b9aca00
add r9, rax
mov r8, r9
shr r8, 9
movabs r10, 0x44b82fa09b5a53
mov rax, r8
mul r10
mov rcx, rdx
shr rcx, 0xb
add rcx, rsi
jb 0x1800f1ec3
mov rax, r8
mul r10
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub r9d, eax
add ebp, r9d
cmp ebp, 0x3b9ac9ff
jbe 0x1800f1aea
inc rcx
je 0x1800f1ec3
add ebp, 0xc4653600
mov eax, ebp
shr eax, 9
imul r13, rax, 0x44b83
shr r13, 0x27
add r13, rcx
jb 0x1800f1ec3
imul rax, rax, 0x44b83
shr rax, 0x27
imul eax, eax, 0x3b9aca00
sub ebp, eax
call fcn.1800fe660
test rax, rax
je 0x1800f1ec3
mov rbx, rax
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x1800f1b4c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1800f1ec7
mov rcx, rax
mov qword [0x180219958], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1800f1ec7
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], rdi
mov qword [rax], 1
mov qword [rax + 8], 1
mov rcx, rax
add rcx, 0x10
mov qword [rax + 0x10], rbx
lea rax, fcn.1800e2a80
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rcx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0x278]
mov r8d, 0x1e0
call fcn.180170ea0
mov byte [rsp + 0x270], 0
mov eax, dword [rsp + 0x79]
mov ecx, dword [rsp + 0x7c]
mov dword [rsp + 0x271], eax
mov dword [rsp + 0x274], ecx
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x90]
lea r15, [rsp + 0x38]
cmp ebp, 0x3b9aca00
jne 0x1800f1c21
nop word cs:[rax + rax]
mov rcx, rbx
mov rdx, r14
mov r8, r15
call fcn.1800f1ef0
cmp qword [rsp + 0x40], 0
je 0x1800f1d66
call fcn.1800fe490
jmp 0x1800f1c00
xor edi, edi
movabs rsi, 0x44b82fa09b5a53
jmp 0x1800f1c58
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], ebp
mov rcx, rbx
call fcn.180104920
cmp edx, 0x3b9aca00
cmove edx, edi
mov ecx, 0
cmovne rcx, rax
call fcn.1801006e0
mov rcx, rbx
mov rdx, r14
mov r8, r15
call fcn.1800f1ef0
cmp qword [rsp + 0x40], 0
je 0x1800f1d66
mov qword [rsp + 0x40], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800f1ebe
mov r12, qword [rsp + 0x40]
mov r8, qword [0x180219970]
test r8, r8
jne 0x1800f1ccc
mov qword [rsp + 0x40], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800f1ebe
mov r8, qword [rsp + 0x40]
mov qword [0x180219970], r8
test r8, r8
je 0x1800f1ec3
mov rax, r12
or rax, r8
shr rax, 0x20
je 0x1800f1cf0
mov rax, r12
xor edx, edx
div r8
mov rcx, rax
jmp 0x1800f1cfa
mov eax, r12d
xor edx, edx
div r8d
mov ecx, eax
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, r8
shr rdx, 0x20
je 0x1800f1d20
xor edx, edx
div r8
jmp 0x1800f1d25
xor edx, edx
div r8d
imul r8, rcx, 0x3b9aca00
add r8, rax
mov rax, r8
shr rax, 9
mul rsi
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub r8d, eax
cmp rdx, r13
jb 0x1800f1c30
jne 0x1800f1eb6
mov r12d, 0
cmp ebp, r8d
ja 0x1800f1c30
jmp 0x1800f1d82
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1800f1d7d
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x80], xmm0
mov r12, qword [rsp + 0x50]
lea rcx, [rsp + 0x90]
call fcn.1800f2750
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x18]
test rdi, rdi
je 0x1800f1dd3
mov rax, qword [rsp + 0x28]
mov qword [rax], rdi
mov qword [rax + 8], r12
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rax + 0x10], xmm0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rbx + 0xa8]
test rdi, rdi
jne 0x1800f1e5a
jmp 0x1800f1e8a
test r12, r12
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
jne 0x1800f1e43
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x1800f1e07
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1800f1ed8
mov rcx, rax
mov qword [0x180219958], rax
mov r8d, 0x70
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1800f1ed8
mov r12, rax
mov dword [rax], 2
mov qword [rax + 0x58], 1
lea rax, [0x1801db940]
mov qword [r12 + 0x60], rax
mov word [r12 + 0x68], 5
mov qword [rsi + 8], r12
mov qword [rsi], 0
mov rdi, qword [rbx + 0xa8]
test rdi, rdi
je 0x1800f1e8a
mov rsi, qword [rbx + 0xb0]
mov rcx, rdi
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1800f1e8a
cmp qword [rsi + 0x10], 0x11
jb 0x1800f1e78
mov rdi, qword [rdi - 8]
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x1800f1ea1
lock dec qword [rcx]
jne 0x1800f1ea1
call fcn.1800eef20
nop
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
jmp 0x1800f1d82
call fcn.18016fe79
ud2
mov ecx, 8
mov edx, 0x18
call fcn.18017ea70
ud2
mov ecx, 8
mov edx, 0x70
call fcn.18017ea70
ud2