Function at 0x1400ec4d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov rax, rdx
xor ebx, ebx
mov qword [rbp - 0x19], rbx
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x20], rdx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ec546
lea ecx, [rbx + 0x10]
call fcn.14029806c
mov rsi, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x1400ec546
mov rax, qword [rbp - 0x19]
lea rcx, vtable.Core::Win32::RegistryKey.0
mov qword [rsi], rcx
mov qword [rsi + 8], rax
jmp 0x1400ec54d
mov qword [rbp + 0x77], rbx
mov rsi, rbx
lea rax, vtable.Core::SharedPtr_class_Core::Win32::RegistryKey_.0
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rsi
mov rdi, rbx
mov qword [rbp + 0x2f], rbx
test rsi, rsi
je 0x1400ec58f
mov ecx, 4
call fcn.14029806c
mov rdi, rax
test rax, rax
je 0x1400ec582
mov dword [rax], ebx
mov qword [rbp + 0x2f], rax
jmp 0x1400ec589
mov rdi, rbx
mov qword [rbp + 0x2f], rbx
mov dword [rdi], 1
test rsi, rsi
jne 0x1400ec59b
xor bl, bl
jmp 0x1400ec6cc
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], ebx
mov qword [rbp + 0x17], rbx
lea rdx, [rbp + 7]
mov rcx, rsi
call fcn.1400ec710
test al, al
jne 0x1400ec5c4
xor bl, bl
jmp 0x1400ec699
mov esi, ebx
mov ecx, dword [rbp + 0xf]
test ecx, ecx
jle 0x1400ec674
mov rax, qword [rbp + 0x17]
add rax, 0xc
mov qword [rbp + 0x7f], rax
lea rdx, [0x140323de0]
mov qword [rbp - 9], rdx
mov qword [rbp - 1], rbx
cmp esi, ecx
jge 0x1400ec664
mov edx, dword [rax]
lea rcx, [rbp - 9]
call fcn.1401e9030
mov rcx, qword [rbp + 0x7f]
movsxd r9, dword [rcx]
mov eax, dword [rbp - 1]
inc eax
movsxd rdx, eax
mov r8, qword [rcx - 0xc]
mov rcx, qword [rbp - 9]
call fcn.14029b4d8
mov rax, qword [rbp + 0x7f]
mov edx, dword [rax]
lea rcx, [rbp - 9]
call fcn.1401ea290
mov rdx, qword [rbp - 9]
mov rcx, qword [rbp + 0x77]
call fcn.1400ec4d0
test al, al
je 0x1400ec65d
cmp dword [rbp - 1], 0
jle 0x1400ec646
mov rcx, qword [rbp - 9]
call fcn.140298600
inc esi
mov rax, qword [rbp + 0x7f]
add rax, 0x10
mov qword [rbp + 0x7f], rax
mov ecx, dword [rbp + 0xf]
cmp esi, ecx
jge 0x1400ec674
jmp 0x1400ec5dd
mov ebx, dword [rbp - 1]
mov rdx, qword [rbp - 9]
test ebx, ebx
jle 0x1400ec670
mov rcx, rdx
call fcn.140298600
xor bl, bl
jmp 0x1400ec695
mov rdx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x67]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete bl
mov rsi, qword [rbp + 0x77]
mov byte [rbp + 0x67], bl
mov rax, qword [rbp + 0x17]
test rax, rax
je 0x1400ec6cc
lea rbx, [rax - 8]
lea r9, [fcn.140005d80]
mov r8d, dword [rbx]
mov edx, 0x10
mov rcx, rax
call fcn.140298fa4
mov rcx, rbx
call fcn.1402983dc
movzx ebx, byte [rbp + 0x67]
test rdi, rdi
je 0x1400ec6fb
mov eax, dword [rdi]
test eax, eax
jle 0x1400ec6db
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x1400ec6fb
test rsi, rsi
je 0x1400ec6f3
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
mov rcx, rdi
call fcn.1402012c0
movzx eax, bl
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret