Function at 0x140013430
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x1400136d7
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x1400136d7
lea rax, [rbp - 0x30]
mov qword [rbp - 0x30], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 0x490
jne 0x14001350e
mov r9, qword [rdi + 0x38]
lea rdx, str.Registry_key_does_not_exist:__ls
mov rbx, qword [0x14005eb48]
lea rcx, [rbp - 0x28]
mov r8d, 1
call fcn.14000edc0
cmp qword [rbp - 0x10], 0x10
lea rdx, [rbp - 0x28]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x28]
call fcn.14000f340
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14001374f
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001374a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013773
jmp 0x14001374a
test eax, eax
je 0x140013590
mov r9, qword [rdi + 0x38]
lea rdx, str.Failed_to_open_registry_key__ls___d_
mov rbx, qword [0x14005eb48]
lea rcx, [rbp - 0x28]
mov r8d, 2
mov dword [rsp + 0x20], eax
call fcn.14000edc0
cmp qword [rbp - 0x10], 0x10
lea rdx, [rbp - 0x28]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x28]
call fcn.14000f340
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14001374f
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001374a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013779
jmp 0x14001374a
cmp qword [rdi + 0x28], 8
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x78], rsi
lea rcx, [rdi + 0x40]
mov r8, rbx
jb 0x1400135aa
mov r8, qword [rbx]
mov rdx, qword [rbp - 0x30]
call fcn.140012f60
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx + 0x18], 8
mov r9, rbx
mov rsi, qword [0x14005eb48]
jb 0x1400135d1
mov r9, qword [rbx]
mov r8d, 1
lea rdx, str.Removing_registry_key:__ls
lea rcx, [rbp - 0x28]
call fcn.14000edc0
cmp qword [rbp - 0x10], 0x10
lea rdx, [rbp - 0x28]
mov rcx, rsi
cmovae rdx, qword [rbp - 0x28]
call fcn.14000f340
mov rdx, qword [rbp - 0x10]
mov rsi, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14001363d
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013638
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013785
call fcn.14001c70c
mov rdx, qword [rdi + 0x38]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x14001374f
cmp qword [rbx + 0x18], 8
mov rdi, qword [0x14005eb48]
jb 0x140013664
mov rbx, qword [rbx]
mov r9, rbx
mov dword [rsp + 0x20], eax
mov r8d, 2
lea rdx, str.Failed_to_delete_registry_key__ls___d_
lea rcx, [rbp - 0x28]
call fcn.14000edc0
cmp qword [rbp - 0x10], 0x10
lea rdx, [rbp - 0x28]
mov rcx, rdi
cmovae rdx, qword [rbp - 0x28]
call fcn.14000f340
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14001374f
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001374a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001377f
jmp 0x14001374a
cmp qword [rdi + 0x28], 8
lea r9, [rdi + 0x10]
mov rbx, qword [0x14005eb48]
jb 0x1400136ec
mov r9, qword [r9]
mov r8d, 1
lea rdx, str.Cant_install_registry_key__ls__path_not_valid
lea rcx, [rbp - 0x28]
call fcn.14000edc0
cmp qword [rbp - 0x10], 0x10
lea rdx, [rbp - 0x28]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x28]
call fcn.14000f340
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14001374f
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001374a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001376d
call fcn.14001c70c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14001c460
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3