Function at 0x140031100
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 [0x140106b98]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rax, rdx
mov rbx, rcx
cmp dword [rcx + 0x18], 0
jne 0x1400312c0
cmp qword [rcx + 0x28], 0
je 0x1400312e1
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.140031fa0
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 0x140031302
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 0x140031323
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 0x14003135e
test rbx, rbx
je 0x14003120d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14003124d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031248
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003139b
call fcn.14006b8b4
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], di
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140031299
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031294
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400312ba
call fcn.14006b8b4
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14006b950
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14007ce08
int3
lea rdx, str.Storage_is_not_in_write_mode
lea rcx, [rbp - 0x61]
call fcn.1400207e0
lea rdx, [0x140103928]
lea rcx, [rbp - 0x61]
call fcn.14006db8c
int3
lea rdx, str.Registry_root_key_handle_is_null
lea rcx, [rbp - 0x61]
call fcn.1400207e0
lea rdx, [0x140103928]
lea rcx, [rbp - 0x61]
call fcn.14006db8c
nop
lea rdx, str.Registry_key_not_found
lea rcx, [rbp - 0x49]
call fcn.1400207e0
lea rdx, [0x140103928]
lea rcx, [rbp - 0x49]
call fcn.14006db8c
int3
lea rcx, [rbp + 0xf]
call fcn.1400331d0
nop
mov r8, rax
lea rdx, str.Failed_to_open_registry_key__error
lea rcx, [rbp + 0x2f]
call fcn.14001d1c0
nop
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.14001d890
lea rdx, [0x140103928]
lea rcx, [rbp - 0x49]
call fcn.14006db8c
nop
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.1400331d0
nop
mov r8, rax
lea rdx, str.Failed_to_delete_registry_key__error
lea rcx, [rbp + 0xf]
call fcn.14001d1c0
nop
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.14001d890
lea rdx, [0x140103928]
lea rcx, [rbp - 0x49]
call fcn.14006db8c
nop
call fcn.14007ce08
int3