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

Disassembly:
test r8d, r8d
js 0x1800f1007
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x178], rbx
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov edi, r8d
mov dword [rbp - 0x70], r8d
mov r15, rdx
mov rbx, rcx
mov byte [rcx + 0x100], 0
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
call fcn.1800819e0
cmp byte [rax + 0x90], 0
je 0x1800f0db5
mov rsi, qword [rbx + 0xc8]
mov r12, qword [rbx + 0xd0]
mov qword [rbp - 0x30], r12
cmp rsi, r12
jne 0x1800f0b02
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x141a
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1800f0fe1
mov byte [rsp + 0x40], 0
je 0x1800f0da4
xor r13d, r13d
lea r14d, [r13 - 1]
call fcn.1800819e0
mov rcx, rax
mov r9d, dword [rsi]
mov r8d, edi
lea rdx, [rsp + 0x48]
call fcn.1800830b0
nop
cmp qword [rsp + 0x48], 0
je 0x1800f0d5f
call fcn.1800819e0
mov rcx, rax
mov r8d, dword [rsi]
mov edx, edi
call fcn.180083240
mov edi, eax
test eax, eax
js 0x1800f0d33
lea r9, [rsi + 4]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.1800f1ac0
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x1800f0c95
mov rax, qword [rbx]
mov byte [rsp + 0x28], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, edi
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x48]
test al, al
jne 0x1800f0d33
cmp byte [rbx + 0x100], al
jne 0x1800f0d33
movaps xmm1, xmmword [rbp - 0x10]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movd r12d, xmm0
movd eax, xmm1
sub r12d, eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r13d
mov r13d, dword [rsp + 0x7c]
sub r13d, dword [rsp + 0x74]
mov dword [rsp + 0x7c], r13d
xor ecx, ecx
mov dword [rsp + 0x74], ecx
call fcn.1800819e0
mov rcx, qword [rsp + 0x48]
cmp qword [rcx + 8], 0
je 0x1800f0c67
mov dword [rbp - 0x40], r12d
mov dword [rbp - 0x3c], r13d
movzx eax, byte [rsp + 0x40]
neg al
sbb r8d, r8d
and r8d, 3
mov dword [rsp + 0x30], 0x801
mov dword [rsp + 0x28], 0xffffff
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
mov edx, edi
mov rcx, qword [rcx]
call fcn.180145f60
test rax, rax
je 0x1800f0c67
mov rcx, qword [rsp + 0x48]
mov r9, rax
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, qword [rcx + 8]
call fcn.180147a70
mov rax, qword [rbx]
mov byte [rsp + 0x28], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, edi
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x48]
xor r13d, r13d
mov r12, qword [rbp - 0x30]
jmp 0x1800f0d33
cmp qword [rax + 0x10], 0
je 0x1800f0d33
mov rax, qword [rbx]
mov byte [rsp + 0x28], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, edi
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x50]
test al, al
jne 0x1800f0d33
cmp byte [rbx + 0x100], al
jne 0x1800f0d33
movaps xmm1, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movd eax, xmm1
sub ecx, eax
mov dword [rbp - 0x58], ecx
mov dword [rbp - 0x60], r13d
mov eax, dword [rbp - 0x5c]
sub dword [rbp - 0x54], eax
mov dword [rbp - 0x5c], r13d
call fcn.1800819e0
lea r9, [rbp - 0x60]
mov r8d, edi
lea rdx, [rsp + 0x48]
call fcn.180082e70
mov rax, qword [rbx]
mov byte [rsp + 0x28], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, edi
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x50]
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x28]
sub rax, qword [rbp]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp + 8]
cmp rax, 0x14
jl 0x1800f0d5f
mov byte [rbx + 0x100], 1
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x1800f0d94
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1800f0d94
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1800f0d94
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
add rsi, 0x14
cmp rsi, r12
mov edi, dword [rbp - 0x70]
jne 0x1800f0b14
mov rax, qword [rbx]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x40]
jmp 0x1800f0fb2
call fcn.1800819e0
mov rcx, rax
xor r9d, r9d
mov r8d, edi
lea rdx, [rsp + 0x58]
call fcn.1800830b0
nop
call fcn.1800819e0
mov rcx, rax
xor r8d, r8d
mov edx, edi
call fcn.180083240
mov edi, eax
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x1800f0ee4
lea rsi, [rbx + 0x90]
mov r10, qword [rbx]
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
mov r9d, edi
lea r8, [rsp + 0x58]
mov rdx, r15
mov rcx, rbx
call qword [r10 + 0x48]
test al, al
jne 0x1800f0f78
movups xmm1, xmmword [rsi]
movups xmmword [rbp - 0x80], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movd r14d, xmm0
movd eax, xmm1
sub r14d, eax
mov dword [rbp - 0x78], r14d
xor ecx, ecx
mov dword [rbp - 0x80], ecx
mov r12d, dword [rbp - 0x74]
sub r12d, dword [rbp - 0x7c]
mov dword [rbp - 0x74], r12d
mov dword [rbp - 0x7c], ecx
movzx r13d, byte [rbx + 0xc0]
call fcn.1800819e0
mov rcx, qword [rsp + 0x58]
cmp qword [rcx + 8], 0
je 0x1800f0ec1
mov dword [rbp - 0x38], r14d
mov dword [rbp - 0x34], r12d
neg r13b
sbb r8d, r8d
and r8d, 3
mov dword [rsp + 0x30], 0x801
mov dword [rsp + 0x28], 0xffffff
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov edx, edi
mov rcx, qword [rcx]
call fcn.180145f60
test rax, rax
je 0x1800f0ec1
mov rcx, qword [rsp + 0x58]
mov r9, rax
lea r8, [rbp - 0x80]
mov edx, edi
mov rcx, qword [rcx + 8]
call fcn.180147a70
mov rax, qword [rbx]
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
mov r9d, edi
lea r8, [rsp + 0x58]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x48]
jmp 0x1800f0f78
cmp qword [rax + 0x10], 0
je 0x1800f0f78
lea rsi, [rbx + 0x90]
mov rax, qword [rbx]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
mov r9d, edi
lea r8, [rsp + 0x58]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x50]
test al, al
jne 0x1800f0f78
movups xmm1, xmmword [rsi]
movups xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movd eax, xmm1
sub ecx, eax
mov dword [rbp - 0x48], ecx
xor ecx, ecx
mov dword [rbp - 0x50], ecx
mov eax, dword [rbp - 0x4c]
sub dword [rbp - 0x44], eax
mov dword [rbp - 0x4c], ecx
call fcn.1800819e0
lea r9, [rbp - 0x50]
mov r8d, edi
lea rdx, [rsp + 0x58]
call fcn.180082e70
mov rax, qword [rbx]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
mov r9d, edi
lea r8, [rsp + 0x58]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x50]
nop
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1800f0fb2
mov r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1800f0fb2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], r14d
cmp r14d, 1
jne 0x1800f0fb2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp byte [rbx + 0x100], 0
je 0x1800f0fe1
cmp qword [rbx + 0xf8], 0
jne 0x1800f0fe1
xor r9d, r9d
lea edx, [r9 + 0x65]
lea r8d, [r9 + 0x14]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetTimer]
mov qword [rbx + 0xf8], rax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0x178]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret