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

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x90
mov r8d, dword [0x140351004]
xor sil, sil
mov qword [rax + 8], rbx
inc r8d
mov qword [rax - 0x10], rbp
mov rbp, rcx
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r14
mov r14, rdx
mov edx, dword [0x140350ff8]
mov qword [rax - 0x28], r15
xor r15d, r15d
mov dword [rax + 0x10], r15d
mov dword [0x140351004], r8d
lea eax, [rdx - 1]
movsxd rdi, eax
test eax, eax
js 0x1400a5439
mov rbx, rdi
shl rbx, 4
nop word [rax + rax]
mov rcx, qword [0x140350ff0]
cmp dword [rbx + rcx + 8], r15d
je 0x1400a541f
mov rcx, qword [rbx + rcx]
test rcx, rcx
je 0x1400a541f
mov rax, qword [rcx]
lea r9, [rsp + 0xa8]
mov r8, r14
mov rdx, rbp
call qword [rax + 0x50]
test al, al
jne 0x1400a5422
mov sil, 1
sub rbx, 0x10
sub rdi, 1
jns 0x1400a53f0
mov r8d, dword [0x140351004]
mov edx, dword [0x140350ff8]
dec r8d
mov dword [0x140351004], r8d
test sil, sil
je 0x1400a54d9
test r8d, r8d
jg 0x1400a54d9
mov esi, edx
mov edi, r15d
test edx, edx
jle 0x1400a54ab
mov rbx, r15
mov rcx, qword [0x140350ff0]
cmp dword [rbx + rcx + 8], r15d
je 0x1400a548a
mov rcx, qword [rbx + rcx]
test rcx, rcx
je 0x1400a548a
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
jne 0x1400a548a
inc edi
add rbx, 0x10
jmp 0x1400a54a1
mov r9b, 1
lea rcx, [0x140350ff0]
mov r8d, 1
mov edx, edi
call fcn.14001bc00
mov edx, dword [0x140350ff8]
cmp edi, edx
jl 0x1400a5461
lea eax, [rdx + rdx]
mov r8d, 2
cmp eax, r8d
cmovle eax, r8d
mov dword [0x140351000], eax
cmp esi, eax
jle 0x1400a54d9
cmp dword [0x140350ffc], edx
je 0x1400a54d9
lea rcx, [0x140350ff0]
call fcn.14001c800
mov rax, qword [r14]
mov qword [rsp + 0x30], rax
mov eax, dword [r14 + 8]
test eax, eax
lea ecx, [rax - 1]
cmove ecx, r15d
mov dword [rsp + 0x38], ecx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14002fe00
mov r9, rax
mov dword [rsp + 0x20], 4
mov r8d, 4
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.1400b8c70
cmp byte [0x140351518], r15b
movzx esi, al
mov r14, qword [rsp + 0x78]
je 0x1400a55e3
test al, al
jne 0x1400a55e3
mov byte [0x140351518], r15b
call fcn.14002fe00
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + 0x70]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.14002fe00
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + 0x78]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [rsp + 0x38]
test edi, edi
je 0x1400a55d4
mov rbx, qword [rsp + 0x30]
add rbx, 8
nop dword [rax]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a55be
call fcn.14004dcf0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400a55cb
call fcn.14004dcf0
add rbx, 0x30
sub edi, 1
jne 0x1400a55b0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400a55e3
call fcn.14004dcf0
cmp dword [rsp + 0xa8], 0
mov r15, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0xa0]
jg 0x1400a561a
test sil, sil
jne 0x1400a561a
xor al, al
add rsp, 0x90
pop rsi
ret
mov al, 1
add rsp, 0x90
pop rsi
ret