Function at 0x14012e620
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 [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x5f0], rax
cmp qword [rcx + 0x28], 0
je 0x14012ec86
mov rsi, rcx
lea rdi, [rsp + 0xb0]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.1401d8720
mov qword [rsp + 0xa8], 0
cmp qword [rsi + 0x10], 0
je 0x14012ec86
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 0x14012ee0a
mov rbx, qword [rax + 0x18]
imul r14, rcx, 0xa8
mov rcx, qword [rbx + r14 + 0x78]
test rcx, rcx
je 0x14012e76d
mov rax, qword [rcx + 0x18]
cmp rax, r12
je 0x14012e6de
xor edx, edx
call qword [0x1402a7b00]
test al, al
jne 0x14012e760
add rbx, r14
cmp qword [rbx + 0xa0], 0
jne 0x14012e749
mov rax, qword [rsp + 0xa8]
cmp rax, 2
jae 0x14012e965
cmp rax, 2
setae sil
test rax, rax
jne 0x14012e724
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14012e733
call fcn.14019f290
int3
lea rcx, [rsp + 0xa8]
call fcn.14012f250
jmp 0x14012e70a
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 0x14012e760
mov al, byte [rax + 4]
test al, al
je 0x14012e6eb
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 0x14012ee0d
mov rcx, qword [rsp + 0xa8]
mov r8d, 8
test cl, 1
je 0x14012e79e
mov r8, qword [rsp + 0xb8]
imul rdx, r9, 0xa8
add rdx, qword [rax + 0x18]
mov rax, rcx
shr rax, 1
cmp rax, r8
je 0x14012e93d
mov r8, rdi
test cl, 1
je 0x14012e7c8
mov r8, qword [rsp + 0xb0]
imul rax, rax, 0xa8
add rax, r8
je 0x14012ee08
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 0x14012ee10
mov r13, qword [rax + 0x18]
imul rbx, rcx, 0xa8
mov rcx, qword [r13 + rbx + 0x98]
test rcx, rcx
jne 0x14012e920
add r13, rbx
mov rbx, qword [r13 + 0x88]
test rbx, rbx
jne 0x14012e915
mov rcx, qword [r13 + 0x78]
test rcx, rcx
jne 0x14012e92c
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x14012e906
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x14012ec5a
dec qword [rsi + 0x10]
jne 0x14012e68c
jmp 0x14012e6eb
lock dec dword [rbx + 8]
jne 0x14012e8e4
jmp 0x14012eca2
lock dec dword [rcx]
jne 0x14012e8d5
call fcn.14019cac4
jmp 0x14012e8d5
lock dec dword [rcx]
jne 0x14012e8ed
mov rax, qword [rcx + 0x10]
call qword [0x1402a7b00]
jmp 0x14012e8ed
lea rcx, [rsp + 0xa8]
call fcn.14012fb30
jmp 0x14012e898
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402a7b00]
mov rax, qword [rdi]
jmp 0x14012e9ee
cmp qword [rsi + 0x10], 0
jne 0x14012ebfb
movabs r13, 0xaaaaaaaaaaaaaaaa
movabs r12, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x14012eb54
mov rbp, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x14012ea35
mov qword [rsp + 0x58], r13
mov rax, qword [0x1402b9770]
lea rcx, [0x1401869b0]
cmp rax, rcx
jne 0x14012e94f
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 0x14012f136
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402c9700]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x14012ea35
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 0x14012ea35
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14012ea1f
cmp rcx, r8
jb 0x14012ed42
lea rdi, [rbp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14012ec8d
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 0x14012edb3
cmp byte [rbp + 0x148], 1
je 0x14012ee13
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012ed85
mov rcx, qword [rbp + 0xa8]
cmp qword [rcx + 0x10], 0
sete byte [rbp + 0x58]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012ed9c
mov cl, byte [rbp + 0x118]
mov byte [rbp + 0x5b], cl
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012edc4
cmp qword [rbp + 0x98], 0
jne 0x14012ed6b
mov rax, qword [rbp]
mov rcx, qword [rbp + 0x18]
lea rdx, [0x14019ba10]
cmp qword [rax + 0x10], rdx
mov ebx, dword [rcx + 8]
jne 0x14012ec2d
test ebx, ebx
jne 0x14012ede6
cmp byte [rbp + 0x118], 1
jne 0x14012ec9b
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012edd5
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 0x14012ebfb
mov qword [rsp + 0x58], r13
mov rax, qword [0x1402b9770]
lea rcx, [0x1401869b0]
cmp rax, rcx
jne 0x14012ec44
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 0x14012f10f
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402c9700]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x14012ebfb
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 0x14012ebfb
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14012ebe5
cmp rcx, r8
jb 0x14012ed19
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x14012ec0e
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.14012f3b0
mov rdi, qword [rsi + 0x30]
mov al, byte [0x1402c9336]
test al, al
jne 0x14012effa
mov rax, qword [rsp + 0xa8]
jmp 0x14012e6fd
test ebx, ebx
jne 0x14012edf7
cmp byte [rbp + 0x118], 0
jne 0x14012eb31
jmp 0x14012ec9b
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402a7b00]
mov rax, qword [rdi]
jmp 0x14012ebb4
mov qword [rax + 0x28], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x14012e906
mov rcx, rbx
call fcn.14016f640
mov rcx, rbx
call fcn.14019cac4
jmp 0x14012e906
xor esi, esi
jmp 0x14012e70a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14012ea4a
xor eax, eax
jmp 0x14012eb48
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x1402036e0]
cmp qword [rcx + 0x10], rdx
jne 0x14012ecc2
lea rcx, [0x14000be10]
cmp rax, rcx
je 0x14012ecd5
mov rcx, rbx
mov edx, 1
call qword [0x1402a7b00]
jmp 0x14012e8e4
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14012ece3
lock dec dword [rcx]
je 0x14012ed12
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x14012ecf2
lock dec dword [r14]
je 0x14012ecff
mov rcx, rbx
call fcn.14019cac4
jmp 0x14012e8e4
lea rcx, [r14 + 8]
call fcn.14014ddd0
mov rcx, r14
call fcn.14019cac4
jmp 0x14012ecf2
call fcn.14019cac4
jmp 0x14012ece3
mov rcx, rsi
call fcn.14010afb0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x14012ebfb
mov rcx, rsi
call fcn.14010afb0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x14012ea35
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012f15d
mov al, byte [rbp + 0x118]
jmp 0x14012eb48
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012f173
mov rax, qword [rbp + 0x18]
jmp 0x14012eac3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012f176
mov rax, qword [rbp + 0x18]
jmp 0x14012eade
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012eaa7
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012eaf2
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012eb40
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012eb24
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012ec35
int3
ud2
int3
int3
int3
movaps xmm0, xmmword [0x140275a70]
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm0
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.140217c60
mov rax, qword [rbx]
test rax, rax
je 0x14012ee9c
mov qword [rsp + 0x50], 0
mov r15, qword [rsp + 0x78]
cmp r15, qword [rax + 0x20]
jae 0x14012f179
mov r14, qword [rax + 0x18]
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012f1c2
mov al, byte [rbp + 0x148]
test al, al
je 0x14012f16e
imul r15, r15, 0xa8
mov rcx, qword [r14 + r15 + 0x20]
cmp rcx, qword [rbp + 0x140]
jge 0x14012eeaa
lea rcx, [rsp + 0x70]
call fcn.1402168e0
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x14012ee3e
jmp 0x14012efcf
mov qword [rsp + 0x50], 0
jmp 0x14012efcf
mov rcx, qword [rbp + 0x18]
mov ebx, dword [rcx + 8]
test ebx, ebx
jne 0x14012f1d3
add r14, r15
test al, 1
je 0x14012eec7
mov byte [rbp + 0x148], 0
lea rbx, [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
call fcn.14013ee40
lea rcx, [rsp + 0x80]
mov rdx, rbx
call fcn.1400f9ee0
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012f1e8
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 0x14012ef22
mov byte [rbp + 0x138], 1
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012f1f9
mov rbx, qword [rbp + 0xa8]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x14012f20c
cmp byte [rbp + 0x138], 0
je 0x14012ee08
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.140218700
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14012f21e
mov rbx, qword [rbp + 0xa0]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14012f235
cmp byte [rbp + 0x138], 0
je 0x14012ee08
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.140218700
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
movabs rax, 0xfffffffc00000000
and rax, qword [rsp + 0x50]
cmp rax, qword [0x1402b9708]
jne 0x14012eab4
mov rcx, qword [rsp + 0x50]
call fcn.140004e70
jmp 0x14012eab4
mov rcx, qword [rdi + 0x18]
call fcn.14019bf80
test al, al
je 0x14012ec20
lea rsi, [rdi + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14012f025
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 0x14012f18b
mov rcx, qword [rdi + 0xa8]
mov r14, qword [rcx + 0x10]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x14012f19e
mov rcx, qword [rdi + 0xa0]
mov r15, qword [rcx + 0x10]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x14012f1b1
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 [0x1402c9336]
test al, al
je 0x14012ec20
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.1402178a0
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea rax, [rsp + 0xa4]
mov dword [rax], ebx
lea rcx, [0x14027bc29]
lea rdx, [rsp + 0x80]
mov qword [rdx], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
lea rax, [0x14027b790]
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.1402178d0
jmp 0x14012ec20
mov rcx, qword [0x1402c9700]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14012ebaf
mov rcx, qword [0x1402c9700]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14012e9e9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012ed7a
int3
call fcn.1401d8b50
int3
int3
int3
int3
int3
int3
int3
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x14012f17c
mov rax, qword [rdi + 0x18]
jmp 0x14012f038
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x14012f17f
mov rax, qword [rdi + 0x18]
jmp 0x14012f04e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
je 0x14012f064
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012ee60
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012f182
mov al, byte [rbp + 0x148]
jmp 0x14012eeb9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14012eef6
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012f185
mov rax, qword [rbp + 0x18]
jmp 0x14012ef31
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp r14d, eax
je 0x14012ef45
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14012f188
mov rax, qword [rbp + 0x18]
jmp 0x14012ef86
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp r15d, eax
je 0x14012ef9a
int3