Function at 0x1400a76f0
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, 0x5e8
mov rax, qword [0x140231040]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
cmp qword [rcx + 0x28], 0
je 0x1400a7d70
mov rsi, rcx
lea rdi, [rsp + 0x80]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.140164570
mov qword [rsp + 0x78], 0
cmp qword [rsi + 0x10], 0
je 0x1400a7d70
xor r15d, r15d
lea r12, [0x140165370]
lea r13, [0x14012aa00]
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov rcx, rdx
cmove rcx, r15
cmp r8, rcx
jbe 0x1400a7dfc
mov rbx, qword [rax + 0x18]
imul r14, rcx, 0xa8
mov rcx, qword [rbx + r14 + 0x78]
test rcx, rcx
je 0x1400a7859
mov rax, qword [rcx + 0x18]
cmp rax, r12
je 0x1400a77d0
cmp rax, r13
jne 0x1400a7840
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400a784c
movzx eax, byte [rax + 4]
test al, al
jne 0x1400a784c
cmp qword [rcx + 0x30], 0
je 0x1400a784c
nop
add rbx, r14
cmp qword [rbx + 0xa0], 0
jne 0x1400a782b
mov rax, qword [rsp + 0x78]
cmp rax, 2
jae 0x1400a7a5a
cmp rax, 2
setae sil
test rax, rax
jne 0x1400a781f
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.14012d2c0
mov eax, esi
add rsp, 0x5e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x78]
call fcn.1400a8150
jmp 0x1400a77f9
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1400a784c
mov al, byte [rax + 4]
test al, al
je 0x1400a77dd
jmp 0x1400a784c
xor edx, edx
call qword [0x1402233e0]
test al, al
je 0x1400a77d0
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov r9d, 0
cmovne r9, rdx
cmp r8, r9
jbe 0x1400a7dff
mov rcx, qword [rsp + 0x78]
mov r8d, 8
test cl, 1
je 0x1400a7887
mov r8, qword [rsp + 0x88]
imul rdx, r9, 0xa8
add rdx, qword [rax + 0x18]
mov rax, rcx
shr rax, 1
cmp rax, r8
je 0x1400a7a4b
mov r8, rdi
test cl, 1
je 0x1400a78b1
mov r8, qword [rsp + 0x80]
imul rax, rax, 0xa8
add rax, r8
je 0x1400a7e05
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movups xmm2, xmmword [rdx + 0x40]
movups xmm3, xmmword [rdx + 0x50]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
movups xmmword [rax + 0x40], xmm2
movups xmmword [rax + 0x50], xmm3
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rax + 0x60], xmm0
mov rcx, qword [rdx + 0x6d]
mov qword [rax + 0x6d], rcx
mov rcx, qword [rdx + 0x78]
mov qword [rax + 0x78], rcx
mov qword [rdx + 0x78], 0
movzx ecx, byte [rdx + 0x82]
mov byte [rax + 0x82], cl
movzx ecx, word [rdx + 0x80]
mov word [rax + 0x80], cx
mov rcx, qword [rdx + 0x88]
mov qword [rax + 0x88], rcx
mov qword [rdx + 0x88], 0
mov rcx, qword [rdx + 0x90]
mov qword [rax + 0x90], rcx
mov rcx, qword [rdx + 0x98]
mov qword [rax + 0x98], rcx
mov qword [rdx + 0x98], 0
mov rcx, qword [rdx + 0xa0]
mov qword [rax + 0xa0], rcx
add qword [rsp + 0x78], 2
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov ecx, 0
cmovne rcx, rdx
mov qword [rax], rcx
cmp r8, rcx
jbe 0x1400a7e02
mov rbp, qword [rax + 0x18]
imul rbx, rcx, 0xa8
mov rcx, qword [rbp + rbx + 0x98]
test rcx, rcx
jne 0x1400a7a2e
add rbp, rbx
mov rbx, qword [rbp + 0x88]
test rbx, rbx
jne 0x1400a79fb
mov rcx, qword [rbp + 0x78]
test rcx, rcx
jne 0x1400a7a3a
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x1400a79ec
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x1400a7ccc
dec qword [rsi + 0x10]
jne 0x1400a7760
jmp 0x1400a77dd
lock dec dword [rbx + 8]
jne 0x1400a79ca
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x140184a10]
cmp qword [rcx + 0x10], rdx
jne 0x1400a7cb9
lea rcx, [0x14019cdb0]
cmp rax, rcx
jne 0x1400a7cb9
jmp 0x1400a7cff
lock dec dword [rcx]
jne 0x1400a79bb
call fcn.14012aa6c
jmp 0x1400a79bb
lock dec dword [rcx]
jne 0x1400a79d3
mov rax, qword [rcx + 0x10]
call qword [0x1402233e0]
jmp 0x1400a79d3
lea rcx, [rsp + 0x78]
call fcn.1400a9180
jmp 0x1400a797e
cmp qword [rsi + 0x10], 0
jne 0x1400a7c8a
movabs r12, 0xaaaaaaaaaaaaaaaa
movabs r15, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x1400a7be3
mov r13, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x1400a7b2e
mov qword [rsp + 0x48], r12
mov rax, qword [0x140233700]
lea rcx, [0x140116ab0]
cmp rax, rcx
jne 0x1400a7de6
lea rdi, [rsp + 0x5c0]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r15
jge 0x1400a7ffe
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
mov qword [rsp + 0x48], rax
cmp rax, qword [rsi + 0x20]
jl 0x1400a7b2e
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 0x1400a7b2e
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400a7b18
cmp rcx, r8
jb 0x1400a7da7
lea rdi, [r13 + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400a7d62
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 + 0x148], 0
jne 0x1400a7e18
mov rax, qword [r13 + 0xa8]
cmp qword [rax + 0x10], 0
sete byte [r13 + 0x58]
mov al, byte [r13 + 0x118]
mov byte [r13 + 0x5b], al
cmp qword [r13 + 0x98], 0
jne 0x1400a7bd6
test al, al
je 0x1400a7d77
mov al, byte [r13 + 0x138]
xor al, 1
mov byte [r13 + 0x59], al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi + 8], 0
je 0x1400a7c8a
mov qword [rsp + 0x48], r12
mov rax, qword [0x140233700]
lea rcx, [0x140116ab0]
cmp rax, rcx
jne 0x1400a7dd0
lea rdi, [rsp + 0x5c0]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r15
jge 0x1400a7fd7
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
mov qword [rsp + 0x48], rax
cmp rax, qword [rsi + 0x20]
jl 0x1400a7c8a
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 0x1400a7c8a
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400a7c74
cmp rcx, r8
jb 0x1400a7d7e
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x1400a7c9d
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.1400a82e0
mov rbx, qword [rsi + 0x30]
mov al, byte [0x140243663]
test al, al
jne 0x1400a8025
mov rax, qword [rsp + 0x78]
jmp 0x1400a77ec
mov rcx, rbx
mov edx, 1
call qword [0x1402233e0]
jmp 0x1400a79ca
mov qword [rax + 0x28], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x1400a79ec
mov rcx, rbx
call fcn.1400bf6d0
mov rcx, rbx
call fcn.14012aa6c
jmp 0x1400a79ec
call fcn.14012aa6c
jmp 0x1400a7d0d
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a7d0d
lock dec dword [rcx]
je 0x1400a7cf8
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x1400a7d1c
lock dec dword [r14]
je 0x1400a7d29
mov rcx, rbx
call fcn.14012aa6c
jmp 0x1400a79ca
mov rcx, qword [r14 + 0x20]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402336c8]
je 0x1400a811d
mov qword [r14 + 0x20], 0
lea rcx, [r14 + 8]
call fcn.14000fcb0
mov rcx, r14
call fcn.14012aa6c
jmp 0x1400a7d1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400a7b43
xor esi, esi
jmp 0x1400a77f9
xor eax, eax
jmp 0x1400a7bd6
mov rcx, rsi
call fcn.1400094c0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x48]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x1400a7c8a
mov rcx, rsi
call fcn.1400094c0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x48]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x1400a7b2e
lea rdi, [rsp + 0x48]
mov rcx, rdi
call qword [0x1402233e0]
mov rax, qword [rdi]
jmp 0x1400a7c43
lea rdi, [rsp + 0x48]
mov rcx, rdi
call qword [0x1402233e0]
mov rax, qword [rdi]
jmp 0x1400a7ae7
int3
int3
int3
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140164a90
movaps xmm0, xmmword [0x1401fd000]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx], xmm0
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.14019cf10
mov rax, qword [rbx]
test rax, rax
je 0x1400a7eb0
lea r14, [rsp + 0x60]
xor ebx, ebx
mov rdx, qword [rsp + 0x68]
cmp qword [rax + 0x20], rdx
jbe 0x1400a813f
cmp byte [r13 + 0x148], 0
je 0x1400a8127
mov rcx, qword [rax + 0x18]
imul rax, rdx, 0xa8
mov rdx, qword [rcx + rax + 0x20]
cmp rdx, qword [r13 + 0x140]
jge 0x1400a7eb4
mov rcx, r14
call fcn.14019c020
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1400a7e41
movabs rax, 0xfffffffc00000000
and rax, rbx
cmp rax, qword [0x1402336c8]
jne 0x1400a7b9f
mov rcx, rbx
call fcn.1400a3600
jmp 0x1400a7b9f
xor ebx, ebx
jmp 0x1400a7e89
add rcx, rax
mov byte [r13 + 0x148], 0
lea rbx, [rsp + 0x48]
mov rdx, rbx
call fcn.1400ffe10
lea r14, [rsp + 0x5c0]
mov rcx, r14
mov rdx, rbx
call fcn.14009a850
lea rbx, [r13 + 0x120]
mov rcx, rbx
mov rdx, r14
call fcn.14019bfd0
cmp byte [r13 + 0x138], 0
je 0x1400a812c
mov r14, qword [r13 + 0xa8]
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x5d0], eax
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x5c0], xmm0
mov rcx, r14
call fcn.140166930
lea rax, [r14 + 0x50]
cmp byte [r14 + 0x68], 0
je 0x1400a7f9f
mov ecx, dword [rsp + 0x5d0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x5c0]
movups xmmword [rax], xmm0
cmp byte [r13 + 0x138], 0
je 0x1400a812c
mov r14, qword [r13 + 0xa0]
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x5d0], eax
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x5c0], xmm0
mov rcx, r14
call fcn.140166930
lea rax, [r14 + 0x50]
cmp byte [r14 + 0x68], 0
je 0x1400a7fbb
mov ecx, dword [rsp + 0x5d0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x5c0]
movups xmmword [rax], xmm0
mov rbx, qword [rsp + 0x60]
jmp 0x1400a7e89
mov ecx, dword [rsp + 0x5d0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x5c0]
movups xmmword [rax], xmm0
mov byte [r14 + 0x68], 1
jmp 0x1400a7f43
mov ecx, dword [rsp + 0x5d0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x5c0]
movups xmmword [rax], xmm0
mov byte [r14 + 0x68], 1
jmp 0x1400a7f95
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400a7c3e
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400a7ae2
mov rax, qword [rbx + 0x18]
mov edi, dword [rax + 4]
lea rsi, [rsp + 0x5c0]
mov rcx, rsi
call fcn.140128950
cmp edi, dword [rsi]
jne 0x1400a7caf
lea rdi, [rbx + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1400a805e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov r13, qword [rbx + 0x40]
mov rax, qword [rbx + 0xa0]
mov rcx, qword [rbx + 0xa8]
mov r14, qword [rcx + 0x10]
mov r15, qword [rax + 0x10]
mov r12, qword [rbx + 0xc0]
mov rbp, qword [rbx + 0xb8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x60], 0xe3
mov al, byte [0x140243663]
test al, al
je 0x1400a7caf
movzx edi, al
add r14d, r13d
sub r12, rbp
shr r12, 3
imul ebp, r12d, 0x3cf3cf3d
add ebp, r15d
add ebp, r14d
mov ecx, dword [rbx + 8]
call fcn.14019cee0
lea r8, [rsp + 0x48]
mov qword [r8], rax
lea rax, [rsp + 0x74]
mov dword [rax], ebp
lea rcx, [0x14020563b]
mov qword [rsp + 0x5c0], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
lea rax, [0x1402050c0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0x43
lea rdx, [rsp + 0x60]
mov ecx, edi
xor r9d, r9d
call fcn.140053c80
jmp 0x1400a7caf
call fcn.1400a3600
jmp 0x1400a7d47
call fcn.140164a90
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcincludeoptional:806:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.140164a90
int3