Function at 0x1401b7254
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor esi, esi
mov rbx, rdx
cmp qword [rdx + 0x18], 8
mov rdi, rcx
mov qword [rbp - 0x31], rsi
jb 0x1401b728c
mov rdx, qword [rdx]
lea rax, [rbp - 0x31]
mov r9d, 0x10009
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov dword [rbp - 0x39], eax
test eax, eax
je 0x1401b7351
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b7444
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_open_the_registry_key
mov qword [rbp - 9], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x40
mov qword [rbp + 0xf], 4
jb 0x1401b72f6
mov rbx, qword [rbx]
lea rdx, [0x1402cb810]
mov rcx, rsi
test rbx, rbx
je 0x1401b7315
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x1401b730c
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, [0x14034c9a0]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
jmp 0x1401b7444
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1401b735e
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
mov dword [rbp - 0x39], eax
test eax, 0xfffffffd
je 0x1401b745a
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b7444
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_delete_registry_subkey
mov qword [rbp - 9], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x42
mov qword [rbp + 0xf], 4
jb 0x1401b73b6
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1402cb810]
mov r8, rdx
mov rax, rsi
test rdi, rdi
je 0x1401b73db
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401b73d2
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov qword [rbp + 0x17], r8
mov dword [rbp + 0x23], esi
jb 0x1401b73f6
mov rbx, qword [rbx]
mov rax, rsi
test rbx, rbx
je 0x1401b740d
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401b7404
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, [0x14034c962]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
mov eax, dword [rbp - 0x39]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b751a
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401b7518
cmp qword [rdi + 0x18], 8
lea rax, str.Deleted_registry_subkey
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x30
jb 0x1401b748a
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1402cb810]
mov r8, rdx
mov rax, rsi
test rdi, rdi
je 0x1401b74af
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401b74a6
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov qword [rbp + 7], r8
mov dword [rbp + 0x13], esi
jb 0x1401b74ca
mov rbx, qword [rbx]
mov rax, rsi
test rbx, rbx
je 0x1401b74e1
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401b74d8
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, [0x14034ca46]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
mov ebx, esi
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1401b7529
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.14027a710
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret