Function at 0x140013e00
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 rsi, r8
lea r13, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x30], r13
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], r13
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 rdi, qword [rdx + 0x18]
lea rbx, [0x140059b98]
test rdi, rdi
jne 0x140013eb6
cmp qword [rdx + 0x48], rdi
mov rdi, rbx
je 0x140013eb6
mov rdi, qword [rdx + 0x38]
mov edx, 0x5c
mov rcx, rdi
call fcn.1400389e8
mov r14, rax
test rax, rax
je 0x140013ee5
mov r8, rax
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14002a8d0
lea rdi, [r14 + 2]
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
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], r12
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
lea r14, vtable.CVolMem.0
mov qword [rbp - 0x19], r14
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], rcx
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14002a730
nop
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140013f6b
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 0x140013fc8
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140013fa8
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 0x140013fc8
mov edi, r15d
jmp 0x140014054
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140013fec
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140013fe0
jmp 0x140014007
mov rax, qword [rsi + 0x48]
test rax, rax
jne 0x140013ffd
mov rax, r15
mov rcx, rbx
jmp 0x140014007
shr rax, 1
dec rax
mov rcx, qword [rsi + 0x38]
mov rdx, qword [rbp - 0x21]
test rdx, rdx
jne 0x14001401c
cmp qword [rbp + 0xf], rdx
cmovne rbx, qword [rbp - 1]
mov rdx, rbx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
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], r14
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140014074
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
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], r14
mov rdx, qword [rbp - 0x61]
test rdx, rdx
je 0x1400140a9
lea rcx, [rbp - 0x79]
mov r8, qword [rbp - 0x79]
call qword [r8 + 0x18]
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