Function at 0x1400104a0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1e0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rbx, rcx
mov r14b, 1
mov qword [rbp - 0x40], 7
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov word [rbp - 0x58], r15w
lea r8d, [r15 + 0x2a]
lea rdx, str.SoftwareHewlett_PackardHP_Print_Settings
lea rcx, [rbp - 0x58]
call fcn.14000d3f0
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], 2
mov byte [rsp + 0x70], r15b
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x6c], eax
test eax, eax
jne 0x140010577
cmp dword [rsp + 0x78], 1
jne 0x14001057c
mov byte [rsp + 0x70], r14b
jmp 0x14001057c
mov qword [rsp + 0x60], r15
cmp qword [rbp - 0x40], 8
jb 0x1400105b9
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400105b9
cmp qword [0x1400575e8], 0
jne 0x1400105ac
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x1400105b9
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [0x1400575e8]
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r15
mov word [rbp - 0x58], r15w
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r15
mov word [rbp - 0x78], r15w
lea rsi, [rbx + 0x20]
lea rbx, [0x140054ff0]
mov rdx, rbx
mov rcx, rsi
call fcn.140013680
mov rcx, qword [rsi]
mov edi, 1
or r12, 0xffffffffffffffff
cmp rax, rcx
je 0x14001068b
lea r8, [rax + 0x20]
mov r10, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140010618
mov r8, qword [r8]
cmp qword [0x140055008], 8
cmovae rbx, qword [0x140054ff0]
mov r9, r10
mov r11, qword [0x140055000]
cmp r11, r10
cmovb r9, r11
test r9, r9
jmp 0x140010662
movzx edx, word [r8]
cmp word [rbx], dx
jne 0x140010656
add rbx, 2
add r8, 2
dec r9
jmp 0x140010662
mov r9d, edi
cmp word [rbx], dx
cmovb r9d, r12d
jmp 0x140010667
jne 0x140010640
mov r9d, r15d
movsxd rdx, r9d
test r9d, r9d
jne 0x140010682
cmp r11, r10
jae 0x140010679
mov edx, r12d
jmp 0x140010682
mov edx, r15d
cmp r11, r10
setne dl
test edx, edx
mov qword [rsp + 0x50], rax
jns 0x140010690
mov qword [rsp + 0x50], rcx
lea rax, [rsp + 0x50]
mov rax, qword [rax]
cmp rax, rcx
je 0x14001070a
lea rdx, [rax + 0x40]
lea rax, [rbp - 0x78]
cmp rax, rdx
je 0x1400106b9
mov r9, r12
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.14000c8e0
lea rcx, str.19728374
call fcn.140023d28
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140010707
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.UPDADS
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x6c], eax
test eax, eax
sete r14b
jmp 0x14001070a
xor r14b, r14b
lea rbx, [0x1400550b0]
mov rdx, rbx
mov rcx, rsi
call fcn.140013680
mov rcx, qword [rsi]
cmp rax, rcx
je 0x1400107a4
lea r8, [rax + 0x20]
mov r10, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x14001073a
mov r8, qword [r8]
cmp qword [0x1400550c8], 8
cmovae rbx, qword [0x1400550b0]
mov r9, r10
mov r11, qword [0x1400550c0]
cmp r11, r10
cmovb r9, r11
test r9, r9
jmp 0x14001077c
movzx edx, word [r8]
cmp word [rbx], dx
jne 0x140010776
add rbx, 2
add r8, 2
dec r9
jmp 0x14001077c
cmovb edi, r12d
jmp 0x140010781
jne 0x140010760
mov edi, r15d
movsxd rdx, edi
test edi, edi
jne 0x14001079b
cmp r11, r10
jae 0x140010792
mov edx, r12d
jmp 0x14001079b
mov edx, r15d
cmp r11, r10
setne dl
test edx, edx
mov qword [rsp + 0x50], rax
jns 0x1400107a9
mov qword [rsp + 0x50], rcx
lea rax, [rsp + 0x50]
mov rax, qword [rax]
cmp rax, rcx
je 0x14001082e
lea rdx, [rax + 0x40]
lea rax, [rbp - 0x78]
cmp rax, rdx
je 0x1400107d2
mov r9, r12
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.14000c8e0
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140010833
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
lea rdx, str.UPDADS
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001081a
cmp eax, 0xea
jne 0x14001082a
lea rdx, str.UPDADS
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x6c], eax
mov rbx, qword [rsp + 0x60]
cmp qword [rbp - 0x60], 8
jb 0x140010875
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140010875
cmp qword [0x1400575e8], 0
jne 0x140010863
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x140010870
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [0x1400575e8]
mov rbx, qword [rsp + 0x60]
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r15
mov word [rbp - 0x78], r15w
test rbx, rbx
je 0x140010894
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, r14b
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140023790
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret