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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm6, xmmword [0x14029ca60]
movups xmmword [rdx + 0x78], xmm6
mov rdx, qword [rcx]
mov r8, qword [rdx + 8]
mov rcx, qword [rdx + 0x18]
inc r8
xor eax, eax
cmp r8, qword [rdx]
cmove r8, rax
imul rdx, r8, 0xa8
mov r8, qword [rcx + rdx]
mov qword [rsi], r8
mov qword [rcx + rdx], 0
movups xmm0, xmmword [rcx + rdx + 8]
movups xmm1, xmmword [rcx + rdx + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov r8, qword [rcx + rdx + 0x75]
mov qword [rsi + 0x75], r8
movups xmm0, xmmword [rcx + rdx + 0x68]
movups xmmword [rsi + 0x68], xmm0
movups xmm0, xmmword [rcx + rdx + 0x28]
movups xmm1, xmmword [rcx + rdx + 0x38]
movups xmm2, xmmword [rcx + rdx + 0x48]
movups xmm3, xmmword [rcx + rdx + 0x58]
movups xmmword [rsi + 0x58], xmm3
movups xmmword [rsi + 0x48], xmm2
movups xmmword [rsi + 0x38], xmm1
movups xmmword [rsi + 0x28], xmm0
movzx r8d, word [rcx + rdx + 0x80]
mov word [rsi + 0x80], r8w
movzx r8d, byte [rcx + rdx + 0x82]
mov byte [rsi + 0x82], r8b
mov r8, qword [rcx + rdx + 0x88]
mov qword [rsi + 0x88], r8
mov qword [rcx + rdx + 0x88], 0
mov r8, qword [rcx + rdx + 0x90]
mov qword [rsi + 0x90], r8
mov r8, qword [rcx + rdx + 0x98]
mov qword [rsi + 0x98], r8
mov qword [rcx + rdx + 0x98], 0
mov rcx, qword [rcx + rdx + 0xa0]
mov qword [rsi + 0xa0], rcx
mov rcx, qword [rdi]
mov rdx, qword [rcx + 8]
mov rbx, qword [rcx + 0x18]
inc rdx
cmp rdx, qword [rcx]
cmove rdx, rax
mov qword [rcx + 8], rdx
imul r14, rdx, 0xa8
mov rcx, qword [rbx + r14 + 0x98]
test rcx, rcx
jne 0x14016fcf9
lea r15, [rbx + r14]
mov rbx, qword [rbx + r14 + 0x88]
test rbx, rbx
jne 0x14016fca0
mov rcx, qword [r15]
test rcx, rcx
jne 0x14016fce1
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 8]
jne 0x14016fa24
mov rcx, qword [rax + 0x20]
test rcx, rcx
jne 0x14016fd5a
dec qword [rdi + 0x10]
jne 0x14016fc58
movabs r13, 0xaaaaaaaaaaaaaaaa
movabs r12, 0x8637bd05af7
cmp dword [rdi + 0x70], 0
jne 0x14016fbab
mov rbp, qword [rdi + 0x30]
cmp qword [rdi + 8], 0
je 0x14016fafd
mov qword [rsp + 0x60], r13
mov rax, qword [0x1402da988]
lea rcx, [0x1401c94c0]
cmp rax, rcx
jne 0x14016fd2c
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x90]
cmp rax, r12
jge 0x14017010e
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402e4008]
mov qword [rsp + 0x60], rax
cmp rax, qword [rdi + 0x20]
jl 0x14016fafd
mov rax, qword [rdi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x18], rcx
test rax, rax
je 0x14016fafd
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14016fae8
cmp rcx, r8
jb 0x14016fde4
lea rbx, [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14016fd4c
mov rax, qword [rdi]
mov rcx, qword [rbp + 0x30]
mov qword [rdi], rcx
mov qword [rbp + 0x30], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rbp + 0x38]
mov qword [rdi + 8], rcx
mov qword [rbp + 0x38], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rbp + 0x40]
mov qword [rdi + 0x10], rcx
mov qword [rbp + 0x40], rax
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbp + 0x48]
mov qword [rdi + 0x18], rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rdi + 0x20]
mov rcx, qword [rbp + 0x50]
mov qword [rdi + 0x20], rcx
mov qword [rbp + 0x50], rax
cmp byte [rbp + 0x168], 0
jne 0x14016ff90
mov rax, qword [rbp + 0xb8]
cmp qword [rax + 0x10], 0
sete byte [rbp + 0x58]
cmp qword [rbp + 0xa8], 0
movzx eax, byte [rbp + 0x138]
jne 0x14016fb9f
test al, al
je 0x14016fd86
movzx eax, byte [rbp + 0x158]
xor al, 1
mov byte [rbp + 0x59], al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rdi + 8], 0
je 0x14016fc58
mov qword [rsp + 0x60], r13
mov rax, qword [0x1402da988]
lea rcx, [0x1401c94c0]
cmp rax, rcx
jne 0x14016fd0c
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x90]
cmp rax, r12
jge 0x1401700e7
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402e4008]
mov qword [rsp + 0x60], rax
cmp rax, qword [rdi + 0x20]
jl 0x14016fc58
mov rax, qword [rdi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x18], rcx
test rax, rax
je 0x14016fc58
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14016fc43
cmp rcx, r8
jb 0x14016fdbb
mov rcx, qword [rdi + 0x28]
mov rdx, rdi
call fcn.14016e8a0
test byte [0x1402da240], 9
jne 0x14016fe50
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401ce5b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lock dec dword [rbx + 8]
jne 0x14016f9fe
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x1402386a0]
cmp qword [rcx + 0x10], rdx
jne 0x14016fcce
lea rcx, [0x140008640]
cmp rax, rcx
je 0x14016fd8d
mov rcx, rbx
mov edx, 1
call qword [0x1402f5008]
jmp 0x14016f9fe
lock dec dword [rcx]
jne 0x14016fa0a
mov rax, qword [rcx + 0x10]
call qword [0x1402f5008]
jmp 0x14016fa0a
lock dec dword [rcx]
jne 0x14016f9e9
call fcn.1401cbbbc
jmp 0x14016f9e9
lea rbx, [rsp + 0x60]
mov rcx, rbx
call qword [0x1402f5008]
mov rax, qword [rbx]
cmp rax, qword [rdi + 0x20]
jge 0x14016fc18
jmp 0x14016fc58
lea rbx, [rsp + 0x60]
mov rcx, rbx
call qword [0x1402f5008]
mov rax, qword [rbx]
cmp rax, qword [rdi + 0x20]
jge 0x14016fabd
jmp 0x14016fafd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14016fb12
mov qword [rax + 0x20], 0
mov rbx, qword [rdi]
mov qword [rdi], rcx
test rbx, rbx
je 0x14016fa24
mov rcx, rbx
call fcn.14016f780
mov rcx, rbx
call fcn.1401cbbbc
jmp 0x14016fa24
xor eax, eax
jmp 0x14016fb9f
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14016fd9f
lock dec dword [rcx]
je 0x14016fe46
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x14016fdae
lock dec dword [r14]
je 0x14016fe0d
mov rcx, rbx
call fcn.1401cbbbc
jmp 0x14016f9fe
mov rcx, rdi
call fcn.14014c790
mov eax, 0x4c4b40
add rax, qword [rsp + 0x60]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rdi + 0x20], rcx
jmp 0x14016fc58
mov rcx, rdi
call fcn.14014c790
mov eax, 0x4c4b40
add rax, qword [rsp + 0x60]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rdi + 0x20], rcx
jmp 0x14016fafd
mov rcx, qword [r14 + 0x20]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
je 0x140170135
mov qword [r14 + 0x20], 0
lea rcx, [r14 + 8]
call fcn.1400085a0
mov rcx, r14
call fcn.1401cbbbc
jmp 0x14016fdae
call fcn.1401cbbbc
jmp 0x14016fd9f
mov r14, qword [rdi + 0x30]
mov rax, qword [r14 + 0x18]
mov ebx, dword [rax + 4]
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.1401c9560
cmp ebx, dword [rdi]
jne 0x14016fc71
lea rbx, [r14 + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14016fe8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [r14 + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [r14 + 0xb0]
mov rcx, qword [r14 + 0xb8]
mov r13, qword [rcx + 0x10]
mov r12, qword [rax + 0x10]
mov rbp, qword [r14 + 0xd0]
mov r15, qword [r14 + 0xc8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test byte [0x1402da240], 0x19
je 0x14016fc71
sub rbp, r15
shr rbp, 3
imul eax, ebp, 0x3cf3cf3d
add r13d, dword [rsp + 0x58]
add r12d, eax
add r12d, r13d
mov ecx, dword [r14 + 8]
call fcn.140252620
mov rbx, rax
lea r14, [rsp + 0x60]
mov rcx, r14
call fcn.1401c9410
call sub.KERNEL32.dll_GetCurrentThreadId
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rcx
mov word [rsp + 0x90], 0x301
lea rcx, [0x1402a44cf]
mov qword [rsp + 0x98], rcx
movsxd rcx, r12d
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
lea rdx, [0x1402da240]
mov cl, 0x43
mov r8, rbx
xor r9d, r9d
call fcn.1402331d0
mov rcx, rdi
call fcn.140218680
jmp 0x14016fc71
call fcn.140207060
lea r14, [rsp + 0x80]
movaps xmmword [r14], xmm6
mov rdx, qword [rdi]
mov rcx, r14
call fcn.140206670
mov rax, qword [r14]
test rax, rax
je 0x14017001a
lea r15, [rsp + 0x80]
xor r14d, r14d
cmp byte [rbp + 0x168], 0
je 0x14016ff8b
imul rdx, qword [rsp + 0x88], 0xa8
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + rdx + 0x28]
cmp rax, qword [rbp + 0x160]
jge 0x14017001f
mov rcx, r15
call fcn.140206480
mov rax, qword [rsp + 0x80]
test rax, rax
jne 0x14016ffba
mov rax, qword [0x1402cbde0]
and rax, r14
cmp rax, qword [0x1402cbdc8]
jne 0x14016fb6d
mov rcx, r14
call fcn.1401509f0
jmp 0x14016fb6d
xor r14d, r14d
jmp 0x14016fff6
add rcx, rdx
mov byte [rbp + 0x168], 0
lea r14, [rsp + 0x60]
mov rdx, r14
call fcn.14017dda0
lea r15, [rsp + 0x90]
mov rcx, r15
mov rdx, r14
call fcn.140138c40
lea r14, [rbp + 0x140]
mov rcx, r14
mov rdx, r15
call fcn.1402516c0
cmp byte [rbp + 0x158], 0
je 0x1401700bb
mov rcx, qword [rbp + 0xb8]
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x90]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
call fcn.140253520
cmp byte [rbp + 0x158], 0
je 0x1401700bb
mov rcx, qword [rbp + 0xb0]
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x60]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
call fcn.140253520
mov r14, qword [rsp + 0x80]
jmp 0x14016fff6
lea rax, str.optional_operator_called_on_a_disengaged_value
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcincludeoptional
lea r9, str.this__has_value__
mov r8d, 0x406
call fcn.140207060
mov rcx, qword [0x1402e4008]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14016fc0d
mov rcx, qword [0x1402e4008]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14016fab2
call fcn.1401509f0
jmp 0x14016fe28