Function at 0x1400ad550
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, 0x168
movaps xmmword [rsp + 0x150], xmm6
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x148], rax
test rdx, rdx
jle 0x1400add29
mov rdi, rdx
movabs rcx, 0x7fffffffffffffff
movaps xmm6, xmmword [0x1401ee3a0]
movaps xmmword [rsp + 0x60], xmm6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov byte [rsp + 0x60], 0
mov byte [rsp + 0xa0], 0
cmp byte [rsi + 8], 0
je 0x1400ad73a
movabs r15, 0x8637bd05af7
cmp rdi, rcx
je 0x1400ad70e
mov rax, qword [0x140228618]
lea rcx, [0x14012b780]
cmp rax, rcx
jne 0x1400adce6
mov qword [rsp + 0xf0], 0
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0xf0]
cmp rax, r15
jge 0x1400adcff
imul rax, rax, 0xf4240
cqo
idiv qword [0x140231a18]
mov rbx, rax
lea rax, [rbx + rdi]
sar rax, 0x3f
movabs rcx, 0x8000000000000000
xor rcx, rax
add rbx, rdi
cmovo rbx, rcx
movabs rcx, 0x7fffffffffffffff
mov r12, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r14, [rsp + 0xf0]
mov rbp, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movabs r13, 0x20c49ba5e353f7cf
cmp rdi, rcx
je 0x1400ad707
mov rax, rdi
shr rax, 3
mul r13
shr rdx, 4
imul rax, rdx, 0x3e8
cmp rax, rdi
adc rdx, 0
mov rax, rdx
shr rax, 0x20
jne 0x1400ad707
mov rcx, qword [rsi]
call r12
test eax, eax
jne 0x1400ad89d
mov dil, 1
cmp byte [rsi + 8], 0
je 0x1400ad716
cmp byte [rsp + 0xa0], 0
jne 0x1400ad724
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14012f6f0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x150]
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 0xffffffff
jmp 0x1400ad6b8
mov rbx, rcx
jmp 0x1400ad66e
test byte [0x1402279e0], 0x19
je 0x1400ad6cf
jmp 0x1400add7f
lea rcx, [rsp + 0x60]
call fcn.1400ae4f0
jmp 0x1400ad6d9
mov rcx, rbx
call fcn.1400ad040
jmp 0x1400ad799
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x24
call fcn.1400bab70
cmp byte [rsp + 0xa0], 0
jne 0x1400add69
movabs r14, 0xfffffffc00000000
mov eax, dword [0x140228d28]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0x180]
mov rax, rbx
and rax, r14
cmp rax, qword [0x140219dc8]
je 0x1400ad730
mov qword [rsp + 0x60], rbx
mov eax, dword [0x140228d28]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r15, [rax + 0x188]
mov rbx, qword [r15]
and r14, rbx
cmp r14, qword [0x140219dc8]
je 0x1400add5c
lea rax, [rsp + 0x60]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r15
mov rcx, qword [r15]
mov qword [r15], rax
mov qword [rax + 0x18], rcx
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400ad865
xor ecx, ecx
mov byte [rsp + 0x80], cl
xor ecx, ecx
mov byte [rsp + 0x88], cl
mov byte [rsp + 0x98], cl
mov edx, dword [0x140228d28]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x1a0], cl
je 0x1400ad86a
test rax, rax
jne 0x1400ad915
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400ad841
cmp qword [rsp + 0x68], 0
jne 0x1400ad841
xor edx, edx
call fcn.140127da0
test byte [0x1402270d0], 0x19
jne 0x1400ad979
mov byte [rsp + 0xa0], 1
movabs rcx, 0x7fffffffffffffff
jmp 0x1400ad5e0
mov cl, byte [rax + 0x20]
jmp 0x1400ad7ed
mov eax, dword [0x140233938]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400adc84
cmp byte [0x140233934], 0
jne 0x1400ad828
jmp 0x1400adc7a
mov rax, qword [0x140228618]
lea rcx, [0x14012b780]
cmp rax, rcx
jne 0x1400adccd
mov qword [rsp + 0xf0], 0
mov rcx, r14
call rbp
mov rax, qword [rsp + 0xf0]
cmp rax, r15
jge 0x1400ade65
imul rax, rax, 0xf4240
cqo
idiv qword [0x140231a18]
xor ecx, ecx
cmp rbx, rax
setns cl
movabs rdx, 0x7fffffffffffffff
add rcx, rdx
mov rdi, rbx
sub rdi, rax
cmovo rdi, rcx
mov rcx, rdx
jg 0x1400ad68e
xor edi, edi
jmp 0x1400ad6cf
cmp byte [rax + 0x38], 0
je 0x1400ad828
jmp 0x1400adee4
mov rax, r12
and rax, 0xfffffffffffffff8
add rax, 8
mov r13, r12
or r13, 7
cmp r13, 0x17
cmove r13, rax
inc r13
mov rcx, r13
call fcn.14012cd5c
mov rcx, rax
mov qword [rsp + 0x130], rax
movabs rax, 0x7fffffffffffffff
inc rax
or rax, r13
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x138], r12
jmp 0x1400adac5
lea rbx, [rsp + 0xd0]
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x1402270d0]
lea r9, str.ScopedBlockingCallWithBaseSyncPrimitives
mov rcx, rbx
mov dl, 0x42
call fcn.1401063a0
mov rax, qword [rbx]
test rax, rax
je 0x1400adbf3
mov cl, byte [rsp + 0xe8]
mov rdx, qword [rsp + 0xd8]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rdx
xor eax, eax
mov qword [rsp + 0xc0], rax
mov byte [rsp + 0xc8], cl
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x100], rax
mov eax, dword [rsp + 0xb9]
mov dword [rsp + 0x101], eax
movzx eax, word [rsp + 0xbd]
mov word [rsp + 0x105], ax
mov al, byte [rsp + 0xbf]
mov byte [rsp + 0x107], al
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x108], rax
mov al, byte [rsp + 0xc8]
mov byte [rsp + 0x110], al
mov rcx, qword [rsp + 0xf8]
mov edx, 0x21
call fcn.1400f42b0
mov r15, qword [rsp + 0x48]
test r15, r15
je 0x1400ade8c
mov rbx, rax
mov rcx, r15
call fcn.140150e00
mov r12, rax
movabs rax, 0x7fffffffffffffff
lea rbp, [rax - 8]
cmp r12, rbp
ja 0x1400ade4b
lea r14, [rsp + 0x130]
cmp r12, 0x16
ja 0x1400ad924
mov byte [rsp + 0x147], r12b
mov rcx, r14
lea r13, [rcx + r12]
cmp rcx, r15
ja 0x1400adad7
cmp r13, r15
ja 0x1400adeb8
test r12, r12
je 0x1400adae7
mov rdx, r15
mov r8, r12
call fcn.140131180
mov byte [r13], 0
movzx eax, byte [rsp + 0x147]
mov r9d, eax
and r9d, 0x7f
test al, al
cmovs r9, qword [rsp + 0x138]
cmovs r14, qword [rsp + 0x130]
mov rcx, rbx
mov edx, 2
mov r8, r14
call fcn.1400ae900
cmp byte [rsp + 0x147], 0
jns 0x1400adb36
mov rcx, qword [rsp + 0x130]
call fcn.14012cd4c
mov r15, qword [rsp + 0x40]
test r15, r15
je 0x1400ade8c
mov rcx, r15
call fcn.140150e00
cmp rax, rbp
ja 0x1400ade58
mov r12, rax
lea r14, [rsp + 0x118]
cmp rax, 0x16
ja 0x1400adc25
mov byte [rsp + 0x12f], r12b
mov rcx, r14
lea r13, [rcx + r12]
cmp rcx, r15
ja 0x1400adb87
cmp r13, r15
ja 0x1400adeb8
test r12, r12
je 0x1400adb97
mov rdx, r15
mov r8, r12
call fcn.140131180
mov byte [r13], 0
movzx eax, byte [rsp + 0x12f]
mov r9d, eax
and r9d, 0x7f
test al, al
cmovs r9, qword [rsp + 0x120]
cmovs r14, qword [rsp + 0x118]
mov rcx, rbx
mov edx, 3
mov r8, r14
call fcn.1400ae900
cmp byte [rsp + 0x12f], 0
js 0x1400adc16
lea rcx, [rsp + 0xf0]
call fcn.1401063b0
lea rcx, [rsp + 0xa8]
call fcn.1401063b0
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x1400ad84e
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140243008]
jmp 0x1400ad84e
mov rcx, qword [rsp + 0x118]
call fcn.14012cd4c
jmp 0x1400adbd9
mov rax, r12
and rax, 0xfffffffffffffff8
add rax, 8
mov r13, r12
or r13, 7
cmp r13, 0x17
cmove r13, rax
inc r13
mov rcx, r13
call fcn.14012cd5c
mov rcx, rax
mov qword [rsp + 0x118], rax
movabs rax, 0x7fffffffffffffff
inc rax
or rax, r13
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x120], r12
jmp 0x1400adb75
mov rax, qword [rsp + 0x68]
jmp 0x1400ad81f
lea rcx, [0x140233938]
call fcn.14012ce30
cmp dword [0x140233938], 0xffffffff
jne 0x1400ad88f
mov rcx, qword [0x140231be8]
test rcx, rcx
je 0x1400adcb5
lea rdx, str.enable_background_thread_pool
call fcn.140111ee0
mov byte [0x140233934], 1
lea rcx, [0x140233938]
call fcn.14012ce98
jmp 0x1400ad88f
lea rdi, [rsp + 0xf0]
mov rcx, rdi
call qword [0x140243008]
mov rax, qword [rdi]
jmp 0x1400ad8e6
lea rbx, [rsp + 0xa8]
mov rcx, rbx
call qword [0x140243008]
mov rbx, qword [rbx]
jmp 0x1400ad648
mov rcx, qword [0x140231a18]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rbx, rax
add rbx, r8
jmp 0x1400ad648
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14012f6f0
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x150]
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x14008bbf0
mov rcx, rbx
call fcn.1400ad040
jmp 0x1400ad7cb
lea rbx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400ae4f0
mov byte [rbx + 0x40], 0
jmp 0x1400ad766
mov rbx, qword [0x14022ff78]
lea r14, [rsp + 0xd0]
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x1402279e0]
lea r9, str.WaitableEvent::Wait_Complete
mov rcx, r14
mov dl, 0x49
call fcn.1401063a0
mov rcx, qword [r14]
test rcx, rcx
je 0x1400ade28
xor rbx, rsi
mov al, byte [rsp + 0xe8]
mov rdx, qword [rsp + 0xd8]
lea rsi, [rsp + 0xa8]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
xor r14d, r14d
mov qword [rsi + 0x18], r14
mov byte [rsi + 0x20], al
mov edx, 0x30
mov r8, rbx
call fcn.14011b890
lea rcx, [rsp + 0xf0]
mov qword [rcx], r14
mov qword [rsi], r14
movups xmm0, xmmword [rsi + 8]
movups xmm1, xmmword [rsi + 0x11]
movups xmmword [rcx + 8], xmm0
movups xmmword [rcx + 0x11], xmm1
call fcn.1401063b0
mov rcx, rsi
call fcn.1401063b0
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x1400ad6cf
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140243008]
jmp 0x1400ad6cf
lea rcx, [rsp + 0x130]
call fcn.140167fb0
lea rcx, [rsp + 0x118]
call fcn.140167fb0
mov rcx, qword [0x140231a18]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400ad8e6
lea rax, str.basic_string_const_char__detected_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0x3a7
call fcn.140167fb0
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1____n
mov r8d, 0xf3
call fcn.140167fb0
mov rbx, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test rbx, rbx
je 0x1400ad828
lock dec dword [rbx]
jne 0x1400ad828
mov rcx, rbx
call fcn.14000baa0
mov rcx, rbx
call fcn.14012cd4c
jmp 0x1400ad828