Function at 0x1400a7360
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, 0x5f8
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x5f0], rax
cmp qword [rcx + 0x28], 0
je 0x1400a79fd
mov rsi, rcx
lea rdi, [rsp + 0x90]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.14012e410
mov qword [rsp + 0x88], 0
cmp qword [rsi + 0x10], 0
je 0x1400a79fd
xor r15d, r15d
lea r12, [0x1401eb230]
lea r13, [0x140164500]
lea rbp, [0x140129870]
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 0x1400a7b35
mov rbx, qword [rax + 0x18]
imul r14, rcx, 0xa8
mov rcx, qword [rbx + r14 + 0x78]
test rcx, rcx
je 0x1400a74e3
mov rax, qword [rcx + 0x18]
cmp rax, r13
je 0x1400a7450
cmp rax, rbp
jne 0x1400a74c6
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400a74d6
movzx eax, byte [rax + 4]
test al, al
jne 0x1400a74d6
cmp qword [rcx + 0x30], 0
je 0x1400a74d6
nop dword [rax]
add rbx, r14
cmp qword [rbx + 0xa0], 0
jne 0x1400a74b1
mov rax, qword [rsp + 0x88]
cmp rax, 2
jae 0x1400a76ec
cmp rax, 2
setae sil
test rax, rax
jne 0x1400a74a2
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
call fcn.14012c2d0
mov eax, esi
add rsp, 0x5f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x88]
call fcn.1400a7fb0
jmp 0x1400a747c
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1400a74d6
mov al, byte [rax + 4]
test al, al
je 0x1400a745d
jmp 0x1400a74d6
xor edx, edx
call qword [0x140223bc8]
test al, al
je 0x1400a7450
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 0x1400a7b38
mov rcx, qword [rsp + 0x88]
mov r8d, 8
test cl, 1
je 0x1400a7514
mov r8, qword [rsp + 0x98]
imul rdx, r9, 0xa8
add rdx, qword [rax + 0x18]
mov rax, rcx
shr rax, 1
cmp rax, r8
je 0x1400a76bb
mov r8, rdi
test cl, 1
je 0x1400a753e
mov r8, qword [rsp + 0x90]
imul rax, rax, 0xa8
add rax, r8
je 0x1400a7b3e
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 + 0x88], 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 0x1400a7b3b
mov r14, qword [rax + 0x18]
imul rbx, rcx, 0xa8
mov rcx, qword [r14 + rbx + 0x98]
test rcx, rcx
jne 0x1400a7696
add r14, rbx
mov rbx, qword [r14 + 0x88]
test rbx, rbx
jne 0x1400a768b
mov rbx, qword [r14 + 0x78]
test rbx, rbx
jne 0x1400a76a2
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x1400a767c
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x1400a79c3
dec qword [rsi + 0x10]
jne 0x1400a73da
jmp 0x1400a745d
lock dec dword [rbx + 8]
jne 0x1400a765a
jmp 0x1400a7a04
lock dec dword [rcx]
jne 0x1400a764b
call fcn.1401298a0
jmp 0x1400a764b
lock dec dword [rbx]
jne 0x1400a7663
mov rax, qword [rbx + 0x10]
cmp rax, r12
je 0x1400a76cd
mov rcx, rbx
call qword [0x140223bc8]
jmp 0x1400a7663
lea rcx, [rsp + 0x88]
call fcn.1400a8950
jmp 0x1400a760e
mov rcx, qword [rbx + 0x28]
test rcx, rcx
jne 0x1400a76e0
mov rcx, rbx
call fcn.1401298a0
jmp 0x1400a7663
lock dec dword [rcx]
jne 0x1400a76d6
call fcn.1401298a0
jmp 0x1400a76d6
cmp qword [rsi + 0x10], 0
jne 0x1400a7991
movabs rbp, 0xaaaaaaaaaaaaaaaa
movabs r13, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x1400a78ea
mov rdi, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x1400a77c0
mov qword [rsp + 0x58], rbp
mov rax, qword [0x1402336c0]
lea rcx, [0x1400b3340]
cmp rax, rcx
jne 0x1400a7b1f
lea rbx, [rsp + 0x5d0]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
cmp rax, r13
jge 0x1400a7dfd
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x1400a77c0
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 0x1400a77c0
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400a77aa
cmp rcx, r8
jb 0x1400a7aad
lea rbx, [rdi + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400a79ef
mov rax, qword [rsi]
mov rcx, qword [rdi + 0x30]
mov qword [rsi], rcx
mov qword [rdi + 0x30], rax
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 0x38]
mov qword [rsi + 8], rcx
mov qword [rdi + 0x38], rax
mov rax, qword [rsi + 0x10]
mov rcx, qword [rdi + 0x40]
mov qword [rsi + 0x10], rcx
mov qword [rdi + 0x40], rax
mov rax, qword [rsi + 0x18]
mov rcx, qword [rdi + 0x48]
mov qword [rsi + 0x18], rcx
mov qword [rdi + 0x48], rax
mov rax, qword [rsi + 0x20]
mov rcx, qword [rdi + 0x50]
mov qword [rsi + 0x20], rcx
mov qword [rdi + 0x50], rax
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x1400a7b95
cmp byte [rdi + 0x148], 1
je 0x1400a7d5d
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x1400a7b51
mov rcx, qword [rdi + 0xa8]
cmp qword [rcx + 0x10], 0
sete byte [rdi + 0x58]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x1400a7b73
mov cl, byte [rdi + 0x118]
mov byte [rdi + 0x5b], cl
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x1400a7bb1
cmp qword [rdi + 0x98], 0
jne 0x1400a7aed
mov rax, qword [rdi]
lea rcx, [fcn.140128a60]
cmp qword [rax + 0x10], rcx
jne 0x1400a7ad6
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x1400a7bcd
cmp byte [rdi + 0x118], 1
jne 0x1400a7ae6
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x1400a7be9
mov al, byte [rdi + 0x138]
xor al, 1
mov byte [rdi + 0x59], al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi + 8], 0
je 0x1400a7991
mov qword [rsp + 0x58], rbp
mov rax, qword [0x1402336c0]
lea rcx, [0x1400b3340]
cmp rax, rcx
jne 0x1400a7b09
lea rdi, [rsp + 0x5d0]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r13
jge 0x1400a7dd6
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x1400a7991
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 0x1400a7991
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400a797b
cmp rcx, r8
jb 0x1400a7a84
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x1400a79a4
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.1400a81a0
mov rdi, qword [rsi + 0x30]
mov al, byte [0x140243668]
test al, al
jne 0x1400a7e24
mov rax, qword [rsp + 0x88]
jmp 0x1400a746f
mov qword [rax + 0x28], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x1400a767c
mov rcx, rbx
call fcn.14010c0f0
mov rcx, rbx
call fcn.1401298a0
jmp 0x1400a767c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400a77d5
xor esi, esi
jmp 0x1400a747c
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x140184160]
cmp qword [rcx + 0x10], rdx
jne 0x1400a7a24
lea rcx, [0x140199b30]
cmp rax, rcx
je 0x1400a7a37
mov rcx, rbx
mov edx, 1
call qword [0x140223bc8]
jmp 0x1400a765a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a7a45
lock dec dword [rcx]
je 0x1400a7a7d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a7a56
mov rax, rcx
lock dec dword [rcx]
je 0x1400a7a63
mov rcx, rbx
call fcn.1401298a0
jmp 0x1400a765a
mov qword [rsp + 0x50], rax
lea rcx, [rax + 8]
call fcn.1400dfc20
mov rcx, qword [rsp + 0x50]
call fcn.1401298a0
jmp 0x1400a7a56
call fcn.1401298a0
jmp 0x1400a7a45
mov rcx, rsi
call fcn.1400d2cf0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x1400a7991
mov rcx, rsi
call fcn.1400d2cf0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x1400a77c0
mov rcx, rdi
call fcn.140128a60
test al, al
jne 0x1400a78c5
xor eax, eax
jmp 0x1400a78de
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x1400a7f84
mov al, byte [rdi + 0x118]
jmp 0x1400a78de
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x140223bc8]
mov rax, qword [rdi]
jmp 0x1400a794a
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [0x140223bc8]
mov rax, qword [rbx]
jmp 0x1400a7779
int3
int3
int3
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140163630
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.140127460
cmp r15d, dword [r14]
jne 0x1400a7fa3
mov rax, qword [rdi + 0x18]
jmp 0x1400a7852
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.140127460
cmp r15d, dword [r14]
jne 0x1400a7fa6
mov rax, qword [rdi + 0x18]
jmp 0x1400a786f
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.140127460
cmp r15d, dword [r14]
je 0x1400a7834
int3
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.140127460
cmp r15d, dword [r14]
je 0x1400a7885
int3
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.140127460
cmp r15d, dword [r14]
je 0x1400a78b8
int3
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.140127460
cmp r15d, dword [r14]
je 0x1400a78d6
int3
add r12, rax
mov rcx, qword [rdi + 0x18]
call fcn.140129030
cmp byte [rdi + 0x148], 1
jne 0x1400a7c21
mov byte [rdi + 0x148], 0
lea r14, [rsp + 0x58]
mov rcx, r12
mov rdx, r14
call fcn.1400dc0a0
lea r15, [rsp + 0x5d0]
mov rcx, r15
mov rdx, r14
call fcn.140096c00
mov rcx, qword [rdi + 0x18]
call fcn.140129030
lea r14, [rdi + 0x120]
mov rcx, r14
mov rdx, r15
call fcn.140198b90
mov rcx, qword [rdi + 0x18]
call fcn.140129030
mov rcx, qword [rdi + 0x18]
mov r15, qword [rdi + 0xa8]
call fcn.140129030
cmp byte [rdi + 0x138], 0
je 0x1400a7f71
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x5e0], eax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x5d0], xmm0
mov rcx, r15
call fcn.140165f10
lea rax, [r15 + 0x50]
cmp byte [r15 + 0x68], 1
jne 0x1400a7f2e
mov ecx, dword [rsp + 0x5e0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x5d0]
movups xmmword [rax], xmm0
mov rcx, qword [rdi + 0x18]
call fcn.140129030
mov rcx, qword [rdi + 0x18]
mov r15, qword [rdi + 0xa0]
call fcn.140129030
cmp byte [rdi + 0x138], 0
je 0x1400a7f71
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x5e0], eax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x5d0], xmm0
mov rcx, r15
call fcn.140165f10
lea rax, [r15 + 0x50]
cmp byte [r15 + 0x68], 1
jne 0x1400a7f4d
mov ecx, dword [rsp + 0x5e0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x5d0]
movups xmmword [rax], xmm0
mov r14, qword [rsp + 0x70]
movabs rax, 0xfffffffc00000000
and rax, r14
cmp rax, qword [0x140233688]
jne 0x1400a7841
mov rcx, r14
call fcn.1400980c0
jmp 0x1400a7841
movaps xmm0, xmmword [0x1401fd0c0]
lea r14, [rsp + 0x70]
movaps xmmword [r14], xmm0
mov rdx, qword [rsi]
mov rcx, r14
call fcn.140199c50
mov rax, qword [r14]
xor r14d, r14d
test rax, rax
je 0x1400a7d36
mov r15, qword [rsp + 0x78]
cmp qword [rax + 0x20], r15
jbe 0x1400a7fa0
mov r12, qword [rax + 0x18]
mov rcx, qword [rdi + 0x18]
call fcn.140129030
cmp byte [rdi + 0x148], 0
je 0x1400a7f6c
imul rax, r15, 0xa8
mov rcx, qword [r12 + rax + 0x20]
cmp rcx, qword [rdi + 0x140]
jge 0x1400a7c05
lea rcx, [rsp + 0x70]
call fcn.140198be0
mov rax, qword [rsp + 0x70]
jmp 0x1400a7d7e
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400a7945
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400a7774
mov rcx, qword [rdi + 0x18]
call fcn.140128ff0
test al, al
je 0x1400a79b6
lea rsi, [rdi + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1400a7e4f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [rdi + 0x18]
mov r14, qword [rdi + 0x40]
call fcn.140129030
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0xa8]
mov rbx, qword [rax + 0x10]
call fcn.140129030
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0xa0]
mov r15, qword [rax + 0x10]
call fcn.140129030
mov r13, qword [rdi + 0xb8]
mov r12, qword [rdi + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x70], 0xe8
mov al, byte [0x140243668]
test al, al
je 0x1400a79b6
movzx esi, al
add ebx, r14d
sub r12, r13
shr r12, 3
imul ebp, r12d, 0x3cf3cf3d
add ebp, r15d
add ebp, ebx
mov ecx, dword [rdi + 8]
call fcn.140199c20
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea rax, [rsp + 0x84]
mov dword [rax], ebp
lea rcx, [0x140204a33]
lea rdx, [rsp + 0x5d0]
mov qword [rdx], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
lea rax, [0x140204430]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0x43
lea rdx, [rsp + 0x70]
mov ecx, esi
xor r9d, r9d
call fcn.140052de0
jmp 0x1400a79b6
mov ecx, dword [rsp + 0x5e0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x5d0]
movups xmmword [rax], xmm0
mov byte [r15 + 0x68], 1
jmp 0x1400a7cc8
mov ecx, dword [rsp + 0x5e0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x5d0]
movups xmmword [rax], xmm0
mov byte [r15 + 0x68], 1
jmp 0x1400a7d31
call fcn.140163630
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcincludeoptional:800:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.140163630
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.140127460
cmp r15d, dword [r14]
je 0x1400a7afe
int3
int3
int3
int3