Function at 0x14002c500
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
lea rbp, [rax - 0x538]
sub rsp, 0x620
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x510], rax
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x3c2
lea r9, str.NGUsageTracking::CUsageTrackingHelper::deleteAllHPCustParticRegKey
lea r8, [0x1405c6738]
mov rdx, qword [0x1405c6760]
lea rcx, [rbp + 0x50]
call fcn.1400169f8
nop
call fcn.140021b10
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rbx
lea esi, [rbx + 7]
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x28], rbx
mov word [rbp - 0x38], bx
or r12, 0xffffffffffffffff
mov r9, r12
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14000ff84
nop
lea r14d, [rbx + 1]
cmp qword [rbp - 0x28], rbx
jne 0x14002c667
lea r9, str.CUsageTrackingHelper::deleteAllHPCustParticRegKey:_Failed_to_CSxSConfig::GetModelName__Product_may_have_been_uninstalled._Resolve_it_from_current_path_instead.
lea edx, [rbx + 0x10]
mov r8d, 0x3ca
lea rcx, [rbp + 0x50]
call fcn.140016e24
lea rcx, [rbp + 8]
call fcn.1400226ec
nop
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.14002244c
mov rdi, rax
lea rax, [rbp - 0x38]
cmp rax, rdi
je 0x14002c604
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp - 0x38]
call fcn.14000f964
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp + 0x28]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp + 8]
call fcn.14000f964
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 8]
call fcn.14002227c
mov rdi, rax
lea rax, [rbp - 0x38]
cmp rax, rdi
je 0x14002c658
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp - 0x38]
call fcn.14000f964
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp + 8]
call fcn.14000f964
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
mov qword [rbp - 8], rbx
mov qword [rbp], rbx
mov qword [rbp], rsi
mov qword [rbp - 8], rbx
mov word [rbp - 0x18], bx
call fcn.14002653c
lea rsi, [0x140494e34]
lea rcx, [rbp - 0x58]
test eax, eax
je 0x14002c6e3
mov rdi, 0xffffffff80000003
mov r8d, 8
lea rdx, str.S_1_5_18
call fcn.14000fde0
mov r8, r14
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.14000fae0
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rdx, str.SOFTWAREHewlett_Packard
lea rcx, [rbp - 0x58]
call fcn.14000fae0
jmp 0x14002c6fc
mov rdi, 0xffffffff80000001
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rdx, str.SOFTWAREHewlett_Packard
call fcn.14000fde0
mov r8, r14
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.14000fae0
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.14000fc3c
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x18]
call fcn.14000ff84
mov r8, r14
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.14000fae0
mov r9, r12
xor r8d, r8d
lea rdx, [0x1405b8d30]
lea rcx, [rbp - 0x58]
call fcn.14000fc3c
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r12d, 0x104
test eax, eax
jne 0x14002c86a
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x300]
call fcn.1400fecb0
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x60], ebx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x300]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x14002c86a
mov dword [rsp + 0x64], r12d
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x64]
lea r8, [rbp + 0xf0]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rdx, [rbp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esi, r14d
cmp esi, dword [rsp + 0x60]
jb 0x14002c819
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c960
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xf0]
call fcn.1400fecb0
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], ebx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x64]
lea rdx, [rbp + 0xf0]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [rsp + 0x60], ebx
jne 0x14002c960
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
lea rcx, [rbp + 0x50]
test esi, esi
jne 0x14002c97d
mov bl, r14b
lea r9, str.CUsageTrackingHelper::deleteAllHPCustParticRegKey:_successfully_deleting_HPCustPartic_reg_key
lea edx, [rsi + 0x10]
mov r8d, 0x422
jmp 0x14002c98f
lea r9, str.CUsageTrackingHelper::deleteAllHPCustParticRegKey:_failed_to_delete_HPCustPartic_reg_key
mov edx, 0x80
mov r8d, 0x427
call fcn.140016e24
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp - 0x18]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp - 0x58]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp - 0x38]
call fcn.14000f964
nop
lea rcx, [rbp + 0x50]
call fcn.140016b40
mov al, bl
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x620]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret