Function at 0x1400d8730
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, 0x188
movaps xmmword [rsp + 0x170], xmm6
mov rdi, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x168], rax
test rdx, rdx
jle 0x1400d8e09
mov rbx, rdx
movaps xmm6, xmmword [0x140268c70]
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x150], xmm6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x160], rax
mov byte [rsp + 0x110], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x118], xmm0
movups xmmword [rsp + 0x128], xmm0
movups xmmword [rsp + 0x138], xmm0
movups xmmword [rsp + 0x148], xmm0
mov qword [rsp + 0x158], 0
cmp byte [rdi + 8], 0
je 0x1400d89d8
movabs r12, 0x7fffffffffffffff
movabs r13, 0x8637bd05af7
cmp rbx, r12
je 0x1400d893a
mov rax, qword [0x14029adc8]
lea rcx, [0x14017e8a0]
cmp rax, rcx
jne 0x1400d8dc2
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x88]
cmp rax, r13
jge 0x1400d8ddf
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402ac9c8]
mov r14, rax
lea rax, [r14 + rbx]
sar rax, 0x3f
movabs rcx, 0x8000000000000000
xor rcx, rax
add r14, rbx
cmovo r14, rcx
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r15, [rsp + 0x88]
movabs rsi, 0x20c49ba5e353f7cf
cmp rbx, r12
je 0x1400d8933
lea rax, [r12 + rbx]
add rax, 2
cmp rax, 2
jb 0x1400d8dd8
mov rax, rbx
imul rsi
mov rax, rdx
mov rcx, rdx
shr rcx, 0x3f
sar rax, 7
add rax, rcx
imul rcx, rax, 0x3e8
xor edx, edx
cmp rbx, rcx
setg dl
xor ecx, ecx
add rdx, rax
setns cl
neg ecx
mov rax, rdx
shr rax, 0x20
cmovne edx, ecx
mov rcx, qword [rdi]
call rbp
test eax, eax
jne 0x1400d895f
mov bl, 1
cmp byte [rdi + 8], 0
je 0x1400d8942
cmp byte [rsp + 0x110], 0
jne 0x1400d8950
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1401830b0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 0xffffffff
jmp 0x1400d88ea
mov r14, r12
jmp 0x1400d887c
test byte [0x14029a160], 0x19
je 0x1400d88fb
jmp 0x1400d8e3c
lea rcx, [rsp + 0x118]
call fcn.14011f330
jmp 0x1400d8905
mov rax, qword [0x14029adc8]
lea rcx, [0x14017e8a0]
cmp rax, rcx
jne 0x1400d8d68
mov qword [rsp + 0x88], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x88]
cmp rax, r13
jge 0x1400d8f41
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402ac9c8]
xor ecx, ecx
cmp r14, rax
setns cl
add rcx, r12
mov rbx, r14
sub rbx, rax
cmovo rbx, rcx
jg 0x1400d8895
xor ebx, ebx
jmp 0x1400d88fb
mov rcx, r14
call fcn.1400d8270
jmp 0x1400d8a29
movabs rsi, 0xfffffffc00000000
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x24
call fcn.1400e92c0
mov eax, dword [0x1402a76e4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x1a0]
mov rax, r14
and rax, rsi
cmp rax, qword [0x1402a6e88]
je 0x1400d89ce
mov qword [rsp + 0x118], r14
mov eax, dword [0x1402a76e4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r15, [rax + 0x1a8]
mov r14, qword [r15]
and rsi, r14
cmp rsi, qword [0x1402a6e88]
je 0x1400d8d81
mov qword [rsp + 0x120], r14
mov qword [rsp + 0x128], r15
mov rax, qword [r15]
lea rcx, [rsp + 0x118]
mov qword [r15], rcx
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x120]
test rax, rax
jne 0x1400d8af8
xor ecx, ecx
mov byte [rsp + 0x138], cl
mov byte [rsp + 0x140], 0
mov ecx, dword [0x1402a76e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp byte [rcx + 0x200], 0
je 0x1400d8afd
test rax, rax
jne 0x1400d8b30
mov rcx, qword [rsp + 0x118]
test rcx, rcx
je 0x1400d8ae2
cmp qword [rsp + 0x120], 0
jne 0x1400d8ae2
xor edx, edx
call fcn.140152c80
test byte [0x140299870], 0x19
jne 0x1400d8b3b
mov byte [rsp + 0x110], 1
jmp 0x1400d87ee
mov cl, byte [rax + 0x20]
jmp 0x1400d8a93
mov eax, dword [0x1402b2b28]
mov ecx, dword [0x1402a76e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d8d1f
cmp byte [0x1402b2b24], 0
jne 0x1400d8ac3
jmp 0x1400d8d12
cmp byte [rax + 0x28], 0
je 0x1400d8ac3
jmp 0x1400d8d8e
lea r14, [rsp + 0xe0]
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140299870]
lea r9, str.ScopedBlockingCallWithBaseSyncPrimitives
mov rcx, r14
mov dl, 0x42
call fcn.14012fad0
mov rax, qword [r14]
test rax, rax
je 0x1400d8ce0
mov cl, byte [rsp + 0xf8]
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rdx
xor eax, eax
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x80], cl
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x71]
mov dword [rsp + 0x99], eax
movzx eax, word [rsp + 0x75]
mov word [rsp + 0x9d], ax
mov al, byte [rsp + 0x77]
mov byte [rsp + 0x9f], al
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rax
mov al, byte [rsp + 0x80]
mov byte [rsp + 0xa8], al
mov rcx, qword [rsp + 0x90]
mov edx, 0x21
call fcn.1401076d0
mov r14, rax
mov rdx, qword [rsp + 0x48]
lea r15, [rsp + 0xc8]
mov rcx, r15
call fcn.1401beb80
movzx r9d, byte [r15 + 0x17]
test r9b, r9b
jns 0x1400d8c4f
mov r9, qword [rsp + 0xd0]
mov r15, qword [rsp + 0xc8]
jmp 0x1400d8c53
and r9d, 0x7f
mov rcx, r14
mov edx, 2
mov r8, r15
call fcn.140107ad0
cmp byte [rsp + 0xdf], 0
jns 0x1400d8c7a
mov rcx, qword [rsp + 0xc8]
call fcn.14018039c
mov rdx, qword [rsp + 0x40]
lea r15, [rsp + 0xb0]
mov rcx, r15
call fcn.1401beb80
movzx r9d, byte [r15 + 0x17]
test r9b, r9b
jns 0x1400d8cab
mov r9, qword [rsp + 0xb8]
mov r15, qword [rsp + 0xb0]
jmp 0x1400d8caf
and r9d, 0x7f
mov rcx, r14
mov edx, 3
mov r8, r15
call fcn.140107ad0
cmp byte [rsp + 0xc7], 0
js 0x1400d8d03
lea rcx, [rsp + 0x88]
call fcn.14012fae0
lea rcx, [rsp + 0x60]
call fcn.14012fae0
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x1400d8aeb
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401e9be0.0]
jmp 0x1400d8aeb
mov rcx, qword [rsp + 0xb0]
call fcn.14018039c
jmp 0x1400d8cc9
mov rax, qword [rsp + 0x120]
jmp 0x1400d8abe
lea rcx, [0x1402b2b28]
call fcn.1401805cc
cmp dword [0x1402b2b28], 0xffffffff
jne 0x1400d8b22
mov rcx, qword [0x1402acbd0]
test rcx, rcx
je 0x1400d8d50
lea rdx, str.enable_background_thread_pool
call fcn.1400e7a70
mov byte [0x1402b2b24], 1
lea rcx, [0x1402b2b28]
call fcn.140180634
jmp 0x1400d8b22
lea rbx, [rsp + 0x88]
mov rcx, rbx
call qword [case.0x1401e9be0.0]
mov rax, qword [rbx]
jmp 0x1400d89ac
mov rcx, r14
call fcn.1400d8270
jmp 0x1400d8a5e
mov r14, qword [rax + 0x38]
mov qword [rax + 0x38], 0
test r14, r14
je 0x1400d8ac3
lock dec dword [r14]
jne 0x1400d8ac3
mov rcx, r14
call fcn.14000f240
mov rcx, r14
call fcn.14018039c
jmp 0x1400d8ac3
lea r14, [rsp + 0x60]
mov rcx, r14
call qword [case.0x1401e9be0.0]
mov r14, qword [r14]
jmp 0x1400d8860
xor edx, edx
jmp 0x1400d88ea
mov rcx, qword [0x1402ac9c8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov r14, rax
add r14, r8
jmp 0x1400d8860
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1401830b0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x1400b84b0
xor rdi, qword [0x1402aae60]
lea rax, [fcn.14012fbe0]
mov qword [rsp + 0xf8], rax
lea rax, [0x14027dc08]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0xe8], rdi
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14029a160]
lea r9, str.WaitableEvent::Wait_Complete
mov rcx, rdi
mov dl, 0x49
call fcn.14012fad0
mov rax, qword [rdi]
test rax, rax
je 0x1400d8f02
lea rcx, [rsp + 0xe8]
mov dl, byte [rsp + 0x58]
mov r8, qword [rsp + 0x48]
xor esi, esi
lea rdi, [rsp + 0x60]
mov qword [rdi], rsi
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], r8
mov qword [rdi + 0x18], rsi
mov byte [rdi + 0x20], dl
mov rdx, rdi
call fcn.14012fbe0
mov rax, qword [rdi]
lea rcx, [rsp + 0x88]
mov qword [rcx], rax
mov qword [rdi], rsi
movups xmm0, xmmword [rdi + 8]
movups xmmword [rcx + 8], xmm0
movups xmm0, xmmword [rdi + 0x11]
movups xmmword [rcx + 0x11], xmm0
call fcn.14012fae0
mov rcx, rdi
call fcn.14012fae0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d8f19
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401e9be0.0]
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 8]
test rax, rax
je 0x1400d88fb
mov rcx, qword [rsp + 0xe8]
call qword [case.0x1401e9be0.0]
jmp 0x1400d88fb
mov rcx, qword [0x1402ac9c8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400d89ac