Function at 0x140017ad0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp + 0x37], 7
xor r14d, r14d
mov qword [rbp + 0x2f], r14
mov word [rbp + 0x1f], r14w
lea rdx, [rbp + 0x1f]
call fcn.140018260
mov ebx, r14d
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r14
mov word [rbp - 1], r14w
cmp word [rdi], bx
jne 0x140017b41
mov r8d, r14d
jmp 0x140017b4f
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bx
jne 0x140017b45
mov rdx, rdi
lea rcx, [rbp - 1]
call fcn.14000d3f0
nop
call fcn.1400179a0
test al, al
je 0x140017cb2
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r14
mov word [rbp - 0x21], r14w
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 - 0x21]
call fcn.14000d3f0
mov qword [rbp - 0x41], r14
mov dword [rbp - 0x39], 2
mov byte [rbp - 0x31], 0
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
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 [rbp - 0x35], eax
test eax, eax
jne 0x140017c05
cmp dword [rbp - 0x49], 1
jne 0x140017c09
mov byte [rbp - 0x31], 1
jmp 0x140017c09
mov qword [rbp - 0x41], r14
cmp qword [rbp - 9], 8
jb 0x140017c46
mov rax, qword [rbp - 0x21]
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140017c46
mov r8, qword [0x1400575e8]
test r8, r8
jne 0x140017c3d
call fcn.140021810
mov r8, rax
mov qword [0x1400575e8], rax
test rax, rax
je 0x140017c4d
xor edx, edx
lea rcx, [rbp - 0x49]
call r8
mov r8, qword [0x1400575e8]
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
mov qword [rbp - 0x49], rsi
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140017c99
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp - 0x35], eax
test eax, eax
sete al
mov r8, qword [0x1400575e8]
jmp 0x140017c9b
xor al, al
mov ebx, r14d
test al, al
setne bl
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140017cb9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [0x1400575e8]
cmp qword [rbp + 0x17], 8
jb 0x140017cf6
mov rax, qword [rbp - 1]
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140017cf6
test r8, r8
jne 0x140017ce6
call fcn.140021810
mov r8, rax
mov qword [0x1400575e8], rax
test rax, rax
je 0x140017cf6
xor edx, edx
lea rcx, [rbp - 0x49]
call r8
mov r8, qword [0x1400575e8]
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r14
mov word [rbp - 1], r14w
cmp qword [rbp + 0x37], 8
jb 0x140017d3d
mov rcx, qword [rbp + 0x1f]
mov qword [rbp - 0x49], rcx
test rcx, rcx
je 0x140017d3d
test r8, r8
jne 0x140017d34
call fcn.140021810
mov r8, rax
mov qword [0x1400575e8], rax
test rax, rax
je 0x140017d3d
xor edx, edx
lea rcx, [rbp - 0x49]
call r8
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140023790
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret