Function at 0x140017fd0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xe8]
sub rsp, 0x1e0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov qword [rbp - 0x60], 7
xor ebx, ebx
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
lea rdx, [rbp - 0x78]
call fcn.140018260
mov qword [rsp + 0x78], rbx
call fcn.1400179a0
test al, al
je 0x1400181ea
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
movzx eax, word [str.SoftwareHewlett_PackardHP_Print_SettingsUPDProperties]
neg ax
sbb r8, r8
and r8d, 0x38
lea rdx, str.SoftwareHewlett_PackardHP_Print_SettingsUPDProperties
lea rcx, [rbp - 0x58]
call fcn.14000d3f0
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], 2
mov byte [rsp + 0x70], bl
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x6c], eax
test eax, eax
jne 0x1400180d2
cmp dword [rsp + 0x50], 1
jne 0x1400180d7
mov byte [rsp + 0x70], 1
jmp 0x1400180d7
mov qword [rsp + 0x60], rbx
cmp qword [rbp - 0x40], 8
jb 0x140018112
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140018112
mov rax, qword [0x1400575e8]
test rax, rax
jne 0x140018109
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x140018119
xor edx, edx
lea rcx, [rsp + 0x58]
call rax
mov rax, qword [0x1400575e8]
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400181f1
mov dword [rsp + 0x50], 8
mov dword [rsp + 0x58], 0xb
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x6c], eax
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400181ea
lea rdi, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdi, qword [rbp - 0x78]
mov eax, 0xd
test rdi, rdi
je 0x1400181d8
mov dword [rsp + 0x58], 0x100
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400181c7
cmp eax, 0xea
jne 0x1400181d3
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rbx, qword [rsp + 0x60]
mov dword [rsp + 0x6c], eax
test rbx, rbx
je 0x1400181ea
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x1400575e8]
mov rbx, qword [rsp + 0x78]
cmp qword [rbp - 0x60], 8
jb 0x14001822a
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x14001822a
test rax, rax
jne 0x140018221
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x14001822a
xor edx, edx
lea rcx, [rsp + 0x58]
call rax
mov rax, rbx
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140023790
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret