Function at 0x140085e10
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov rdi, rdx
lea r14, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x39], r14
lea r12, vtable.CVolObject.0
mov qword [rbp - 0x39], r12
xor r15d, r15d
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
lea r13, vtable.CWString.0
mov qword [rbp - 0x39], r13
lea rax, [rbp - 0x19]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x19], rax
mov qword [rbp - 1], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 7], r15
mov qword [rbp + 0x17], 0x40
mov qword [rbp - 0x21], r15
mov qword [rbp + 0x17], 0xfe
mov rbx, qword [rdx + 0x18]
test rbx, rbx
jne 0x140085ebd
cmp qword [rdx + 0x48], rbx
lea rbx, [0x1402ac8c0]
je 0x140085ebd
mov rbx, qword [rdx + 0x38]
mov edx, 0x5c
mov rcx, rbx
call fcn.14023db50
mov rsi, rax
test rax, rax
je 0x140085eeb
mov r8, rax
sub r8, rbx
sar r8, 1
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140198150
lea rbx, [rsi + 2]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x30], r13
lea rax, [rbp - 0x79]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x71], r15
mov qword [rbp - 0x69], r15
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x49], 0x40
mov qword [rsp + 0x48], r15
mov qword [rbp - 0x49], 0xfe
mov qword [rsp + 0x30], r13
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140197fb0
nop
mov rax, qword [rbp - 0x21]
test rax, rax
jne 0x140085f75
lea rax, [0x1402ac8c0]
cmp qword [rbp + 0xf], 0
cmovne rax, qword [rbp - 1]
mov esi, 1
mov r14d, esi
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140085fdd
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140085fbe
lea rax, [0x1402ac8c0]
cmp qword [rbp - 0x51], 0
cmovne rax, qword [rbp - 0x61]
mov rdx, rax
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
setne r14b
lea rax, [rbp - 0x79]
mov qword [rbp + 0x67], rax
lea r13, vtable.CVolMem.0
mov qword [rbp - 0x79], r13
lea rbx, [fcn.14018de50]
mov rdx, qword [rbp - 0x61]
test rdx, rdx
je 0x140086022
mov rax, qword [rbp - 0x79]
mov r8, qword [rax + 0x18]
cmp r8, rbx
jne 0x14008601b
lea rcx, [0x140489958]
call fcn.140196cd0
jmp 0x140086022
lea rcx, [rbp - 0x79]
call r8
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x79], r12
mov qword [rsp + 0x30], r12
test r14b, r14b
je 0x14008606c
mov rdx, qword [rdi + 0x18]
test rdx, rdx
jne 0x140086056
cmp qword [rdi + 0x48], rdx
lea rdx, [0x1402ac8c0]
je 0x140086056
mov rdx, qword [rdi + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, r15d
test eax, eax
sete sil
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], r13
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x1400860a3
mov rax, qword [rbp - 0x19]
mov r8, qword [rax + 0x18]
cmp r8, rbx
jne 0x14008609c
lea rcx, [0x140489958]
call fcn.140196cd0
jmp 0x1400860a3
lea rcx, [rbp - 0x19]
call r8
mov qword [rbp - 1], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 7], r15
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x39], r12
mov eax, esi
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret