Function at 0x14010c990
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 [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x5f0], rax
cmp qword [rcx + 0x28], 0
je 0x14010d02d
mov rsi, rcx
lea rdi, [rsp + 0x90]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.1401cdd80
mov qword [rsp + 0x88], 0
cmp qword [rsi + 0x10], 0
je 0x14010d02d
xor r15d, r15d
lea r12, [0x14025d280]
lea r13, [0x1401cf820]
lea rbp, [0x14018f570]
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 0x14010d165
mov rbx, qword [rax + 0x18]
imul r14, rcx, 0xa8
mov rcx, qword [rbx + r14 + 0x78]
test rcx, rcx
je 0x14010cb13
mov rax, qword [rcx + 0x18]
cmp rax, r13
je 0x14010ca80
cmp rax, rbp
jne 0x14010caf6
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14010cb06
movzx eax, byte [rax + 4]
test al, al
jne 0x14010cb06
cmp qword [rcx + 0x30], 0
je 0x14010cb06
nop dword [rax]
add rbx, r14
cmp qword [rbx + 0xa0], 0
jne 0x14010cae1
mov rax, qword [rsp + 0x88]
cmp rax, 2
jae 0x14010cd1c
cmp rax, 2
setae sil
test rax, rax
jne 0x14010cad2
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
call fcn.140191d70
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.14010d5e0
jmp 0x14010caac
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x14010cb06
mov al, byte [rax + 4]
test al, al
je 0x14010ca8d
jmp 0x14010cb06
xor edx, edx
call qword [0x1402a3ee8]
test al, al
je 0x14010ca80
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 0x14010d168
mov rcx, qword [rsp + 0x88]
mov r8d, 8
test cl, 1
je 0x14010cb44
mov r8, qword [rsp + 0x98]
imul rdx, r9, 0xa8
add rdx, qword [rax + 0x18]
mov rax, rcx
shr rax, 1
cmp rax, r8
je 0x14010cceb
mov r8, rdi
test cl, 1
je 0x14010cb6e
mov r8, qword [rsp + 0x90]
imul rax, rax, 0xa8
add rax, r8
je 0x14010d16e
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 0x14010d16b
mov r14, qword [rax + 0x18]
imul rbx, rcx, 0xa8
mov rcx, qword [r14 + rbx + 0x98]
test rcx, rcx
jne 0x14010ccc6
add r14, rbx
mov rbx, qword [r14 + 0x88]
test rbx, rbx
jne 0x14010ccbb
mov rbx, qword [r14 + 0x78]
test rbx, rbx
jne 0x14010ccd2
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x14010ccac
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x14010cff3
dec qword [rsi + 0x10]
jne 0x14010ca0a
jmp 0x14010ca8d
lock dec dword [rbx + 8]
jne 0x14010cc8a
jmp 0x14010d034
lock dec dword [rcx]
jne 0x14010cc7b
call fcn.14018f5a0
jmp 0x14010cc7b
lock dec dword [rbx]
jne 0x14010cc93
mov rax, qword [rbx + 0x10]
cmp rax, r12
je 0x14010ccfd
mov rcx, rbx
call qword [0x1402a3ee8]
jmp 0x14010cc93
lea rcx, [rsp + 0x88]
call fcn.14010df80
jmp 0x14010cc3e
mov rcx, qword [rbx + 0x28]
test rcx, rcx
jne 0x14010cd10
mov rcx, rbx
call fcn.14018f5a0
jmp 0x14010cc93
lock dec dword [rcx]
jne 0x14010cd06
call fcn.14018f5a0
jmp 0x14010cd06
cmp qword [rsi + 0x10], 0
jne 0x14010cfc1
movabs rbp, 0xaaaaaaaaaaaaaaaa
movabs r13, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x14010cf1a
mov rdi, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x14010cdf0
mov qword [rsp + 0x58], rbp
mov rax, qword [0x1402b5770]
lea rcx, [0x140118bc0]
cmp rax, rcx
jne 0x14010d14f
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 0x14010d42d
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402c5cb8]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x14010cdf0
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 0x14010cdf0
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14010cdda
cmp rcx, r8
jb 0x14010d0dd
lea rbx, [rdi + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14010d01f
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 0x14010d1c5
cmp byte [rdi + 0x148], 1
je 0x14010d38d
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14010d181
mov rcx, qword [rdi + 0xa8]
cmp qword [rcx + 0x10], 0
sete byte [rdi + 0x58]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14010d1a3
mov cl, byte [rdi + 0x118]
mov byte [rdi + 0x5b], cl
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14010d1e1
cmp qword [rdi + 0x98], 0
jne 0x14010d11d
mov rax, qword [rdi]
lea rcx, [fcn.14018e760]
cmp qword [rax + 0x10], rcx
jne 0x14010d106
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14010d1fd
cmp byte [rdi + 0x118], 1
jne 0x14010d116
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14010d219
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 0x14010cfc1
mov qword [rsp + 0x58], rbp
mov rax, qword [0x1402b5770]
lea rcx, [0x140118bc0]
cmp rax, rcx
jne 0x14010d139
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 0x14010d406
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402c5cb8]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x14010cfc1
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 0x14010cfc1
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14010cfab
cmp rcx, r8
jb 0x14010d0b4
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x14010cfd4
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.14010d7d0
mov rdi, qword [rsi + 0x30]
mov al, byte [0x1402c5935]
test al, al
jne 0x14010d454
mov rax, qword [rsp + 0x88]
jmp 0x14010ca9f
mov qword [rax + 0x28], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x14010ccac
mov rcx, rbx
call fcn.1401712e0
mov rcx, rbx
call fcn.14018f5a0
jmp 0x14010ccac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14010ce05
xor esi, esi
jmp 0x14010caac
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x1401f61d0]
cmp qword [rcx + 0x10], rdx
jne 0x14010d054
lea rcx, [0x14020bc80]
cmp rax, rcx
je 0x14010d067
mov rcx, rbx
mov edx, 1
call qword [0x1402a3ee8]
jmp 0x14010cc8a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14010d075
lock dec dword [rcx]
je 0x14010d0ad
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14010d086
mov rax, rcx
lock dec dword [rcx]
je 0x14010d093
mov rcx, rbx
call fcn.14018f5a0
jmp 0x14010cc8a
mov qword [rsp + 0x50], rax
lea rcx, [rax + 8]
call fcn.1401435b0
mov rcx, qword [rsp + 0x50]
call fcn.14018f5a0
jmp 0x14010d086
call fcn.14018f5a0
jmp 0x14010d075
mov rcx, rsi
call fcn.140136880
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x14010cfc1
mov rcx, rsi
call fcn.140136880
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x14010cdf0
mov rcx, rdi
call fcn.14018e760
test al, al
jne 0x14010cef5
xor eax, eax
jmp 0x14010cf0e
mov rax, qword [rdi + 0x18]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14010d5b4
mov al, byte [rdi + 0x118]
jmp 0x14010cf0e
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402a3ee8]
mov rax, qword [rdi]
jmp 0x14010cf7a
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [0x1402a3ee8]
mov rax, qword [rbx]
jmp 0x14010cda9
int3
int3
int3
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1401ceaf0
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.14018d160
cmp r15d, dword [r14]
jne 0x14010d5d3
mov rax, qword [rdi + 0x18]
jmp 0x14010ce82
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.14018d160
cmp r15d, dword [r14]
jne 0x14010d5d6
mov rax, qword [rdi + 0x18]
jmp 0x14010ce9f
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.14018d160
cmp r15d, dword [r14]
je 0x14010ce64
int3
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.14018d160
cmp r15d, dword [r14]
je 0x14010ceb5
int3
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.14018d160
cmp r15d, dword [r14]
je 0x14010cee8
int3
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.14018d160
cmp r15d, dword [r14]
je 0x14010cf06
int3
add r12, rax
mov rcx, qword [rdi + 0x18]
call fcn.14018ed30
cmp byte [rdi + 0x148], 1
jne 0x14010d251
mov byte [rdi + 0x148], 0
lea r14, [rsp + 0x58]
mov rcx, r12
mov rdx, r14
call fcn.14013fc00
lea r15, [rsp + 0x5d0]
mov rcx, r15
mov rdx, r14
call fcn.1400efb10
mov rcx, qword [rdi + 0x18]
call fcn.14018ed30
lea r14, [rdi + 0x120]
mov rcx, r14
mov rdx, r15
call fcn.14020ace0
mov rcx, qword [rdi + 0x18]
call fcn.14018ed30
mov rcx, qword [rdi + 0x18]
mov r15, qword [rdi + 0xa8]
call fcn.14018ed30
cmp byte [rdi + 0x138], 0
je 0x14010d5a1
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x5e0], eax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x5d0], xmm0
mov rcx, r15
call fcn.1401d1390
lea rax, [r15 + 0x50]
cmp byte [r15 + 0x68], 1
jne 0x14010d55e
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.14018ed30
mov rcx, qword [rdi + 0x18]
mov r15, qword [rdi + 0xa0]
call fcn.14018ed30
cmp byte [rdi + 0x138], 0
je 0x14010d5a1
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x5e0], eax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x5d0], xmm0
mov rcx, r15
call fcn.1401d1390
lea rax, [r15 + 0x50]
cmp byte [r15 + 0x68], 1
jne 0x14010d57d
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 [0x1402b5708]
jne 0x14010ce71
mov rcx, r14
call fcn.1400fd6f0
jmp 0x14010ce71
movaps xmm0, xmmword [0x14026f080]
lea r14, [rsp + 0x70]
movaps xmmword [r14], xmm0
mov rdx, qword [rsi]
mov rcx, r14
call fcn.14020bda0
mov rax, qword [r14]
xor r14d, r14d
test rax, rax
je 0x14010d366
mov r15, qword [rsp + 0x78]
cmp qword [rax + 0x20], r15
jbe 0x14010d5d0
mov r12, qword [rax + 0x18]
mov rcx, qword [rdi + 0x18]
call fcn.14018ed30
cmp byte [rdi + 0x148], 0
je 0x14010d59c
imul rax, r15, 0xa8
mov rcx, qword [r12 + rax + 0x20]
cmp rcx, qword [rdi + 0x140]
jge 0x14010d235
lea rcx, [rsp + 0x70]
call fcn.14020ad30
mov rax, qword [rsp + 0x70]
jmp 0x14010d3ae
mov rcx, qword [0x1402c5cb8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14010cf75
mov rcx, qword [0x1402c5cb8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14010cda4
mov rcx, qword [rdi + 0x18]
call fcn.14018ecf0
test al, al
je 0x14010cfe6
lea rsi, [rdi + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14010d47f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [rdi + 0x18]
mov r14, qword [rdi + 0x40]
call fcn.14018ed30
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0xa8]
mov rbx, qword [rax + 0x10]
call fcn.14018ed30
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0xa0]
mov r15, qword [rax + 0x10]
call fcn.14018ed30
mov r13, qword [rdi + 0xb8]
mov r12, qword [rdi + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x70], 0xe5
mov al, byte [0x1402c5935]
test al, al
je 0x14010cfe6
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.14020bd70
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea rax, [rsp + 0x84]
mov dword [rax], ebp
lea rcx, [0x140276b98]
lea rdx, [rsp + 0x5d0]
mov qword [rdx], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
lea rax, [0x140276580]
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.14004f440
jmp 0x14010cfe6
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 0x14010d2f8
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 0x14010d361
call fcn.1401ceaf0
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcincludeoptional:800:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.1401ceaf0
lea r14, [rsp + 0x5d0]
mov rcx, r14
call fcn.14018d160
cmp r15d, dword [r14]
je 0x14010d12e
int3
int3
int3
int3