Function at 0x1402066e0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
lea rdx, [rbp - 0x41]
mov rcx, rdi
mov qword [rbp - 0x41], rsi
call fcn.1402072ec
mov dword [rbp - 0x49], eax
test eax, eax
je 0x1402067d1
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402067bb
cmp qword [rdi + 0x18], 8
lea rax, str.Could_not_open_the_registry_key
mov qword [rbp - 9], rax
lea rax, [rbp - 0x49]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x40
mov qword [rbp + 0xf], 4
jb 0x140206765
mov rdi, qword [rdi]
lea rdx, [0x1403cb630]
mov rcx, rsi
test rdi, rdi
je 0x140206784
mov rdx, rdi
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14020677b
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481d40]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
mov eax, dword [rbp - 0x49]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140206a56
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1402067de
mov rdx, qword [rbx]
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
nop dword [rax + rax]
test al, al
jne 0x140206882
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x140206878
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_create_a_UNICODE_STRING_to_hold_valueName
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x68
jb 0x140206822
mov rbx, qword [rbx]
lea rdx, [0x1403cb630]
mov rcx, rsi
test rbx, rbx
je 0x140206841
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140206838
lea eax, [rcx*2 + 2]
mov qword [rbp + 7], rdx
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140482140]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001208
mov ebx, 0x80070057
jmp 0x140206a46
mov rcx, qword [rbp - 0x41]
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
nop dword [rax + rax]
mov dword [rbp - 0x45], eax
test eax, eax
je 0x140206986
cmp eax, 0xc0000034
je 0x140206986
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x14020697a
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_delete_registry_value
mov qword [rbp - 9], rax
lea rax, [rbp - 0x45]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x40
mov qword [rbp + 0xf], 4
jb 0x1402068ec
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x1403cb630]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x140206911
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x140206908
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov qword [rbp + 0x17], r8
mov dword [rbp + 0x23], esi
jb 0x14020692c
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x140206943
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x14020693a
lea eax, [rax*2 + 2]
mov qword [rbp + 0x27], rdx
mov dword [rbp + 0x2f], eax
mov dword [rbp + 0x33], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481f7a]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001208
mov ebx, dword [rbp - 0x45]
bts ebx, 0x1c
jmp 0x140206a46
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140206a44
cmp qword [rbx + 0x18], 8
lea rax, str.Delete_registry_value
mov qword [rbp - 9], rax
mov qword [rbp - 1], MsiGetActiveDatabase
jb 0x1402069b6
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x1403cb630]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x1402069db
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1402069d2
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov qword [rbp + 7], r8
mov dword [rbp + 0x13], esi
jb 0x1402069f6
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x140206a0d
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x140206a04
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481ffc]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
mov ebx, esi
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140206a6b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret