Function at 0x1400bf880
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, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140231040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rdx + 0xa0], r12
movaps xmm6, xmmword [0x1401fd000]
movups xmmword [rdx + 0x90], xmm6
movups xmmword [rdx + 0x80], xmm6
movups xmmword [rdx + 0x70], xmm6
movups xmmword [rdx + 0x60], xmm6
movups xmmword [rdx + 0x50], xmm6
movups xmmword [rdx + 0x40], xmm6
movups xmmword [rdx + 0x30], xmm6
movups xmmword [rdx + 0x20], xmm6
movups xmmword [rdx + 0x10], xmm6
movups xmmword [rdx], xmm6
mov rax, qword [rcx]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
xor ecx, ecx
cmp rdx, r8
cmovne rcx, rdx
cmp r8, rcx
jbe 0x1400bfe78
mov rax, qword [rax + 0x18]
imul rcx, rcx, 0xa8
movups xmm0, xmmword [rax + rcx]
movups xmm1, xmmword [rax + rcx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
movups xmm0, xmmword [rax + rcx + 0x20]
movups xmm1, xmmword [rax + rcx + 0x30]
movups xmm2, xmmword [rax + rcx + 0x40]
movups xmm3, xmmword [rax + rcx + 0x50]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
movups xmmword [rsi + 0x40], xmm2
movups xmmword [rsi + 0x50], xmm3
movups xmm0, xmmword [rax + rcx + 0x60]
movups xmmword [rsi + 0x60], xmm0
mov rdx, qword [rax + rcx + 0x6d]
mov qword [rsi + 0x6d], rdx
mov rdx, qword [rax + rcx + 0x78]
mov qword [rsi + 0x78], rdx
mov qword [rax + rcx + 0x78], 0
movzx edx, byte [rax + rcx + 0x82]
mov byte [rsi + 0x82], dl
movzx edx, word [rax + rcx + 0x80]
mov word [rsi + 0x80], dx
mov rdx, qword [rax + rcx + 0x88]
mov qword [rsi + 0x88], rdx
mov qword [rax + rcx + 0x88], 0
mov rdx, qword [rax + rcx + 0x90]
mov qword [rsi + 0x90], rdx
mov rdx, qword [rax + rcx + 0x98]
mov qword [rsi + 0x98], rdx
mov qword [rax + rcx + 0x98], 0
mov rax, qword [rax + rcx + 0xa0]
mov qword [rsi + 0xa0], rax
mov rax, qword [rdi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
xor ecx, ecx
cmp rdx, r8
cmovne rcx, rdx
mov qword [rax], rcx
cmp r8, rcx
jbe 0x1400bfe7b
mov rax, qword [rax + 0x18]
imul rcx, rcx, 0xa8
lea r15, [rax + rcx]
mov rcx, qword [rax + rcx + 0x98]
test rcx, rcx
jne 0x1400bfce0
mov rbx, qword [r15 + 0x88]
test rbx, rbx
jne 0x1400bfd0b
mov rcx, qword [r15 + 0x78]
test rcx, rcx
jne 0x1400bfcf3
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x1400bfa63
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x1400bfd48
dec qword [rdi + 0x10]
jne 0x1400bfc92
movabs r13, 0x8637bd05af7
cmp dword [rdi + 0x70], 0
jne 0x1400bfbe4
mov rbp, qword [rdi + 0x30]
cmp qword [rdi + 8], 0
je 0x1400bfb33
mov qword [rsp + 0x58], r12
mov rax, qword [0x140233700]
lea rcx, [0x140116ab0]
cmp rax, rcx
jne 0x1400bfe62
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x90]
cmp rax, r13
jge 0x1400c0060
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
mov qword [rsp + 0x58], rax
cmp rax, qword [rdi + 0x20]
jl 0x1400bfb33
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 0x1400bfb33
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400bfb1d
cmp rcx, r8
jb 0x1400bfe19
lea rbx, [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400bfda2
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 + 0x148], 0
jne 0x1400bfe7e
mov rax, qword [rbp + 0xa8]
cmp qword [rax + 0x10], 0
sete byte [rbp + 0x58]
movzx eax, byte [rbp + 0x118]
mov byte [rbp + 0x5b], al
cmp qword [rbp + 0x98], 0
jne 0x1400bfbd8
test al, al
je 0x1400bfdb0
movzx eax, byte [rbp + 0x138]
xor al, 1
mov byte [rbp + 0x59], al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rdi + 8], 0
je 0x1400bfc92
mov qword [rsp + 0x58], r12
mov rax, qword [0x140233700]
lea rcx, [0x140116ab0]
cmp rax, rcx
jne 0x1400bfe4c
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x90]
cmp rax, r13
jge 0x1400c0039
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
mov qword [rsp + 0x58], rax
cmp rax, qword [rdi + 0x20]
jl 0x1400bfc92
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 0x1400bfc92
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400bfc7c
cmp rcx, r8
jb 0x1400bfdf0
mov rcx, qword [rdi + 0x28]
mov rdx, rdi
call fcn.1400beb80
mov r14, qword [rdi + 0x30]
movzx eax, byte [0x140243663]
test al, al
jne 0x1400c0087
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14012d2c0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lock dec dword [rcx]
jne 0x1400bfa2d
call fcn.14012aa6c
jmp 0x1400bfa2d
lock dec dword [rcx]
jne 0x1400bfa4a
mov rax, qword [rcx + 0x10]
call qword [0x1402233e0]
jmp 0x1400bfa4a
lock dec dword [rbx + 8]
jne 0x1400bfa3d
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x140184a10]
cmp qword [rcx + 0x10], rdx
jne 0x1400bfd35
lea rcx, [0x14019cdb0]
cmp rax, rcx
je 0x1400bfd74
mov rcx, rbx
mov edx, 1
call qword [0x1402233e0]
jmp 0x1400bfa3d
mov qword [rax + 0x28], 0
mov rbx, qword [rdi]
mov qword [rdi], rcx
test rbx, rbx
je 0x1400bfa63
mov rcx, rbx
call fcn.1400bf6d0
mov rcx, rbx
call fcn.14012aa6c
jmp 0x1400bfa63
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400bfd86
lock dec dword [rcx]
je 0x1400bfe42
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x1400bfd95
lock dec dword [r14]
je 0x1400bfdb7
mov rcx, rbx
call fcn.14012aa6c
jmp 0x1400bfa3d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400bfb48
xor eax, eax
jmp 0x1400bfbd8
mov rcx, qword [r14 + 0x20]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402336c8]
je 0x1400c0189
mov qword [r14 + 0x20], 0
lea rcx, [r14 + 8]
call fcn.14000fcb0
mov rcx, r14
call fcn.14012aa6c
jmp 0x1400bfd95
mov rcx, rdi
call fcn.1400094c0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rdi + 0x20], rcx
jmp 0x1400bfc92
mov rcx, rdi
call fcn.1400094c0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rdi + 0x20], rcx
jmp 0x1400bfb33
call fcn.14012aa6c
jmp 0x1400bfd86
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [0x1402233e0]
mov rax, qword [rbx]
jmp 0x1400bfc4b
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [0x1402233e0]
mov rax, qword [rbx]
jmp 0x1400bfaec
int3
int3
lea r14, [rsp + 0x70]
movaps xmmword [r14], xmm6
mov rdx, qword [rdi]
mov rcx, r14
call fcn.14019cf10
mov rax, qword [r14]
test rax, rax
je 0x1400bff10
lea r15, [rsp + 0x70]
xor r14d, r14d
mov rdx, qword [rsp + 0x78]
cmp qword [rax + 0x20], rdx
jbe 0x1400c01ab
cmp byte [rbp + 0x148], 0
je 0x1400c0193
mov rcx, qword [rax + 0x18]
imul rax, rdx, 0xa8
mov rdx, qword [rcx + rax + 0x20]
cmp rdx, qword [rbp + 0x140]
jge 0x1400bff15
mov rcx, r15
call fcn.14019c020
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1400bfea2
movabs rax, 0xfffffffc00000000
and rax, r14
cmp rax, qword [0x1402336c8]
jne 0x1400bfba3
mov rcx, r14
call fcn.1400a3600
jmp 0x1400bfba3
xor r14d, r14d
jmp 0x1400bfee9
add rcx, rax
mov byte [rbp + 0x148], 0
lea r14, [rsp + 0x58]
mov rdx, r14
call fcn.1400ffe10
lea r15, [rsp + 0x90]
mov rcx, r15
mov rdx, r14
call fcn.14009a850
lea r14, [rbp + 0x120]
mov rcx, r14
mov rdx, r15
call fcn.14019bfd0
cmp byte [rbp + 0x138], 0
je 0x1400c0198
mov r15, qword [rbp + 0xa8]
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0xa0], eax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x90], xmm0
mov rcx, r15
call fcn.140166930
lea rax, [r15 + 0x50]
cmp byte [r15 + 0x68], 0
je 0x1400c0001
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rax], xmm0
cmp byte [rbp + 0x138], 0
je 0x1400c0198
mov r15, qword [rbp + 0xa0]
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0xa0], eax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x90], xmm0
mov rcx, r15
call fcn.140166930
lea rax, [r15 + 0x50]
cmp byte [r15 + 0x68], 0
je 0x1400c001d
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rax], xmm0
mov r14, qword [rsp + 0x70]
jmp 0x1400bfee9
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rax], xmm0
mov byte [r15 + 0x68], 1
jmp 0x1400bffa4
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x10], ecx
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rax], xmm0
mov byte [r15 + 0x68], 1
jmp 0x1400bfff7
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400bfc46
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400bfae7
mov rax, qword [r14 + 0x18]
mov ebx, dword [rax + 4]
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.140128950
cmp ebx, dword [rdi]
jne 0x1400bfcb1
lea rbx, [r14 + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1400c00c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rbp, qword [r14 + 0x40]
mov rax, qword [r14 + 0xa0]
mov rcx, qword [r14 + 0xa8]
mov r12, qword [rcx + 0x10]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
mov r13, qword [r14 + 0xc0]
mov r15, qword [r14 + 0xb8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x70], 0xe3
mov al, byte [0x140243663]
test al, al
je 0x1400bfcb1
movzx ebx, al
add r12d, ebp
sub r13, r15
shr r13, 3
imul ebp, r13d, 0x3cf3cf3d
add ebp, dword [rsp + 0x50]
add ebp, r12d
mov ecx, dword [r14 + 8]
call fcn.14019cee0
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea rax, [rsp + 0x8c]
mov dword [rax], ebp
lea rcx, [0x14020563b]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
lea rax, [0x1402050c0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0x43
lea rdx, [rsp + 0x70]
mov ecx, ebx
xor r9d, r9d
call fcn.140053c80
jmp 0x1400bfcb1
call fcn.1400a3600
jmp 0x1400bfdd5
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