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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
add rsp, 0x28
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov rbx, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x100], rax
test rdx, rdx
jle 0x14013ea05
mov r14, rdx
movaps xmm0, xmmword [0x140261350]
lea rsi, [rsp + 0xd8]
movaps xmmword [rsi - 8], xmm0
movaps xmmword [rsi + 8], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 0x18], rax
xor ecx, ecx
mov byte [rsi - 8], cl
xorps xmm1, xmm1
movups xmmword [rsi], xmm1
mov qword [rsi + 0x10], rcx
lea rdi, [rsp + 0x68]
movaps xmmword [rdi - 8], xmm0
movaps xmmword [rdi + 8], xmm0
movaps xmmword [rdi + 0x18], xmm0
movaps xmmword [rdi + 0x28], xmm0
movaps xmmword [rdi + 0x38], xmm0
movaps xmmword [rdi + 0x48], xmm0
mov qword [rdi + 0x58], rax
mov byte [rdi - 8], cl
movups xmmword [rdi], xmm1
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi + 0x20], xmm1
movups xmmword [rdi + 0x30], xmm1
movups xmmword [rdi + 0x40], xmm1
mov qword [rdi + 0x50], rcx
cmp byte [rbx + 8], cl
jne 0x14013e8fe
movabs r13, 0x7fffffffffffffff
movabs r12, 0x8637bd05af7
cmp r14, r13
je 0x14013e8e2
mov rax, qword [0x140288f88]
lea rcx, [0x140171950]
cmp rax, rcx
jne 0x14013e9dc
lea r15, [rsp + 0x38]
mov qword [r15], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r15]
cmp rax, r12
jge 0x14013eaa5
imul rax, rax, 0xf4240
cqo
idiv qword [0x14029b670]
mov r15, rax
lea rax, [r15 + r14]
sar rax, 0x3f
btc rax, 0x3f
add r15, r14
cmovo r15, rax
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movabs r8, 0x20c49ba5e353f7cf
cmp r14, r13
je 0x14013e891
mov rax, r14
shr rax, 3
mov r12, r8
mul r8
mov rax, rdx
shr rax, 4
imul rcx, rax, 0x3e8
cmp rcx, r14
adc rax, 0
mov rcx, rax
shr rcx, 0x20
neg rcx
mov edx, 0
sbb edx, edx
or edx, eax
mov rcx, qword [rbx]
call rbp
test eax, eax
je 0x14013e89b
jmp 0x14013e965
mov r12, r8
mov edx, 0xffffffff
jmp 0x14013e883
mov bpl, 1
test byte [0x1402898c0], 0x19
jne 0x14013ea30
cmp byte [rsp + 0x60], 0
jne 0x14013e8ea
cmp byte [rsp + 0xd0], 0
jne 0x14013e8f4
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1401756e0
mov eax, ebp
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, r13
jmp 0x14013e838
mov rcx, rdi
call fcn.14013ebb0
jmp 0x14013e8b2
mov rcx, rsi
call fcn.14013ec90
jmp 0x14013e8bc
call fcn.1400f24d0
mov rcx, rsi
mov rdx, rax
mov r8, rbx
call fcn.14013eb10
mov byte [rsp + 0xd0], 1
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea r15, [rsp + 0x38]
mov rcx, r15
mov r9d, 0x26
call fcn.14011b9f0
mov rcx, rdi
mov rdx, r15
xor r8d, r8d
mov r9d, 1
call fcn.14010e570
test byte [0x140289010], 0x19
jne 0x14013eacf
mov byte [rsp + 0x60], 1
jmp 0x14013e7bc
mov rax, qword [0x140288f88]
lea rcx, [0x140171950]
cmp rax, rcx
jne 0x14013e9f2
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14013eae8
imul rax, rax, 0xf4240
cqo
idiv qword [0x14029b670]
mov r8, r12
xor ecx, ecx
cmp r15, rax
setns cl
add rcx, r13
mov r14, r15
sub r14, rax
cmovo r14, rcx
test r14, r14
jg 0x14013e849
xor ebp, ebp
jmp 0x14013e8ab
lea r15, [rsp + 0x30]
mov rcx, r15
call qword [case.0x1401d7990.0]
mov r15, qword [r15]
jmp 0x14013e824
lea r14, [rsp + 0x38]
mov rcx, r14
call qword [case.0x1401d7990.0]
mov rax, qword [r14]
jmp 0x14013e9b4
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1401756e0
mov rcx, rbx
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x1400c3760
xor rbx, qword [0x140298390]
lea rax, [0x140078220]
mov qword [rsp + 0x50], rax
lea rax, [0x140270ee8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea rdx, [0x1402898c0]
lea r8, str.WaitableEvent::Wait_Complete
lea r9, [0x140267ad8]
mov cl, 0x49
call fcn.140074da0
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 8]
test rax, rax
je 0x14013e8ab
mov rcx, qword [rsp + 0x40]
call qword [case.0x1401d7990.0]
jmp 0x14013e8ab
mov rcx, qword [0x14029b670]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov r15, rax
add r15, r8
jmp 0x14013e824
lea rdx, [rsp + 0x30]
mov qword [rdx], r15
lea rcx, str.ScopedBlockingCallWithBaseSyncPrimitives
call fcn.1401d6c60
jmp 0x14013e95b
mov rcx, qword [0x14029b670]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14013e9b4