Function at 0x140153620
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, 0x618
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x610], rax
cmp qword [rcx + 0x28], 0
je 0x140153e8f
mov rsi, rcx
lea rdi, [rsp + 0xa0]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.1401d06e0
mov qword [rsp + 0x98], 0
cmp qword [rsi + 0x10], 0
je 0x140153e8f
xor r15d, r15d
lea r12, [0x1401ca7d0]
lea r13, [0x1401cb8c0]
mov rcx, qword [rsi]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
inc rax
cmp rax, rdx
mov r8, rax
cmove r8, r15
mov rbx, qword [rcx + 0x18]
imul r14, r8, 0xa8
mov rcx, qword [rbx + r14]
test rcx, rcx
je 0x140153787
mov rax, qword [rcx + 0x18]
cmp rax, r12
je 0x1401536e4
cmp rax, r13
je 0x14015375a
xor edx, edx
call qword [0x1402f5008]
test al, al
jne 0x140153776
cmp qword [rbx + r14 + 0xa0], 0
jne 0x140153743
mov rax, qword [rsp + 0x98]
cmp rax, 2
jae 0x140153982
cmp rax, 2
setae sil
test rax, rax
jne 0x140153734
mov rcx, qword [rsp + 0x610]
xor rcx, rsp
call fcn.1401ce5b0
mov eax, esi
add rsp, 0x618
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x98]
call fcn.140154060
jmp 0x14015370e
mov rax, qword [rbx + r14 + 0x98]
test rax, rax
je 0x140153776
movzx eax, byte [rax + 4]
test al, al
je 0x1401536ef
jmp 0x140153776
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140153776
movzx eax, byte [rax + 4]
test al, al
jne 0x140153776
cmp qword [rcx + 0x30], 0
jne 0x1401536e4
mov rcx, qword [rsi]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rbx, qword [rcx + 0x18]
inc rax
cmp rax, rdx
mov ecx, 0
cmovne rcx, rax
mov r8, qword [rsp + 0x98]
mov r10d, 8
test r8b, 1
je 0x1401537af
mov r10, qword [rsp + 0xa8]
imul rax, rcx, 0xa8
lea rdx, [rbx + rax]
mov r9, r8
shr r9, 1
cmp r9, r10
je 0x14015395a
mov rcx, rdi
test r8b, 1
je 0x1401537da
mov rcx, qword [rsp + 0xa0]
imul r8, r9, 0xa8
mov r9, rcx
add r9, r8
je 0x140153e96
mov r10, qword [rdx]
mov qword [r9], r10
mov qword [rdx], 0
movups xmm0, xmmword [rdx + 8]
movups xmm1, xmmword [rdx + 0x18]
movups xmmword [r9 + 0x18], xmm1
movups xmmword [r9 + 8], xmm0
mov r10, qword [rdx + 0x75]
mov qword [r9 + 0x75], r10
movups xmm0, xmmword [rdx + 0x68]
movups xmmword [r9 + 0x68], xmm0
movups xmm0, xmmword [rdx + 0x28]
movups xmm1, xmmword [rdx + 0x38]
movups xmm2, xmmword [rdx + 0x48]
movups xmm3, xmmword [rdx + 0x58]
movups xmmword [r9 + 0x58], xmm3
movups xmmword [r9 + 0x48], xmm2
movups xmmword [r9 + 0x38], xmm1
movups xmmword [r9 + 0x28], xmm0
movzx edx, byte [rbx + rax + 0x82]
mov byte [rcx + r8 + 0x82], dl
movzx edx, word [rbx + rax + 0x80]
mov word [rcx + r8 + 0x80], dx
mov rdx, qword [rbx + rax + 0x88]
mov qword [rcx + r8 + 0x88], rdx
mov qword [rbx + rax + 0x88], 0
mov rdx, qword [rbx + rax + 0x90]
mov qword [rcx + r8 + 0x90], rdx
mov rdx, qword [rbx + rax + 0x98]
mov qword [rcx + r8 + 0x98], rdx
mov qword [rbx + rax + 0x98], 0
mov rax, qword [rbx + rax + 0xa0]
mov qword [rcx + r8 + 0xa0], rax
add qword [rsp + 0x98], 2
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
mov rbp, qword [rax + 0x18]
inc rcx
cmp rcx, qword [rax]
jne 0x1401538d8
xor ecx, ecx
mov qword [rax + 8], rcx
imul r14, rcx, 0xa8
mov rcx, qword [rbp + r14 + 0x98]
test rcx, rcx
jne 0x14015393d
mov rbx, qword [rbp + r14 + 0x88]
test rbx, rbx
jne 0x140153932
add rbp, r14
mov rcx, qword [rbp]
test rcx, rcx
jne 0x140153949
mov rax, qword [rsi]
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 8]
jne 0x140153923
mov rcx, qword [rax + 0x20]
test rcx, rcx
jne 0x140153beb
dec qword [rsi + 0x10]
jne 0x140153693
jmp 0x1401536ef
lock dec dword [rbx + 8]
jne 0x1401538fd
jmp 0x140153c25
lock dec dword [rcx]
jne 0x1401538f0
call fcn.1401cbbbc
jmp 0x1401538f0
lock dec dword [rcx]
jne 0x140153909
mov rax, qword [rcx + 0x10]
call qword [0x1402f5008]
jmp 0x140153909
lea rcx, [rsp + 0x98]
call fcn.140155460
jmp 0x1401538c3
lea rdi, [rsp + 0x60]
mov rcx, rdi
call qword [0x1402f5008]
mov rax, qword [rdi]
jmp 0x140153a0b
cmp qword [rsi + 0x10], 0
jne 0x140153ba8
movabs r12, 0xaaaaaaaaaaaaaaaa
movabs r15, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x140153b02
mov r13, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x140153a51
mov qword [rsp + 0x60], r12
mov rax, qword [0x1402da988]
lea rcx, [0x1401c94c0]
cmp rax, rcx
jne 0x14015396c
lea rdi, [rsp + 0x5e0]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r15
jge 0x140154022
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402e4008]
mov qword [rsp + 0x60], rax
cmp rax, qword [rsi + 0x20]
jl 0x140153a51
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x18], rcx
test rax, rax
je 0x140153a51
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x140153a3c
cmp rcx, r8
jb 0x140153cb5
lea rdi, [r13 + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140153c17
mov rax, qword [rsi]
mov rcx, qword [r13 + 0x30]
mov qword [rsi], rcx
mov qword [r13 + 0x30], rax
mov rax, qword [rsi + 8]
mov rcx, qword [r13 + 0x38]
mov qword [rsi + 8], rcx
mov qword [r13 + 0x38], rax
mov rax, qword [rsi + 0x10]
mov rcx, qword [r13 + 0x40]
mov qword [rsi + 0x10], rcx
mov qword [r13 + 0x40], rax
mov rax, qword [rsi + 0x18]
mov rcx, qword [r13 + 0x48]
mov qword [rsi + 0x18], rcx
mov qword [r13 + 0x48], rax
mov rax, qword [rsi + 0x20]
mov rcx, qword [r13 + 0x50]
mov qword [rsi + 0x20], rcx
mov qword [r13 + 0x50], rax
cmp byte [r13 + 0x168], 0
jne 0x140153ec7
mov rax, qword [r13 + 0xb8]
cmp qword [rax + 0x10], 0
sete byte [r13 + 0x58]
cmp qword [r13 + 0xa8], 0
mov al, byte [r13 + 0x138]
jne 0x140153af5
test al, al
je 0x140153c85
mov al, byte [r13 + 0x158]
xor al, 1
mov byte [r13 + 0x59], al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi + 8], 0
je 0x140153ba8
mov qword [rsp + 0x60], r12
mov rax, qword [0x1402da988]
lea rcx, [0x1401c94c0]
cmp rax, rcx
jne 0x140153bd5
lea rdi, [rsp + 0x5e0]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r15
jge 0x140153d2d
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402e4008]
mov qword [rsp + 0x60], rax
cmp rax, qword [rsi + 0x20]
jl 0x140153ba8
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x18], rcx
test rax, rax
je 0x140153ba8
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x140153b93
cmp rcx, r8
jb 0x140153c8c
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x140153bbb
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.140154390
test byte [0x1402da240], 9
jne 0x140153d54
mov rax, qword [rsp + 0x98]
jmp 0x140153701
lea rdi, [rsp + 0x60]
mov rcx, rdi
call qword [0x1402f5008]
mov rax, qword [rdi]
jmp 0x140153b62
mov qword [rax + 0x20], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x140153923
mov rcx, rbx
call fcn.14016f780
mov rcx, rbx
call fcn.1401cbbbc
jmp 0x140153923
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140153a66
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x1402386a0]
cmp qword [rcx + 0x10], rdx
jne 0x140153c45
lea rcx, [0x140008640]
cmp rax, rcx
je 0x140153c58
mov rcx, rbx
mov edx, 1
call qword [0x1402f5008]
jmp 0x1401538fd
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140153c6a
lock dec dword [rcx]
je 0x140153d23
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140153c78
lock dec dword [rax]
je 0x140153cde
mov rcx, rbx
call fcn.1401cbbbc
jmp 0x1401538fd
xor eax, eax
jmp 0x140153af5
mov rcx, rsi
call fcn.14014c790
mov eax, 0x4c4b40
add rax, qword [rsp + 0x60]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x140153ba8
mov rcx, rsi
call fcn.14014c790
mov eax, 0x4c4b40
add rax, qword [rsp + 0x60]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x140153a51
mov qword [rsp + 0x58], rax
mov rcx, qword [rax + 0x20]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
je 0x140154049
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x20], 0
lea rcx, [rax + 8]
call fcn.1400085a0
mov rcx, qword [rsp + 0x58]
call fcn.1401cbbbc
jmp 0x140153c78
call fcn.1401cbbbc
jmp 0x140153c6a
mov rcx, qword [0x1402e4008]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140153b5d
mov rbx, qword [rsi + 0x30]
mov rax, qword [rbx + 0x18]
mov edi, dword [rax + 4]
lea rsi, [rsp + 0x5e0]
mov rcx, rsi
call fcn.1401c9560
cmp edi, dword [rsi]
jne 0x140153bc8
lea rdi, [rbx + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x140153d91
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov r12, qword [rbx + 0x40]
mov rax, qword [rbx + 0xb0]
mov rcx, qword [rbx + 0xb8]
mov r15, qword [rcx + 0x10]
mov r14, qword [rax + 0x10]
mov r13, qword [rbx + 0xd0]
mov rbp, qword [rbx + 0xc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test byte [0x1402da240], 0x19
je 0x140153bc8
sub r13, rbp
shr r13, 3
imul eax, r13d, 0x3cf3cf3d
add r15d, r12d
add r14d, eax
add r14d, r15d
mov ecx, dword [rbx + 8]
call fcn.140252620
mov rdi, rax
lea rbx, [rsp + 0x60]
mov rcx, rbx
call fcn.1401c9410
call sub.KERNEL32.dll_GetCurrentThreadId
movaps xmm0, xmmword [0x14029ca60]
movaps xmmword [rsp + 0x5e0], xmm0
movaps xmmword [rsp + 0x5f0], xmm0
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x600], rcx
mov word [rsp + 0x5e0], 0x301
lea rcx, [0x1402a44cf]
mov qword [rsp + 0x5e8], rcx
movsxd rcx, r14d
mov qword [rsp + 0x5f8], rcx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbx
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, rdi
xor r9d, r9d
call fcn.1402331d0
mov rcx, rsi
call fcn.140218680
jmp 0x140153bc8
xor esi, esi
jmp 0x14015370e
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140207060
call fcn.140207060
movaps xmm0, xmmword [0x14029ca60]
lea rbx, [rsp + 0x80]
movaps xmmword [rbx], xmm0
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.140206670
mov rax, qword [rbx]
test rax, rax
je 0x140153f57
lea r14, [rsp + 0x80]
xor ebx, ebx
cmp byte [r13 + 0x168], 0
je 0x140153ec2
imul rdx, qword [rsp + 0x88], 0xa8
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + rdx + 0x28]
cmp rax, qword [r13 + 0x160]
jge 0x140153f5b
mov rcx, r14
call fcn.140206480
mov rax, qword [rsp + 0x80]
test rax, rax
jne 0x140153ef6
mov rax, qword [0x1402cbde0]
and rax, rbx
cmp rax, qword [0x1402cbdc8]
jne 0x140153ac2
mov rcx, rbx
call fcn.1401509f0
jmp 0x140153ac2
xor ebx, ebx
jmp 0x140153f33
add rcx, rdx
mov byte [r13 + 0x168], 0
lea rbx, [rsp + 0x60]
mov rdx, rbx
call fcn.14017dda0
lea r14, [rsp + 0x5e0]
mov rcx, r14
mov rdx, rbx
call fcn.140138c40
lea rbx, [r13 + 0x140]
mov rcx, rbx
mov rdx, r14
call fcn.1402516c0
cmp byte [r13 + 0x158], 0
je 0x140153ff6
mov rcx, qword [r13 + 0xb8]
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x5e0]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [rbx]
movaps xmmword [rdx], xmm0
call fcn.140253520
cmp byte [r13 + 0x158], 0
je 0x140153ff6
mov rcx, qword [r13 + 0xb0]
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x60]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [rbx]
movaps xmmword [rdx], xmm0
call fcn.140253520
mov rbx, qword [rsp + 0x80]
jmp 0x140153f33
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 0x140153a06
call fcn.1401509f0
jmp 0x140153cfe