Function at 0x140016e20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
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
lea r13, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x30], r13
lea r15, vtable.CVolObject.0
mov qword [rsp + 0x30], r15
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, vtable.CWString.0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x79]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x79], r13
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x69], r14
lea r12, vtable.CVolMem.0
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x49], 0x40
mov qword [rsp + 0x48], r14
mov qword [rbp - 0x49], 0xfe
mov rdi, qword [rdx + 0x18]
lea rbx, [0x1400d1058]
test rdi, rdi
jne 0x140016ed8
cmp qword [rdx + 0x48], rdi
mov rdi, rbx
je 0x140016ed8
mov rdi, qword [rdx + 0x38]
mov edx, 0x5c
mov rcx, rdi
call fcn.14008fc80
mov rsi, rax
test rax, rax
je 0x140016f07
mov r8, rax
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140026fe0
lea rdi, [rsi + 2]
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r14
lea rcx, vtable.CWString.0
mov qword [rbp - 0x39], rcx
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], r14
mov qword [rbp - 0x19], r12
mov qword [rbp - 1], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 7], r14
mov qword [rbp + 0x17], 0x40
mov qword [rbp - 0x21], r14
mov qword [rbp + 0x17], 0xfe
mov qword [rbp - 0x39], rcx
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140026ec0
nop
mov dword [rbp + 0x77], r14d
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140016f8a
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, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140016fe4
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140016fc7
mov rax, rbx
cmp qword [rbp - 0x51], 0
cmovne rax, qword [rbp - 0x61]
lea r8, [rbp + 0x67]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140016fe4
mov edi, r14d
jmp 0x140017032
mov rdx, qword [rbp - 0x21]
test rdx, rdx
jne 0x140016ff9
cmp qword [rbp + 0xf], rdx
cmovne rbx, qword [rbp - 1]
mov rdx, rbx
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, 4
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, r14d
test ebx, ebx
sete dil
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], r12
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140017052
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + Ordinal_26]
mov qword [rbp - 1], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 7], r14
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x39], r15
lea rax, [rbp - 0x79]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x79], r12
mov rdx, qword [rbp - 0x61]
test rdx, rdx
je 0x140017087
lea rcx, [rbp - 0x79]
mov r8, qword [rbp - 0x79]
call qword [r8 + Ordinal_26]
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x79], r15
mov qword [rsp + 0x30], r15
mov eax, edi
mov rbx, qword [rsp + 0x148]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret