Function at 0x140010470
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov rax, qword [0x1400395a0]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
lea rdx, [0x14002b508]
lea rcx, [rsp + 0x128]
call fcn.140001850
nop
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x108]
call fcn.140001850
nop
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x108]
call fcn.14000ab70
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x108]
call fcn.14000c230
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x128]
call fcn.14000c230
cmp dword [rsp + 0x30], 2
jae 0x140010554
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x90]
call fcn.14000c3b0
mov eax, dword [rsp + 0x54]
jmp 0x140010855
xor eax, eax
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 0x10
jb 0x140010595
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x14001059f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xc0]
call fcn.140001760
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.140010f20
mov rcx, rax
call fcn.140010df0
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x20]
call fcn.14000f450
nop
mov rax, qword [rsp + 0xc0]
sub rax, 0x18
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140007d70
lea rdx, str.HKCR
lea rcx, [rsp + 0x20]
call fcn.14000f510
test eax, eax
jne 0x14001063d
mov qword [rsp + 0x38], 0xffffffff80000000
jmp 0x1400106cf
lea rdx, [0x14002bcf0]
lea rcx, [rsp + 0x20]
call fcn.14000f510
test eax, eax
je 0x140010667
lea rdx, str.HKLM
lea rcx, [rsp + 0x20]
call fcn.14000f510
test eax, eax
jne 0x140010672
mov qword [rsp + 0x38], 0xffffffff80000002
jmp 0x1400106cf
lea rdx, str.HKCU
lea rcx, [rsp + 0x20]
call fcn.14000f510
test eax, eax
jne 0x140010692
mov qword [rsp + 0x38], 0xffffffff80000001
jmp 0x1400106cf
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x20]
sub rax, 0x18
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140007d70
nop
lea rcx, [rsp + 0x90]
call fcn.14000c3b0
mov eax, dword [rsp + 0x50]
jmp 0x140010855
cmp dword [rsp + 0x30], 3
jae 0x140010749
mov eax, 1
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x18], 0x10
jb 0x140010723
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
jmp 0x140010730
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [rsp + 0x2c], eax
jmp 0x1400107fe
mov eax, 2
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0x10
jb 0x14001078d
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
jmp 0x140010797
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov eax, 1
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x18], 0x10
jb 0x1400107db
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
jmp 0x1400107e5
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x14001080f
mov dword [rsp + 0x28], 1
jmp 0x140010817
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x20]
sub rax, 0x18
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140007d70
nop
lea rcx, [rsp + 0x90]
call fcn.14000c3b0
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1400168f0
add rsp, 0x158
ret