Function at 0x14012c610
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 0x14012cc76
mov rsi, rcx
lea rdi, [rsp + 0xb0]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.1401d6710
mov qword [rsp + 0xa8], 0
cmp qword [rsi + 0x10], 0
je 0x14012cc76
xor r15d, r15d
lea r12, [method.std::__Cr::ctype_char_.virtual_56]
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 rcx, r8
jae 0x14012cdfa
mov rbx, qword [rax + 0x18]
imul r14, rcx, 0xa8
mov rcx, qword [rbx + r14 + 0x78]
test rcx, rcx
je 0x14012c75d
mov rax, qword [rcx + 0x18]
cmp rax, r12
je 0x14012c6ce
xor edx, edx
call qword [0x1402a4958]
test al, al
jne 0x14012c750
add rbx, r14
cmp qword [rbx + 0xa0], 0
jne 0x14012c739
mov rax, qword [rsp + 0xa8]
cmp rax, 2
jae 0x14012c955
cmp rax, 2
setae sil
test rax, rax
jne 0x14012c714
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14012c723
call fcn.14019d280
int3
lea rcx, [rsp + 0xa8]
call fcn.14012d240
jmp 0x14012c6fa
mov eax, esi
add rsp, 0x5f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x14012c750
mov al, byte [rax + 4]
test al, al
je 0x14012c6db
nop dword [rax]
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 r9, r8
jae 0x14012cdfd
mov rcx, qword [rsp + 0xa8]
mov r8d, 8
test cl, 1
je 0x14012c78e
mov r8, qword [rsp + 0xb8]
imul rdx, r9, 0xa8
add rdx, qword [rax + 0x18]
mov rax, rcx
shr rax, 1
cmp rax, r8
je 0x14012c92d
mov r8, rdi
test cl, 1
je 0x14012c7b8
mov r8, qword [rsp + 0xb0]
imul rax, rax, 0xa8
add rax, r8
je 0x14012cdf8
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 + 0xa8], 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 rcx, r8
jae 0x14012ce00
mov r13, qword [rax + 0x18]
imul rbx, rcx, 0xa8
mov rcx, qword [r13 + rbx + 0x98]
test rcx, rcx
jne 0x14012c910
add r13, rbx
mov rbx, qword [r13 + 0x88]
test rbx, rbx
jne 0x14012c905
mov rcx, qword [r13 + 0x78]
test rcx, rcx
jne 0x14012c91c
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x14012c8f6
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x14012cc4a
dec qword [rsi + 0x10]
jne 0x14012c67c
jmp 0x14012c6db
lock dec dword [rbx + 8]
jne 0x14012c8d4
jmp 0x14012cc92
lock dec dword [rcx]
jne 0x14012c8c5
call fcn.14019aab4
jmp 0x14012c8c5
lock dec dword [rcx]
jne 0x14012c8dd
mov rax, qword [rcx + 0x10]
call qword [0x1402a4958]
jmp 0x14012c8dd
lea rcx, [rsp + 0xa8]
call fcn.14012db20
jmp 0x14012c888
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402a4958]
mov rax, qword [rdi]
jmp 0x14012c9de
cmp qword [rsi + 0x10], 0
jne 0x14012cbeb
movabs r13, 0xaaaaaaaaaaaaaaaa
movabs r12, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x14012cb44
mov rbp, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x14012ca25
mov qword [rsp + 0x58], r13
mov rax, qword [0x1402b5770]
lea rcx, [0x1401849a0]
cmp rax, rcx
jne 0x14012c93f
lea rdi, [rsp + 0x80]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r12
jge 0x14012d126
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402c5700]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x14012ca25
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 0x14012ca25
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14012ca0f
cmp rcx, r8
jb 0x14012cd32
lea rdi, [rbp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14012cc7d
mov rax, qword [rsi]
mov rcx, qword [rbp + 0x30]
mov qword [rsi], rcx
mov qword [rbp + 0x30], rax
mov rax, qword [rsi + 8]
mov rcx, qword [rbp + 0x38]
mov qword [rsi + 8], rcx
mov qword [rbp + 0x38], rax
mov rax, qword [rsi + 0x10]
mov rcx, qword [rbp + 0x40]
mov qword [rsi + 0x10], rcx
mov qword [rbp + 0x40], rax
mov rax, qword [rsi + 0x18]
mov rcx, qword [rbp + 0x48]
mov qword [rsi + 0x18], rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rsi + 0x20]
mov rcx, qword [rbp + 0x50]
mov qword [rsi + 0x20], rcx
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012cda3
cmp byte [rbp + 0x148], 1
je 0x14012ce03
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012cd75
mov rcx, qword [rbp + 0xa8]
cmp qword [rcx + 0x10], 0
sete byte [rbp + 0x58]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012cd8c
mov cl, byte [rbp + 0x118]
mov byte [rbp + 0x5b], cl
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012cdb4
cmp qword [rbp + 0x98], 0
jne 0x14012cd5b
mov rax, qword [rbp]
mov rcx, qword [rbp + 0x18]
lea rdx, [0x140199a00]
cmp qword [rax + 0x10], rdx
mov ebx, dword [rcx + 8]
jne 0x14012cc1d
test ebx, ebx
jne 0x14012cdd6
cmp byte [rbp + 0x118], 1
jne 0x14012cc8b
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012cdc5
mov al, byte [rbp + 0x138]
xor al, 1
mov byte [rbp + 0x59], al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi + 8], 0
je 0x14012cbeb
mov qword [rsp + 0x58], r13
mov rax, qword [0x1402b5770]
lea rcx, [0x1401849a0]
cmp rax, rcx
jne 0x14012cc34
lea rdi, [rsp + 0x80]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r12
jge 0x14012d0ff
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402c5700]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x14012cbeb
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 0x14012cbeb
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14012cbd5
cmp rcx, r8
jb 0x14012cd09
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x14012cbfe
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.14012d3a0
mov rdi, qword [rsi + 0x30]
mov al, byte [0x1402c5336]
test al, al
jne 0x14012cfea
mov rax, qword [rsp + 0xa8]
jmp 0x14012c6ed
test ebx, ebx
jne 0x14012cde7
cmp byte [rbp + 0x118], 0
jne 0x14012cb21
jmp 0x14012cc8b
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402a4958]
mov rax, qword [rdi]
jmp 0x14012cba4
mov qword [rax + 0x28], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x14012c8f6
mov rcx, rbx
call fcn.14016d630
mov rcx, rbx
call fcn.14019aab4
jmp 0x14012c8f6
xor esi, esi
jmp 0x14012c6fa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14012ca3a
xor eax, eax
jmp 0x14012cb38
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x140200a30]
cmp qword [rcx + 0x10], rdx
jne 0x14012ccb2
lea rcx, [0x14000be10]
cmp rax, rcx
je 0x14012ccc5
mov rcx, rbx
mov edx, 1
call qword [0x1402a4958]
jmp 0x14012c8d4
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14012ccd3
lock dec dword [rcx]
je 0x14012cd02
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x14012cce2
lock dec dword [r14]
je 0x14012ccef
mov rcx, rbx
call fcn.14019aab4
jmp 0x14012c8d4
lea rcx, [r14 + 8]
call fcn.14014bdc0
mov rcx, r14
call fcn.14019aab4
jmp 0x14012cce2
call fcn.14019aab4
jmp 0x14012ccd3
mov rcx, rsi
call fcn.140108fa0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x14012cbeb
mov rcx, rsi
call fcn.140108fa0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x14012ca25
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012d14d
mov al, byte [rbp + 0x118]
jmp 0x14012cb38
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012d163
mov rax, qword [rbp + 0x18]
jmp 0x14012cab3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012d166
mov rax, qword [rbp + 0x18]
jmp 0x14012cace
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012ca97
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012cae2
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012cb30
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012cb14
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012cc25
int3
ud2
int3
int3
int3
movaps xmm0, xmmword [0x140272a70]
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm0
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.140214fb0
mov rax, qword [rbx]
test rax, rax
je 0x14012ce8c
mov qword [rsp + 0x50], 0
mov r15, qword [rsp + 0x78]
cmp r15, qword [rax + 0x20]
jae 0x14012d169
mov r14, qword [rax + 0x18]
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012d1b2
mov al, byte [rbp + 0x148]
test al, al
je 0x14012d15e
imul r15, r15, 0xa8
mov rcx, qword [r14 + r15 + 0x20]
cmp rcx, qword [rbp + 0x140]
jge 0x14012ce9a
lea rcx, [rsp + 0x70]
call fcn.140213c30
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x14012ce2e
jmp 0x14012cfbf
mov qword [rsp + 0x50], 0
jmp 0x14012cfbf
mov rcx, qword [rbp + 0x18]
mov ebx, dword [rcx + 8]
test ebx, ebx
jne 0x14012d1c3
add r14, r15
test al, 1
je 0x14012ceb7
mov byte [rbp + 0x148], 0
lea rbx, [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
call fcn.14013ce30
lea rcx, [rsp + 0x80]
mov rdx, rbx
call fcn.1400f7ed0
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012d1d8
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rbp + 0x120], xmm0
mov eax, dword [rsp + 0x90]
mov dword [rbp + 0x130], eax
cmp byte [rbp + 0x138], 0
jne 0x14012cf12
mov byte [rbp + 0x138], 1
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012d1e9
mov rbx, qword [rbp + 0xa8]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x14012d1fc
cmp byte [rbp + 0x138], 0
je 0x14012cdf8
lea r14, [rbp + 0x120]
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x80]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
mov rcx, rbx
call fcn.140215a50
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012d20e
mov rbx, qword [rbp + 0xa0]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14012d225
cmp byte [rbp + 0x138], 0
je 0x14012cdf8
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x80]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
mov rcx, rbx
call fcn.140215a50
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
movabs rax, 0xfffffffc00000000
and rax, qword [rsp + 0x50]
cmp rax, qword [0x1402b5708]
jne 0x14012caa4
mov rcx, qword [rsp + 0x50]
call fcn.140004e70
jmp 0x14012caa4
mov rcx, qword [rdi + 0x18]
call fcn.140199f70
test al, al
je 0x14012cc10
lea rsi, [rdi + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14012d015
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x40]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x14012d17b
mov rcx, qword [rdi + 0xa8]
mov r14, qword [rcx + 0x10]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x14012d18e
mov rcx, qword [rdi + 0xa0]
mov r15, qword [rcx + 0x10]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x14012d1a1
mov r13, qword [rdi + 0xb8]
mov r12, qword [rdi + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x70], 0xe6
mov al, byte [0x1402c5336]
test al, al
je 0x14012cc10
movzx esi, al
add r14d, ebx
sub r12, r13
shr r12, 3
imul ebx, r12d, 0x3cf3cf3d
add ebx, r15d
add ebx, r14d
mov ecx, dword [rdi + 8]
call fcn.140214bf0
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea rax, [rsp + 0xa4]
mov dword [rax], ebx
lea rcx, [0x140278c19]
lea rdx, [rsp + 0x80]
mov qword [rdx], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
lea rax, [0x140278780]
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.140214c20
jmp 0x14012cc10
mov rcx, qword [0x1402c5700]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14012cb9f
mov rcx, qword [0x1402c5700]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14012c9d9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012cd6a
int3
call fcn.1401d6b40
int3
int3
int3
int3
int3
int3
int3
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x14012d16c
mov rax, qword [rdi + 0x18]
jmp 0x14012d028
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x14012d16f
mov rax, qword [rdi + 0x18]
jmp 0x14012d03e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
je 0x14012d054
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012ce50
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012d172
mov al, byte [rbp + 0x148]
jmp 0x14012cea9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012cee6
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012d175
mov rax, qword [rbp + 0x18]
jmp 0x14012cf21
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp r14d, eax
je 0x14012cf35
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012d178
mov rax, qword [rbp + 0x18]
jmp 0x14012cf76
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp r15d, eax
je 0x14012cf8a
int3