Function at 0x14000d290
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x1400a7010]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rcx
cmp byte [rcx + 0x28], 0
je 0x14000d3ba
lea rdx, [rcx + 8]
cmp qword [rdx + 0x18], 8
jb 0x14000d2ca
mov rdx, qword [rdx]
xor edi, edi
mov qword [rsp + 0x80], rdi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x80]
test eax, eax
jne 0x14000d355
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000d388
mov rcx, qword [rsp + 0x80]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000d365
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14002a0d0
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rdi
ret
cmp dword [rsp + 0x88], edi
jne 0x14000d39d
cmp dword [rsp + 0x8c], edi
jne 0x14000d39d
mov dil, 1
mov rcx, qword [rsp + 0x80]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000d3b5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x14000d365
add rbx, 8
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000d3cb
mov rdx, qword [rbx]
xor r9d, r9d
mov rcx, 0xffffffff80000002
mov r8d, 0x100
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
test eax, 0xfffffffd
je 0x14000d365
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x90]
call fcn.140054260
lea rcx, [rsp + 0x90]
call fcn.1400052c0
nop
lea rcx, [rsp + 0x60]
call fcn.140011e10
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14000d42a
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.14000cbb0
lea rdx, [0x140094ea4]
mov rcx, rax
call fcn.140008ef0
lea rdx, str.installer_lib::DeleteRegKeyCommand_class_installer_lib::Registry_::execute
mov rcx, rax
call fcn.140008ef0
lea rdx, [0x140094e78]
mov rcx, rax
call fcn.140009270
lea rdx, str.Failed_to_delete_registry_key
mov rcx, rax
call fcn.140009270
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14000d484
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000cbb0
lea rdx, str.._Reason:_0x
mov rcx, rax
call fcn.140008ef0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov edx, edi
mov rcx, rax
call fcn.14000e0d0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
mov eax, dword [rdx + 0x18]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rdx + 0x18], eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000d518
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d513
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d58d
call fcn.14002a5e4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.1400051f0
nop
mov edx, 0x28
mov rcx, rax
call fcn.1400122f0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000d578
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d572
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d593
call fcn.14002a5e4
nop
lea rcx, [rsp + 0x90]
call fcn.1400037b0
nop
xor al, al
jmp 0x14000d367
call fcn.14005d720
int3
call fcn.14005d720
int3