Function at 0x140014470
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xc0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbx, r9
mov rsi, r8
mov rdi, rcx
xor r12d, r12d
mov dword [rbp - 1], r12d
lea r15, vtable.CVolObject.0
mov qword [rcx], r15
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
lea rax, vtable.CWString.0
mov qword [rcx], rax
lea rax, [rcx + 0x20]
mov qword [rbp + 0x67], rax
mov qword [rax], r15
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
lea r13, vtable.CVolMem.0
mov qword [rax], r13
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
mov qword [rax + 0x20], r12
mov r14d, 0x40
mov qword [rax + 0x30], r14
mov qword [rcx + 0x18], r12
mov qword [rcx + 0x50], 0xfe
mov dword [rbp - 1], 1
mov rax, qword [rcx]
mov rdx, qword [rax + 0x88]
lea rax, [fcn.140001260]
cmp rdx, rax
je 0x140014527
call rdx
mov rdx, qword [rbp + 0x7f]
mov rcx, rdi
call fcn.14000a700
mov rdx, qword [rsi + 0x18]
test rdx, rdx
jne 0x14001454d
cmp qword [rsi + 0x48], rdx
lea rdx, [0x1400d1140]
je 0x14001454d
mov rdx, qword [rsi + 0x38]
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014862
mov dword [rbp + 0x67], r12d
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x140014592
cmp qword [rbx + 0x48], rdx
lea rdx, [0x1400d1140]
je 0x140014592
mov rdx, qword [rbx + 0x38]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014858
mov eax, dword [rbp + 0x6f]
dec eax
cmp eax, 1
ja 0x140014858
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x11], r12
mov qword [rbp - 0x19], r12
mov qword [rbp - 9], r14
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x71], r15
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x71], r13
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x41], r14
mov r8d, dword [rbp + 0x67]
lea rsi, [r8 + 2]
cmp qword [rbp - 0x21], 0
je 0x14001463e
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.1400249a0
mov r14, rax
mov rsi, qword [rbp - 0x11]
mov rax, qword [rbp - 0x21]
jmp 0x14001469a
mov rcx, qword [rbp - 9]
test rcx, rcx
cmovle rcx, r14
mov rax, rsi
cqo
idiv rcx
sub r8, rdx
lea r14, [rcx + 2]
add r14, r8
mov rax, qword [rbp - 0x39]
mov r8, qword [rax]
mov rdx, r14
cmp rax, r13
jne 0x140014684
lea rcx, [0x1400fc2f8]
call fcn.1400257b0
test rax, rax
jne 0x14001468b
or ecx, 0xffffffff
call fcn.140092e74
int3
lea rcx, [rbp - 0x39]
call r8
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], rsi
mov r14, rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.14008f150
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x1400146c1
cmp qword [rbx + 0x48], rdx
lea rdx, [0x1400d1140]
je 0x1400146c1
mov rdx, qword [rbx + 0x38]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400147da
mov rbx, qword [rbp - 0x21]
cmp qword [rbp - 0x11], 0
cmove rbx, r12
cmp dword [rbp + 0x6f], 2
jne 0x1400147ce
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
lea r14, [r15*2 + 4]
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x140014735
mov rdx, r14
lea rcx, [rbp - 0x71]
call fcn.1400249a0
mov rsi, rax
mov rax, qword [rbp - 0x59]
jmp 0x14001479c
test r14, r14
jne 0x14001473f
mov rsi, r12
jmp 0x14001479c
mov rsi, qword [rbp - 0x41]
test rsi, rsi
mov eax, 0x40
cmovle rsi, rax
mov rax, r14
cqo
idiv rsi
sub rsi, rdx
add rsi, r14
mov rax, qword [rbp - 0x71]
mov r8, qword [rax]
mov rdx, rsi
cmp rax, r13
jne 0x140014786
lea rcx, [0x1400fc2f8]
call fcn.1400257b0
test rax, rax
jne 0x14001478d
or ecx, 0xffffffff
call fcn.140092e74
int3
lea rcx, [rbp - 0x71]
call r8
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], r14
mov rsi, rax
mov r8, qword [rbp - 0x49]
xor edx, edx
mov rcx, rax
call fcn.14008f150
lea r8d, [r15 + 1]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbx, qword [rbp - 0x59]
cmp qword [rbp - 0x49], 0
cmove rbx, r12
lea r15, vtable.CVolObject.0
mov rdx, rbx
mov rcx, rdi
call fcn.140026ce0
nop
mov qword [rbp - 0x71], r13
mov rdx, qword [rbp - 0x59]
test rdx, rdx
je 0x140014809
mov rax, qword [rbp - 0x71]
mov r8, qword [rax + 0x18]
cmp rax, r13
jne 0x140014802
lea rcx, [0x1400fc2f8]
call fcn.140025900
jmp 0x140014809
lea rcx, [rbp - 0x71]
call r8
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x71], r15
mov qword [rbp - 0x39], r13
mov rdx, qword [rbp - 0x21]
test rdx, rdx
je 0x140014848
mov rax, qword [rbp - 0x39]
mov r8, qword [rax + 0x18]
cmp rax, r13
jne 0x140014841
lea rcx, [0x1400fc2f8]
call fcn.140025900
jmp 0x140014848
lea rcx, [rbp - 0x39]
call r8
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x11], r12
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x39], r15
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret