Function at 0x140024e60
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rax, rdx
mov rbx, rcx
cmp dword [rcx + 0x18], 0
jne 0x140025020
cmp qword [rcx + 0x28], 0
je 0x140025041
xor edi, edi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 1], rdi
mov qword [rbp + 7], 7
mov word [rbp - 0x11], di
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], di
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.140025d00
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x69], rdi
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, eax
cmp eax, 0x490
je 0x140025062
mov rbx, qword [rbp - 0x69]
mov qword [rbp - 0x59], rbx
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x61], rax
test edx, edx
jne 0x140025083
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rdx, qword [rbp - 0x31]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400250be
test rbx, rbx
je 0x140024f6d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140024fad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024fa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400250fb
call fcn.140069cb8
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], di
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140024ff9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024ff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002501a
call fcn.140069cb8
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140069d50
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14007b2e8
int3
lea rdx, str.Storage_is_not_in_write_mode
lea rcx, [rbp - 0x61]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x61]
call fcn.14006bf90
int3
lea rdx, str.Registry_root_key_handle_is_null
lea rcx, [rbp - 0x61]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x61]
call fcn.14006bf90
nop
lea rdx, str.Registry_key_not_found
lea rcx, [rbp - 0x49]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x49]
call fcn.14006bf90
int3
lea rcx, [rbp + 0xf]
call fcn.1400273e0
nop
mov r8, rax
lea rdx, str.Failed_to_open_registry_key__error
lea rcx, [rbp + 0x2f]
call fcn.140011730
nop
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.140011e00
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x49]
call fcn.14006bf90
nop
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.1400273e0
nop
mov r8, rax
lea rdx, str.Failed_to_delete_registry_key__error
lea rcx, [rbp + 0xf]
call fcn.140011730
nop
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.140011e00
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x49]
call fcn.14006bf90
nop
call fcn.14007b2e8
int3