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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov rax, qword [0x14003f5b0]
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, [0x140030a60]
lea rcx, [rsp + 0x128]
call fcn.140001a70
nop
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x108]
call fcn.140001a70
nop
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x108]
call fcn.14000c7b0
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x108]
call fcn.14000de70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x128]
call fcn.14000de70
cmp dword [rsp + 0x30], 2
jae 0x140012c74
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x90]
call fcn.14000dff0
mov eax, dword [rsp + 0x54]
jmp 0x140012f75
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 0x140012cb5
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 0x140012cbf
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xc0]
call fcn.140001980
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.140013cd0
mov rcx, rax
call fcn.140013ba0
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x20]
call fcn.140011490
nop
mov rax, qword [rsp + 0xc0]
sub rax, 0x18
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1400095c0
lea rdx, str.HKCR
lea rcx, [rsp + 0x20]
call fcn.1400032c0
test eax, eax
jne 0x140012d5d
mov qword [rsp + 0x38], 0xffffffff80000000
jmp 0x140012def
lea rdx, [0x140031658]
lea rcx, [rsp + 0x20]
call fcn.1400032c0
test eax, eax
je 0x140012d87
lea rdx, str.HKLM
lea rcx, [rsp + 0x20]
call fcn.1400032c0
test eax, eax
jne 0x140012d92
mov qword [rsp + 0x38], 0xffffffff80000002
jmp 0x140012def
lea rdx, str.HKCU
lea rcx, [rsp + 0x20]
call fcn.1400032c0
test eax, eax
jne 0x140012db2
mov qword [rsp + 0x38], 0xffffffff80000001
jmp 0x140012def
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.1400095c0
nop
lea rcx, [rsp + 0x90]
call fcn.14000dff0
mov eax, dword [rsp + 0x50]
jmp 0x140012f75
cmp dword [rsp + 0x30], 3
jae 0x140012e69
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 0x140012e43
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 0x140012e50
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 0x140012f1e
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 0x140012ead
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 0x140012eb7
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 0x140012efb
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 0x140012f05
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 0x140012f2f
mov dword [rsp + 0x28], 1
jmp 0x140012f37
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.1400095c0
nop
lea rcx, [rsp + 0x90]
call fcn.14000dff0
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140019ef0
add rsp, 0x158
ret