Function at 0x14013b0c0
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 [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x5f0], rax
cmp qword [rcx + 0x28], 0
je 0x14013b726
mov rsi, rcx
lea rdi, [rsp + 0xb0]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.1401e5d50
mov qword [rsp + 0xa8], 0
cmp qword [rsi + 0x10], 0
je 0x14013b726
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 0x14013b8aa
mov rbx, qword [rax + 0x18]
imul r14, rcx, 0xa8
mov rcx, qword [rbx + r14 + 0x78]
test rcx, rcx
je 0x14013b20d
mov rax, qword [rcx + 0x18]
cmp rax, r12
je 0x14013b17e
xor edx, edx
call qword [0x1402cbd20]
test al, al
jne 0x14013b200
add rbx, r14
cmp qword [rbx + 0xa0], 0
jne 0x14013b1e9
mov rax, qword [rsp + 0xa8]
cmp rax, 2
jae 0x14013b405
cmp rax, 2
setae sil
test rax, rax
jne 0x14013b1c4
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x14013b1d3
call fcn.1401ac870
int3
lea rcx, [rsp + 0xa8]
call fcn.14013bcf0
jmp 0x14013b1aa
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 0x14013b200
mov al, byte [rax + 4]
test al, al
je 0x14013b18b
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 0x14013b8ad
mov rcx, qword [rsp + 0xa8]
mov r8d, 8
test cl, 1
je 0x14013b23e
mov r8, qword [rsp + 0xb8]
imul rdx, r9, 0xa8
add rdx, qword [rax + 0x18]
mov rax, rcx
shr rax, 1
cmp rax, r8
je 0x14013b3dd
mov r8, rdi
test cl, 1
je 0x14013b268
mov r8, qword [rsp + 0xb0]
imul rax, rax, 0xa8
add rax, r8
je 0x14013b8a8
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 0x14013b8b0
mov r13, qword [rax + 0x18]
imul rbx, rcx, 0xa8
mov rcx, qword [r13 + rbx + 0x98]
test rcx, rcx
jne 0x14013b3c0
add r13, rbx
mov rbx, qword [r13 + 0x88]
test rbx, rbx
jne 0x14013b3b5
mov rcx, qword [r13 + 0x78]
test rcx, rcx
jne 0x14013b3cc
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x14013b3a6
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x14013b6fa
dec qword [rsi + 0x10]
jne 0x14013b12c
jmp 0x14013b18b
lock dec dword [rbx + 8]
jne 0x14013b384
jmp 0x14013b742
lock dec dword [rcx]
jne 0x14013b375
call fcn.1401a9dc4
jmp 0x14013b375
lock dec dword [rcx]
jne 0x14013b38d
mov rax, qword [rcx + 0x10]
call qword [0x1402cbd20]
jmp 0x14013b38d
lea rcx, [rsp + 0xa8]
call fcn.14013c5d0
jmp 0x14013b338
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402cbd20]
mov rax, qword [rdi]
jmp 0x14013b48e
cmp qword [rsi + 0x10], 0
jne 0x14013b69b
movabs r13, 0xaaaaaaaaaaaaaaaa
movabs r12, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x14013b5f4
mov rbp, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x14013b4d5
mov qword [rsp + 0x58], r13
mov rax, qword [0x1402dd7b0]
lea rcx, [0x1401930c0]
cmp rax, rcx
jne 0x14013b3ef
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 0x14013bbd6
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x14013b4d5
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 0x14013b4d5
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14013b4bf
cmp rcx, r8
jb 0x14013b7e2
lea rdi, [rbp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14013b72d
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 0x14013b853
cmp byte [rbp + 0x148], 1
je 0x14013b8b3
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013b825
mov rcx, qword [rbp + 0xa8]
cmp qword [rcx + 0x10], 0
sete byte [rbp + 0x58]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013b83c
mov cl, byte [rbp + 0x118]
mov byte [rbp + 0x5b], cl
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013b864
cmp qword [rbp + 0x98], 0
jne 0x14013b80b
mov rax, qword [rbp]
mov rcx, qword [rbp + 0x18]
lea rdx, [0x1401a8d10]
cmp qword [rax + 0x10], rdx
mov ebx, dword [rcx + 8]
jne 0x14013b6cd
test ebx, ebx
jne 0x14013b886
cmp byte [rbp + 0x118], 1
jne 0x14013b73b
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013b875
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 0x14013b69b
mov qword [rsp + 0x58], r13
mov rax, qword [0x1402dd7b0]
lea rcx, [0x1401930c0]
cmp rax, rcx
jne 0x14013b6e4
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 0x14013bbaf
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x14013b69b
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 0x14013b69b
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14013b685
cmp rcx, r8
jb 0x14013b7b9
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x14013b6ae
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.14013be50
mov rdi, qword [rsi + 0x30]
mov al, byte [0x14032e226]
test al, al
jne 0x14013ba9a
mov rax, qword [rsp + 0xa8]
jmp 0x14013b19d
test ebx, ebx
jne 0x14013b897
cmp byte [rbp + 0x118], 0
jne 0x14013b5d1
jmp 0x14013b73b
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402cbd20]
mov rax, qword [rdi]
jmp 0x14013b654
mov qword [rax + 0x28], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x14013b3a6
mov rcx, rbx
call fcn.14017c0e0
mov rcx, rbx
call fcn.1401a9dc4
jmp 0x14013b3a6
xor esi, esi
jmp 0x14013b1aa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14013b4ea
xor eax, eax
jmp 0x14013b5e8
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x140227de0]
cmp qword [rcx + 0x10], rdx
jne 0x14013b762
lea rcx, [0x14000be10]
cmp rax, rcx
je 0x14013b775
mov rcx, rbx
mov edx, 1
call qword [0x1402cbd20]
jmp 0x14013b384
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14013b783
lock dec dword [rcx]
je 0x14013b7b2
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x14013b792
lock dec dword [r14]
je 0x14013b79f
mov rcx, rbx
call fcn.1401a9dc4
jmp 0x14013b384
lea rcx, [r14 + 8]
call fcn.14015a870
mov rcx, r14
call fcn.1401a9dc4
jmp 0x14013b792
call fcn.1401a9dc4
jmp 0x14013b783
mov rcx, rsi
call fcn.140117a50
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x14013b69b
mov rcx, rsi
call fcn.140117a50
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x14013b4d5
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013bbfd
mov al, byte [rbp + 0x118]
jmp 0x14013b5e8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14013bc13
mov rax, qword [rbp + 0x18]
jmp 0x14013b563
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14013bc16
mov rax, qword [rbp + 0x18]
jmp 0x14013b57e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14013b547
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14013b592
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14013b5e0
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14013b5c4
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14013b6d5
int3
ud2
int3
int3
int3
movaps xmm0, xmmword [0x140299a90]
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm0
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.14023c360
mov rax, qword [rbx]
test rax, rax
je 0x14013b93c
mov qword [rsp + 0x50], 0
mov r15, qword [rsp + 0x78]
cmp r15, qword [rax + 0x20]
jae 0x14013bc19
mov r14, qword [rax + 0x18]
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013bc62
mov al, byte [rbp + 0x148]
test al, al
je 0x14013bc0e
imul r15, r15, 0xa8
mov rcx, qword [r14 + r15 + 0x20]
cmp rcx, qword [rbp + 0x140]
jge 0x14013b94a
lea rcx, [rsp + 0x70]
call fcn.14023afe0
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x14013b8de
jmp 0x14013ba6f
mov qword [rsp + 0x50], 0
jmp 0x14013ba6f
mov rcx, qword [rbp + 0x18]
mov ebx, dword [rcx + 8]
test ebx, ebx
jne 0x14013bc73
add r14, r15
test al, 1
je 0x14013b967
mov byte [rbp + 0x148], 0
lea rbx, [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
call fcn.14014b8e0
lea rcx, [rsp + 0x80]
mov rdx, rbx
call fcn.140106980
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013bc88
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 0x14013b9c2
mov byte [rbp + 0x138], 1
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013bc99
mov rbx, qword [rbp + 0xa8]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x14013bcac
cmp byte [rbp + 0x138], 0
je 0x14013b8a8
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.14023ce00
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x14013bcbe
mov rbx, qword [rbp + 0xa0]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x14013bcd5
cmp byte [rbp + 0x138], 0
je 0x14013b8a8
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.14023ce00
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
movabs rax, 0xfffffffc00000000
and rax, qword [rsp + 0x50]
cmp rax, qword [0x1402dd748]
jne 0x14013b554
mov rcx, qword [rsp + 0x50]
call fcn.140004e70
jmp 0x14013b554
mov rcx, qword [rdi + 0x18]
call fcn.1401a9280
test al, al
je 0x14013b6c0
lea rsi, [rdi + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14013bac5
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 0x14013bc2b
mov rcx, qword [rdi + 0xa8]
mov r14, qword [rcx + 0x10]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x14013bc3e
mov rcx, qword [rdi + 0xa0]
mov r15, qword [rcx + 0x10]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x14013bc51
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 [0x14032e226]
test al, al
je 0x14013b6c0
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.14023bfa0
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea rax, [rsp + 0xa4]
mov dword [rax], ebx
lea rcx, [0x14029fcc9]
lea rdx, [rsp + 0x80]
mov qword [rdx], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
lea rax, [0x14029f830]
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.14023bfd0
jmp 0x14013b6c0
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14013b64f
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14013b489
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14013b81a
int3
call fcn.1401e6180
int3
int3
int3
int3
int3
int3
int3
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x14013bc1c
mov rax, qword [rdi + 0x18]
jmp 0x14013bad8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x14013bc1f
mov rax, qword [rdi + 0x18]
jmp 0x14013baee
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
je 0x14013bb04
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14013b900
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14013bc22
mov al, byte [rbp + 0x148]
jmp 0x14013b959
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x14013b996
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14013bc25
mov rax, qword [rbp + 0x18]
jmp 0x14013b9d1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp r14d, eax
je 0x14013b9e5
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x14013bc28
mov rax, qword [rbp + 0x18]
jmp 0x14013ba26
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp r15d, eax
je 0x14013ba3a
int3