Function at 0x140006a14
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x38
xor r15d, r15d
mov rbx, rcx
cmp qword [rcx + 0x800], r15
je 0x140006a3a
mov al, 1
jmp 0x140006ce1
mov r8d, 9
mov dword [rcx + 0x80c], r15d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPerflib_03X
call fcn.140004a58
lea rax, [rbp + 0x48]
mov qword [rbp + 0x48], r15
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140006a84
xor al, al
jmp 0x140006ce1
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea rdx, str.Counters
mov word [rbx], r15w
mov dword [rbp + 0x40], r15d
mov dword [rbp + 0x38], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006bf7
mov eax, dword [rbp + 0x38]
test eax, eax
je 0x140006bf7
mov ecx, eax
add rcx, rcx
call fcn.140120104
mov rsi, rax
test rax, rax
je 0x140006bf7
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.Counters
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006bef
mov r14d, dword [rbp + 0x38]
mov rdi, rsi
add r14, rsi
cmp rsi, r14
jae 0x140006bef
cmp word [rdi], r15w
je 0x140006bef
lea rdx, str.Process
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140006b82
lea rcx, [rdi - 4]
jmp 0x140006b4e
cmp ax, 0x39
ja 0x140006b57
sub rcx, 2
movzx eax, word [rcx]
cmp ax, 0x30
jae 0x140006b44
add rcx, 2
mov qword [rbp + 0x50], r15
mov r8d, 0xa
lea rdx, [rbp + 0x50]
call fcn.140143788
mov r8d, eax
lea rdx, [0x140169338]
mov rcx, rbx
call fcn.140004a58
jmp 0x140006bd5
cmp dword [rbx + 0x80c], r15d
jne 0x140006bd5
lea rdx, str.ID_Process
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140006bd5
lea rcx, [rdi - 4]
jmp 0x140006baf
cmp ax, 0x39
ja 0x140006bb8
sub rcx, 2
movzx eax, word [rcx]
cmp ax, 0x30
jae 0x140006ba5
add rcx, 2
mov qword [rbp + 0x50], r15
mov r8d, 0xa
lea rdx, [rbp + 0x50]
call fcn.140143788
mov dword [rbx + 0x80c], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rdi, [rdi + rax*2]
cmp rdi, r14
jb 0x140006b20
mov rcx, rsi
call fcn.14012008c
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], r15w
je 0x140006cd7
cmp qword [rbx + 0x800], r15
jne 0x140006c2b
mov ecx, 0x7d000
mov dword [rbx + 0x808], ecx
call fcn.140120104
mov qword [rbx + 0x800], rax
mov eax, dword [rbx + 0x808]
mov dword [rbp + 0x38], eax
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
mov rax, qword [rbx + 0x800]
mov rdx, rbx
mov rcx, 0xffffffff80000004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xa7
je 0x140006c34
test eax, eax
jne 0x140006c81
mov rcx, qword [rbx + 0x800]
movabs rdx, 0x46005200450050
cmp qword [rcx], rdx
je 0x140006cd7
cmp eax, 0xea
jne 0x140006cb4
mov eax, dword [rbp + 0x38]
add eax, 0x3e800
mov ecx, eax
mov dword [rbp + 0x38], eax
call fcn.140120104
test rax, rax
je 0x140006cbf
mov qword [rbx + 0x800], rax
mov eax, dword [rbp + 0x38]
mov dword [rbx + 0x808], eax
jmp 0x140006c2b
cmp eax, 0x100000
jge 0x140006c2b
mov rcx, qword [rbx + 0x800]
call fcn.14012008c
mov qword [rbx + 0x800], r15
jmp 0x140006a7d
cmp qword [rbx + 0x800], r15
setne al
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret