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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140391620]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
xor r15d, r15d
cmp dword [0x1403a1c44], 1
jne 0x14006ba2c
mov eax, dword [rcx + 0x88]
cmp dword [0x1403a1c34], eax
jae 0x14006ba1c
lea r14, [rcx + 0x2a8]
movabs rdi, 0x8000000000000002
movabs rbx, 0x8000000000000001
movabs r13, 0x7fffffffffffffff
movabs r12, 0x7ffffffffffffffe
movsd xmm6, qword [0x1403444b0]
lea rcx, [rsp + 0x58]
call fcn.14004b1d0
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + r13]
cmp rax, 0xfffffffffffffffc
jbe 0x14006b80e
lea rax, [rcx + rdi]
test rax, 0xfffffffffffffffc
jne 0x14006b80e
cmp rcx, rbx
je 0x14006b80e
cmp rcx, r12
je 0x14006b8a0
lea rax, [rcx + r13]
cmp rax, 0xfffffffffffffffd
ja 0x14006b815
add rcx, 0x2dc6c0
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x48], 0
test r14, r14
je 0x14006baaf
mov rcx, r14
call fcn.14006af50
mov byte [rsp + 0x48], 1
mov eax, 1
movzx r9d, ax
movzx r8d, ax
mov edx, 0x7b2
lea rcx, [rsp + 0x50]
call fcn.140037180
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x60], r15
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.14004db00
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + r13]
cmp rax, 0xfffffffffffffffc
jbe 0x14006b8ab
lea rax, [rcx + rdi]
test rax, 0xfffffffffffffffc
jne 0x14006b8ab
cmp rcx, rbx
je 0x14006b8ab
cmp rcx, r12
je 0x14006b8a8
lea rax, [rcx + r13]
jmp 0x14006b8ab
mov rcx, r12
jmp 0x14006b815
mov rcx, r12
mov qword [rsp + 0x70], rcx
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x78]
call fcn.140045c40
mov rdi, qword [rax]
movabs rax, 0x431bde82d7b634db
imul rdi
mov rbx, rdx
sar rbx, 0x12
mov rax, rbx
shr rax, 0x3f
add rbx, rax
imul rax, rbx, 0xf4240
sub rdi, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x2c]
shl rcx, 0x20
mov eax, dword [rsp + 0x28]
or rcx, rax
imul rdx, rcx, 0x64
movabs rax, 0x5e6684f4b3960000
add rdx, rax
imul rax, rbx, 0xf4240
add rax, rdi
imul rbx, rax, 0x3e8
sub rbx, rdx
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x14006b941
mov rax, r15
jmp 0x14006b997
cmp qword [rsp + 0x38], 0
jg 0x14006b94e
mov rax, r15
jmp 0x14006b997
mov edi, r15d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14006b976
inc edi
cmp edi, 3
ja 0x14006b93c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14006b960
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x30]
mulsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x38]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
add rax, rbx
mov qword [rbp - 0x80], rax
lea rcx, [rsi + 0x300]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x40]
call fcn.14006be10
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
nop
cmp byte [rsp + 0x48], 0
je 0x14006b9f6
mov rcx, qword [rsp + 0x40]
mov eax, 0x80000000
lock xadd dword [rcx], eax
bt eax, 0x1e
jb 0x14006b9f6
cmp eax, 0x80000000
jle 0x14006b9f6
lock bts dword [rcx], 0x1e
jb 0x14006b9f6
call fcn.1400380d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov eax, dword [rsi + 0x88]
cmp dword [0x1403a1c34], eax
movabs rbx, 0x8000000000000001
movabs rdi, 0x8000000000000002
jb 0x14006b7d1
mov eax, dword [rsi + 0x80]
nop
cmp eax, 1
je 0x14006ba2c
xor al, al
jmp 0x14006ba7d
mov dword [0x1403a1c58], r15d
mov dword [0x1403a1c50], r15d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
movzx ebx, al
cmp dword [0x1403a1c44], 1
jne 0x14006ba7a
mov ecx, dword [rsi + 0x88]
inc ecx
mov dword [0x1403a1c34], ecx
cmp dword [0x1403a1c40], ecx
jne 0x14006ba6e
mov dword [0x1403a1c34], r15d
jmp 0x14006ba7a
lea rcx, [rsi + 0x300]
call fcn.14006b330
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140255050
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, str.boost_unique_lock_has_no_mutex
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.14006adf0
nop
mov rcx, rax
call fcn.14006c020
int3