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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rsi, rcx
lea rax, [rcx + 0x10]
mov qword [rbp - 0x40], rax
lea r12, [rcx + 8]
movabs r15, 0xaaaaaaaaaaaaaaaa
lea r13, [rbp - 0x28]
xorps xmm6, xmm6
movabs r14, 0x7fffffffffffffff
jmp 0x1400ca090
mov ecx, 1
call fcn.1400018d0
nop word [rax + rax]
movabs rax, 0xaaaaaaaaaaaaaa01
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x38], rsi
mov rcx, rsi
call fcn.1400ca400
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x1400ca0de
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1400ca0f0
mov rcx, r12
lea rdx, [rbp - 0x38]
call fcn.140001270
mov rdi, qword [rsi + 0x10]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1400ca2ef
test rdi, rdi
je 0x1400ca0bc
mov rax, qword [rbp - 0x40]
movups xmmword [rax], xmm6
jmp 0x1400ca28f
jle 0x1400ca285
mov eax, dword [0x140223ff8]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ca30a
mov qword [rbp - 0x28], r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov qword [rbp - 0x28], r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rdi, qword [rbp - 0x28]
movabs rax, 0xfe624e212ac18000
lea rcx, [rdi + rax]
mov rax, rcx
movabs rdx, 0x6666666666666667
imul rdx
movabs rax, 0xfe624e212ac18009
add rdi, rax
cmp rdi, 0x13
jb 0x1400ca38e
mov rax, r14
movabs rdi, 0x147ae147ae147af
cmp rcx, rdi
jg 0x1400ca1ae
movabs rax, 0x8000000000000000
movabs rdi, 0xfeb851eb851eb851
cmp rcx, rdi
jl 0x1400ca1ae
mov rax, rdx
shr rax, 0x3f
sar rdx, 2
add rdx, rax
imul rax, rdx, 0x3e8
mov rdx, r14
movabs rcx, 0x20c49ba5e353f7
cmp rbx, rcx
ja 0x1400ca1c7
imul rdx, rbx, 0x3e8
mov rbx, r14
sub rbx, rdx
mov rcx, r14
cmp rax, rbx
jg 0x1400ca1db
add rax, rdx
mov rcx, rax
cmp byte [rbp - 0x30], 0
je 0x1400ca3a4
movabs rax, 0x59682f000000e941
cmp rcx, rax
jge 0x1400ca395
mov qword [rbp - 0x20], r15
mov rax, rcx
movabs rdx, 0x112e0be826d694b3
imul rdx
mov rax, rdx
shr rax, 0x3f
sar rdx, 0x1a
add rdx, rax
mov qword [rbp - 0x28], rdx
imul eax, edx, 0xc4653600
add ecx, eax
mov dword [rbp - 0x20], ecx
mov rdx, qword [rbp - 0x38]
mov rcx, r12
mov r8, r13
call fcn.1400012e0
cmp eax, 0x8a
jne 0x1400ca2fd
mov eax, dword [0x140223ff8]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ca34c
mov qword [rbp - 0x28], r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x40]
mov rdi, qword [rax]
test rdi, rdi
jne 0x1400ca0de
mov qword [rsi + 0x18], 0
xor edi, edi
cmp byte [rbp - 0x30], 0
je 0x1400ca29e
mov rcx, qword [rbp - 0x38]
call fcn.1400ca410
test rdi, rdi
je 0x1400ca07d
mov rcx, rdi
call fcn.1400ca420
lock dec dword [rdi]
jne 0x1400ca090
lea rcx, [rdi + 0x18]
call fcn.1400011e0
mov rbx, qword [rdi + 0x10]
mov qword [rdi + 0x10], 0
test rbx, rbx
je 0x1400ca2e2
mov rcx, rbx
call fcn.140001180
mov rcx, rbx
call fcn.1400013a0
mov rcx, rdi
call fcn.1400013a0
jmp 0x1400ca090
test rdi, rdi
je 0x1400ca0b7
jmp 0x1400ca0de
test eax, eax
je 0x1400ca243
jmp 0x1400ca3b5
lea rcx, [0x140223ff8]
call fcn.14011d638
cmp dword [0x140223ff8], 0xffffffff
jne 0x1400ca11b
mov qword [rbp - 0x28], r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword [rbp - 0x28]
mov qword [0x140223ff0], rax
lea rcx, [0x140223ff8]
call fcn.14011d5d8
jmp 0x1400ca11b
lea rcx, [0x140223ff8]
call fcn.14011d638
cmp dword [0x140223ff8], 0xffffffff
jne 0x1400ca268
mov qword [rbp - 0x28], r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword [rbp - 0x28]
mov qword [0x140223ff0], rax
lea rcx, [0x140223ff8]
call fcn.14011d5d8
jmp 0x1400ca268
xor eax, eax
jmp 0x1400ca1ae
movabs rcx, 0x59682f000000e941
jmp 0x1400ca1f8
lea rdx, str.condition_variable::timed_wait:_mutex_not_locked
mov ecx, 1
call fcn.14016c7e0
lea rdx, str.condition_variable_timed_wait_failed
mov ecx, eax
call fcn.14016c7e0
int3