Function at 0x1800e8660
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 r15, rcx
lea rcx, [rsp + 0x278]
mov r8d, 0x98
call fcn.180158470
mov ebp, dword [rdi + 0xa0]
cmp ebp, 0x3b9aca00
jne 0x1800e86a4
mov ebp, 0x3b9aca00
jmp 0x1800e87ce
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 0x1800e8b9e
mov rbx, qword [rsp + 0x90]
mov rcx, qword [0x1801fa970]
test rcx, rcx
jne 0x1800e871b
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0x90]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800e8b9e
mov rcx, qword [rsp + 0x90]
mov qword [0x1801fa970], rcx
test rcx, rcx
je 0x1800e8ba3
mov rax, rbx
or rax, rcx
shr rax, 0x20
je 0x1800e8731
mov rax, rbx
xor edx, edx
div rcx
jmp 0x1800e8737
mov eax, ebx
xor edx, edx
div ecx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x1800e875b
xor edx, edx
div rcx
mov rcx, rax
jmp 0x1800e8761
xor edx, edx
div ecx
mov ecx, eax
add rcx, r8
mov r8, rcx
shr r8, 9
movabs r9, 0x44b82fa09b5a53
mov rax, r8
mul r9
mov rbx, rdx
shr rbx, 0xb
add rbx, rsi
jb 0x1800e8ba3
mov rax, r8
mul r9
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub ecx, eax
add ebp, ecx
cmp ebp, 0x3b9aca00
jb 0x1800e87b6
inc rbx
je 0x1800e8ba3
add ebp, 0xc4653600
mov eax, ebp
shr eax, 9
imul rax, rax, 0x44b83
shr rax, 0x27
imul eax, eax, 0x3b9aca00
sub ebp, eax
call fcn.1800f3610
test rax, rax
je 0x1800e8ba3
mov r14, rax
movzx eax, byte [0x1801fa9d0]
mov rcx, qword [0x1801fa958]
test rcx, rcx
jne 0x1800e880b
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e8ba7
mov rcx, rax
mov qword [0x1801fa958], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800e8ba7
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], rdi
mov qword [rax], 1
mov qword [rax + 8], 1
mov rcx, rax
add rcx, 0x10
mov qword [rax + 0x10], r14
lea rax, fcn.1800d9de0
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.180158470
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
cmp ebp, 0x3b9aca00
jne 0x1800e88e1
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x90]
lea r15, [rsp + 0x38]
nop word cs:[rax + rax]
mov rcx, rbx
mov rdx, r14
mov r8, r15
call fcn.1800e8bd0
cmp qword [rsp + 0x40], 0
je 0x1800e8a41
call fcn.1800f3510
jmp 0x1800e88c0
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x90]
lea r12, [rsp + 0x38]
xor edi, edi
movabs rsi, 0x44b82fa09b5a53
jmp 0x1800e8938
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebp
mov rcx, r14
call fcn.1800f90c0
cmp edx, 0x3b9aca00
cmove edx, edi
mov ecx, 0
cmovne rcx, rax
call fcn.1800f56e0
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.1800e8bd0
cmp qword [rsp + 0x40], 0
je 0x1800e8a41
mov qword [rsp + 0x40], 0
mov rcx, r14
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800e8b9e
mov r13, qword [rsp + 0x40]
mov rcx, qword [0x1801fa970]
test rcx, rcx
jne 0x1800e89ac
mov qword [rsp + 0x40], 0
mov rcx, r14
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800e8b9e
mov rcx, qword [rsp + 0x40]
mov qword [0x1801fa970], rcx
test rcx, rcx
je 0x1800e8ba3
mov rax, r13
or rax, rcx
shr rax, 0x20
je 0x1800e89d0
mov rax, r13
xor edx, edx
div rcx
jmp 0x1800e89d7
mov eax, r13d
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x1800e8a00
xor edx, edx
div rcx
mov r8, rax
jmp 0x1800e8a07
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rax, r8
shr rax, 9
mul rsi
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub r8d, eax
cmp rdx, rbx
jb 0x1800e8910
jne 0x1800e8b96
mov r13d, 0
cmp ebp, r8d
ja 0x1800e8910
jmp 0x1800e8a5d
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1800e8a58
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x80], xmm0
mov r13, qword [rsp + 0x50]
lea rcx, [rsp + 0x90]
call fcn.1800e9430
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x18]
test rdi, rdi
je 0x1800e8aae
mov rax, qword [rsp + 0x28]
mov qword [rax], rdi
mov qword [rax + 8], r13
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rax + 0x10], xmm0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rbx + 0xa8]
test rdi, rdi
jne 0x1800e8b3a
jmp 0x1800e8b6a
test r13, r13
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
jne 0x1800e8b23
movzx eax, byte [0x1801fa9d0]
mov rcx, qword [0x1801fa958]
test rcx, rcx
jne 0x1800e8ae9
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e8bb8
mov rcx, rax
mov qword [0x1801fa958], rax
mov r8d, 0x70
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800e8bb8
mov r13, rax
mov dword [rax], 2
mov qword [rax + 0x58], 1
lea rax, [0x1801bdb08]
mov qword [r13 + 0x60], rax
mov word [r13 + 0x68], 5
mov qword [rsi + 8], r13
mov qword [rsi], 0
mov rdi, qword [rbx + 0xa8]
test rdi, rdi
je 0x1800e8b6a
mov rsi, qword [rbx + 0xb0]
mov rcx, rdi
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1800e8b6a
cmp qword [rsi + 0x10], 0x11
jb 0x1800e8b58
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1801fa958]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x1800e8b81
lock dec qword [rcx]
jne 0x1800e8b81
call fcn.1800e5c40
nop
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
jmp 0x1800e8a5d
call sub.kernel32.dll_GetLastError
ud2
mov ecx, 8
mov edx, 0x18
call fcn.180166060
ud2
mov ecx, 8
mov edx, 0x70
call fcn.180166060
ud2