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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb0
mov r15, r9
mov rdi, r8
mov r14, rcx
xor r13d, r13d
mov dword [rbp - 0x29], r13d
lea r12, vtable.CVolObject.0
mov qword [rcx], r12
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
lea rax, vtable.CWString.0
mov qword [rcx], rax
lea rsi, [rcx + 0x20]
mov qword [rbp + 0x17], rsi
mov qword [rsi], r12
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
lea rax, vtable.CVolMem.0
mov qword [rsi], rax
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x28], r13
mov qword [rsi + 0x20], r13
mov eax, 0x40
mov qword [rsi + 0x30], rax
mov qword [rcx + 0x18], r13
mov qword [rcx + 0x50], 0xfe
mov dword [rbp - 0x29], 1
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rbx, qword [rbp + 0x7f]
mov rax, qword [rbx + 8]
mov qword [r14 + 8], rax
mov rax, qword [rbx + 0x10]
mov qword [r14 + 0x10], rax
mov rax, qword [rbx + 0x18]
mov qword [r14 + 0x18], rax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x88]
lea rdx, [rbx + 0x20]
mov rcx, rsi
call fcn.140007630
mov rdx, qword [rdi + 0x18]
test rdx, rdx
jne 0x1400a4fae
cmp qword [rdi + 0x48], rdx
lea rdx, [0x1401eac10]
je 0x1400a4fae
mov rdx, qword [rdi + 0x38]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a5291
mov dword [rbp + 0x67], r13d
mov rdx, qword [r15 + 0x18]
test rdx, rdx
jne 0x1400a4ff3
cmp qword [r15 + 0x48], rdx
lea rdx, [0x1401eac10]
je 0x1400a4ff3
mov rdx, qword [r15 + 0x38]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a5287
mov eax, dword [rbp + 0x7f]
dec eax
cmp eax, 1
ja 0x1400a5287
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], r13
lea rcx, vtable.CVolMem.0
mov qword [rbp - 0x21], rcx
mov qword [rbp - 9], r13
mov qword [rbp + 7], r13
mov qword [rbp - 1], r13
mov edx, 0x40
mov qword [rbp + 0xf], rdx
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x51], r13
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x31], rdx
mov r9d, dword [rbp + 0x67]
lea rdi, [r9 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rdi
cqo
idiv rcx
sub r9, rdx
lea rbx, [rcx + 2]
add rbx, r9
mov rdx, rbx
lea rcx, [rbp - 0x21]
mov rax, qword [rbp - 0x21]
call qword [rax]
mov r12, rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rbx
mov qword [rbp + 7], rdi
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1401b2ee0
mov rdx, qword [r15 + 0x18]
test rdx, rdx
jne 0x1400a50e4
cmp qword [r15 + 0x48], rdx
lea rdx, [0x1401eac10]
je 0x1400a50e4
mov rdx, qword [r15 + 0x38]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a5229
mov rdi, qword [rbp - 9]
cmp qword [rbp + 7], 0
cmove rdi, r13
cmp dword [rbp + 0x7f], 2
jne 0x1400a51c5
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
inc r15
lea r12, [r15*2 + 2]
cmp qword [rbp - 0x49], 0
je 0x1400a515d
mov rdx, r12
lea rcx, [rbp - 0x61]
call fcn.1400c6510
mov rbx, rax
mov r12, qword [rbp - 0x39]
mov rax, qword [rbp - 0x49]
jmp 0x1400a519c
mov rcx, qword [rbp - 0x31]
test rcx, rcx
mov eax, 0x40
cmovle rcx, rax
mov rax, r12
cqo
idiv rcx
sub rcx, rdx
lea rbx, [rcx + 2]
lea rbx, [rbx + r15*2]
mov rdx, rbx
lea rcx, [rbp - 0x61]
mov rax, qword [rbp - 0x61]
call qword [rax]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], r12
mov rbx, rax
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.1401b2ee0
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdi, qword [rbp - 0x49]
cmp qword [rbp - 0x39], 0
cmove rdi, r13
mov rax, qword [r14 + 0x18]
test rax, rax
jne 0x1400a51eb
cmp qword [r14 + 0x48], rax
jne 0x1400a51dd
lea rax, [0x1401eac10]
jmp 0x1400a51eb
cmp qword [rsi + 0x28], 0
mov rax, r13
je 0x1400a51eb
mov rax, qword [rsi + 0x18]
cmp rdi, rax
je 0x1400a5229
mov qword [r14 + 0x18], r13
mov rdx, qword [rsi + 0x18]
test rdx, rdx
je 0x1400a5206
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x28], r13
mov qword [rsi + 0x20], r13
test rdi, rdi
je 0x1400a5229
cmp word [rdi], 0
je 0x1400a5229
mov rdx, rdi
mov rcx, rsi
call fcn.1400c65f0
nop
lea rdi, vtable.CVolMem.0
mov qword [rbp - 0x61], rdi
mov rdx, qword [rbp - 0x49]
test rdx, rdx
je 0x1400a5248
lea rcx, [rbp - 0x61]
mov rax, qword [rbp - 0x61]
call qword [rax + 0x18]
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x41], r13
lea rbx, vtable.CVolObject.0
mov qword [rbp - 0x61], rbx
mov qword [rbp - 0x21], rdi
mov rdx, qword [rbp - 9]
test rdx, rdx
je 0x1400a5277
lea rcx, [rbp - 0x21]
mov rax, qword [rbp - 0x21]
call qword [rax + 0x18]
mov qword [rbp - 9], r13
mov qword [rbp + 7], r13
mov qword [rbp - 1], r13
mov qword [rbp - 0x21], rbx
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r14
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret