Function at 0x140013d70
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x1400410e0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12, rdx
mov rbx, rcx
mov qword [rbp], 7
xor r13d, r13d
mov qword [rbp - 8], r13
mov word [rbp - 0x18], r13w
lea rdx, [rbp - 0x18]
call fcn.1400144a0
mov esi, r13d
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r13
mov word [rbp - 0x40], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14000b2e0
nop
call fcn.140013c40
test al, al
je 0x140013f65
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea r8d, [r13 + 0x38]
lea rdx, str.SoftwareHewlett_PackardHP_Print_SettingsUPDProperties
lea rcx, [rbp - 0x68]
call fcn.14000b2e0
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x60], 2
mov byte [rsp + 0x68], r13b
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
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 + 0x64], eax
test eax, eax
jne 0x140013e9d
cmp dword [rsp + 0x50], 1
jne 0x140013ea2
mov byte [rsp + 0x68], 1
jmp 0x140013ea2
mov qword [rsp + 0x58], r13
cmp qword [rbp - 0x50], 8
jb 0x140013ede
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140013ede
mov rdi, qword [0x140044d10]
test rdi, rdi
jne 0x140013ed6
call fcn.140018630
mov rdi, rax
mov qword [0x140044d10], rax
test rax, rax
je 0x140013ee5
xor edx, edx
lea rcx, [rbp - 0x78]
call rdi
mov rdi, qword [0x140044d10]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
mov qword [rsp + 0x78], r12
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013f46
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x64], eax
test eax, eax
sete al
mov rdi, qword [0x140044d10]
jmp 0x140013f48
xor al, al
mov esi, r13d
test al, al
setne sil
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013f6c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x64], eax
mov rdi, qword [0x140044d10]
cmp qword [rbp - 0x28], 8
jb 0x140013fa8
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140013fa8
test rdi, rdi
jne 0x140013f99
call fcn.140018630
mov rdi, rax
mov qword [0x140044d10], rax
test rax, rax
je 0x140013fa8
xor edx, edx
lea rcx, [rbp - 0x80]
call rdi
mov rdi, qword [0x140044d10]
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r13
mov word [rbp - 0x40], r13w
cmp qword [rbp], 8
jb 0x140013ff0
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x70], rcx
test rcx, rcx
je 0x140013ff0
test rdi, rdi
jne 0x140013fe7
call fcn.140018630
mov rdi, rax
mov qword [0x140044d10], rax
test rax, rax
je 0x140013ff0
xor edx, edx
lea rcx, [rsp + 0x70]
call rdi
mov eax, esi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14001a510
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret