Function at 0x1401d7470
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 [0x14049e510]
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.1401d7eec
mov dword [rbp - 0x49], eax
test eax, eax
je 0x1401d7561
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d754b
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 0x1401d74f5
mov rdi, qword [rdi]
lea rdx, [0x140344690]
mov rcx, rsi
test rdi, rdi
je 0x1401d7514
mov rdx, rdi
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x1401d750b
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, [0x1403ddd55]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rbp - 0x49]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401d77d4
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401d756e
mov rdx, qword [rbx]
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
test al, al
jne 0x1401d760c
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d7602
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 0x1401d75ac
mov rbx, qword [rbx]
lea rdx, [0x140344690]
mov rcx, rsi
test rbx, rbx
je 0x1401d75cb
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x1401d75c2
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, [0x1403ddc85]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001158
mov ebx, 0x80070057
jmp 0x1401d77ca
mov rcx, qword [rbp - 0x41]
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [rbp - 0x45], eax
test eax, eax
je 0x1401d770a
cmp eax, 0xc0000034
je 0x1401d770a
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d76fe
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 0x1401d7670
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x140344690]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x1401d7695
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401d768c
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 0x1401d76b0
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x1401d76c7
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401d76be
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, [0x1403ddcb6]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
mov ebx, dword [rbp - 0x45]
bts ebx, 0x1c
jmp 0x1401d77ca
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401d77c8
cmp qword [rbx + 0x18], 8
lea rax, str.Delete_registry_value
mov qword [rbp - 9], rax
mov qword [rbp - 1], MsiGetActiveDatabase
jb 0x1401d773a
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x140344690]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x1401d775f
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401d7756
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 0x1401d777a
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x1401d7791
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401d7788
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, [0x1403ddc4b]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov ebx, esi
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1401d77e3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret