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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov rdi, rcx
lea rcx, [rbp - 0x10]
call fcn.14002cd54
nop
xor r12d, r12d
cmp qword [rbp - 0x10], r12
je 0x14002d207
lea r8, [rdi + 8]
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp + 0x40]
call fcn.14002ceb0
nop
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x14002d1e2
lea r8, [rdi + 0x10]
lea rcx, [rbp + 0x48]
call fcn.14002cefc
mov r14, qword [rbp + 0x48]
test r14, r14
je 0x14002d1e2
xor edx, edx
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov dword [rbp + 0x38], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14002d1cd
cmp dword [rbp + 0x38], r12d
jne 0x14002d1cd
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14002d10c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rbp + 0x48], r12
xor edx, edx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov dword [rbp + 0x38], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14002d1cd
cmp dword [rbp + 0x38], r12d
jne 0x14002d1cd
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14002d1a2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rbp + 0x40], r12
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14002d1e2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
call fcn.14002cf48
test al, al
jne 0x14002d1f1
call fcn.14002cbdc
nop
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14002d207
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x10], r12
je 0x14002d21d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret