Function at 0x1400170c0
Capabilities:
Set 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 r14, r8
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x30], rcx
lea r12, vtable.CVolObject.0
mov qword [rsp + 0x30], r12
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
lea rax, vtable.CWString.0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x79]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x79], rcx
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x71], r15
mov qword [rbp - 0x69], r15
lea r13, vtable.CVolMem.0
mov qword [rbp - 0x79], r13
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 rdi, qword [rdx + 0x18]
lea rbx, [0x1400d1058]
test rdi, rdi
jne 0x140017176
cmp qword [rdx + 0x48], rdi
mov rdi, rbx
je 0x140017176
mov rdi, qword [rdx + 0x38]
mov edx, 0x5c
mov rcx, rdi
call fcn.14008fc80
mov rsi, rax
test rax, rax
je 0x1400171a5
mov r8, rax
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140026fe0
lea rdi, [rsi + 2]
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
lea rdx, vtable.CWString.0
mov qword [rbp - 0x39], rdx
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 0x19], r13
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 qword [rbp - 0x39], rdx
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140026ec0
nop
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14001722b
mov rax, rbx
cmp qword [rbp - 0x51], 0
cmovne rax, qword [rbp - 0x61]
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140017285
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140017268
mov rax, rbx
cmp qword [rbp - 0x51], 0
cmovne rax, qword [rbp - 0x61]
lea r8, [rbp + 0x67]
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140017285
mov edi, r15d
jmp 0x1400172db
mov rcx, qword [r14 + 0x28]
test rcx, rcx
mov rax, r15
je 0x140017295
mov rax, qword [r14 + 0x18]
mov rdx, qword [rbp - 0x21]
test rdx, rdx
jne 0x1400172aa
cmp qword [rbp + 0xf], rdx
cmovne rbx, qword [rbp - 1]
mov rdx, rbx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, r15d
test ebx, ebx
sete dil
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], r13
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x1400172fb
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + Ordinal_26]
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
lea rax, [rbp - 0x79]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x79], r13
mov rdx, qword [rbp - 0x61]
test rdx, rdx
je 0x140017330
lea rcx, [rbp - 0x79]
mov r8, qword [rbp - 0x79]
call qword [r8 + Ordinal_26]
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
mov eax, edi
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret