Function at 0x140084690
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 [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x100], rax
test rdx, rdx
jle 0x140084985
mov r14, rdx
movaps xmm0, xmmword [0x140114940]
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 0x14008487e
movabs r13, 0x7fffffffffffffff
movabs r12, 0x8637bd05af7
cmp r14, r13
je 0x140084862
mov rax, qword [0x14013b5d0]
lea rcx, [0x140095b10]
cmp rax, rcx
jne 0x14008495c
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 0x140084a25
imul rax, rax, 0xf4240
cqo
idiv qword [0x14013e7d0]
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 0x140084811
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 0x14008481b
jmp 0x1400848e5
mov r12, r8
mov edx, 0xffffffff
jmp 0x140084803
mov bpl, 1
test byte [0x14012e8f0], 0x19
jne 0x1400849b0
cmp byte [rsp + 0x60], 0
jne 0x14008486a
cmp byte [rsp + 0xd0], 0
jne 0x140084874
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400985e0
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 0x1400847b8
mov rcx, rdi
call fcn.140084b30
jmp 0x140084832
mov rcx, rsi
call fcn.140084c10
jmp 0x14008483c
call fcn.140061fd0
mov rcx, rsi
mov rdx, rax
mov r8, rbx
call fcn.140084a90
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.140061ec0
mov rcx, rdi
mov rdx, r15
xor r8d, r8d
mov r9d, 1
call fcn.140070470
test byte [0x14012e040], 0x19
jne 0x140084a4f
mov byte [rsp + 0x60], 1
jmp 0x14008473c
mov rax, qword [0x14013b5d0]
lea rcx, [0x140095b10]
cmp rax, rcx
jne 0x140084972
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 0x140084a68
imul rax, rax, 0xf4240
cqo
idiv qword [0x14013e7d0]
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 0x1400847c9
xor ebp, ebp
jmp 0x14008482b
lea r15, [rsp + 0x30]
mov rcx, r15
call qword [0x140150008]
mov r15, qword [r15]
jmp 0x1400847a4
lea r14, [rsp + 0x38]
mov rcx, r14
call qword [0x140150008]
mov rax, qword [r14]
jmp 0x140084934
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400985e0
mov rcx, rbx
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x14005c340
xor rbx, qword [0x14013ce70]
lea rax, [0x1400181f0]
mov qword [rsp + 0x50], rax
lea rax, [0x14011bc70]
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, [0x14012e8f0]
lea r8, str.WaitableEvent::Wait_Complete
lea r9, [0x140117ca8]
mov cl, 0x49
call fcn.140018080
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 8]
test rax, rax
je 0x14008482b
mov rcx, qword [rsp + 0x40]
call qword [0x140150008]
jmp 0x14008482b
mov rcx, qword [0x14013e7d0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov r15, rax
add r15, r8
jmp 0x1400847a4
lea rdx, [rsp + 0x30]
mov qword [rdx], r15
lea rcx, str.ScopedBlockingCallWithBaseSyncPrimitives
call fcn.1400e4940
jmp 0x1400848db
mov rcx, qword [0x14013e7d0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140084934