Function at 0x1400139b0
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.14000d750
mov rdx, qword [rdi + 0x18]
test rdx, rdx
jne 0x140013a9e
cmp qword [rdi + 0x48], rdx
lea rdx, [0x140059b98]
je 0x140013a9e
mov rdx, qword [rdi + 0x38]
lea rax, [rbp + 0x6f]
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 0x140013dd5
mov dword [rbp + 0x67], r13d
mov rdx, qword [r15 + 0x18]
test rdx, rdx
jne 0x140013ae3
cmp qword [r15 + 0x48], rdx
lea rdx, [0x140059b98]
je 0x140013ae3
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 0x140013dcb
mov eax, dword [rbp + 0x7f]
dec eax
cmp eax, 1
ja 0x140013dcb
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.1400393c0
mov rdx, qword [r15 + 0x18]
test rdx, rdx
jne 0x140013bd4
cmp qword [r15 + 0x48], rdx
lea rdx, [0x140059b98]
je 0x140013bd4
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 0x140013d6d
mov rdi, qword [rbp - 9]
cmp qword [rbp + 7], 0
cmove rdi, r13
cmp dword [rbp + 0x7f], 2
jne 0x140013d09
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r13d, eax
inc r13
lea r15, [r13*2 + 2]
mov r12, qword [rbp - 0x49]
test r12, r12
je 0x140013c9b
mov r8, qword [rbp - 0x39]
cmp r15, r8
je 0x140013c96
mov rcx, qword [rbp - 0x31]
test rcx, rcx
mov eax, 0x40
cmovle rcx, rax
mov rax, qword [rbp - 0x41]
cmp rax, r15
jl 0x140013c60
sub rax, r15
cmp rax, rcx
jle 0x140013c8f
mov rax, r15
cqo
idiv rcx
sub rcx, rdx
lea rbx, [rcx + 2]
lea rbx, [rbx + r13*2]
mov r8, rbx
mov rdx, r12
lea rcx, [rbp - 0x61]
mov rax, qword [rbp - 0x61]
call qword [rax + 0x10]
mov r12, rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], r15
mov r8, r15
mov rcx, r12
jmp 0x140013ce0
mov rcx, qword [rbp - 0x31]
test rcx, rcx
mov eax, 0x40
cmovle rcx, rax
mov rax, r15
cqo
idiv rcx
sub rcx, rdx
lea rbx, [rcx + 2]
lea rbx, [rbx + r13*2]
mov rdx, rbx
lea rcx, [rbp - 0x61]
mov rax, qword [rbp - 0x61]
call qword [rax]
mov r12, rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rbx
mov r8, r15
mov qword [rbp - 0x39], r15
mov rcx, rax
xor edx, edx
call fcn.1400393c0
mov r8d, r13d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdi, qword [rbp - 0x49]
cmp qword [rbp - 0x39], 0
mov r13d, 0
cmove rdi, r13
mov rax, qword [r14 + 0x18]
test rax, rax
jne 0x140013d2f
cmp qword [r14 + 0x48], rax
jne 0x140013d21
lea rax, [0x140059b98]
jmp 0x140013d2f
cmp qword [rsi + 0x28], 0
mov rax, r13
je 0x140013d2f
mov rax, qword [rsi + 0x18]
cmp rdi, rax
je 0x140013d6d
mov qword [r14 + 0x18], r13
mov rdx, qword [rsi + 0x18]
test rdx, rdx
je 0x140013d4a
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 0x140013d6d
cmp word [rdi], 0
je 0x140013d6d
mov rdx, rdi
mov rcx, rsi
call fcn.1400269a0
nop
lea rdi, vtable.CVolMem.0
mov qword [rbp - 0x61], rdi
mov rdx, qword [rbp - 0x49]
test rdx, rdx
je 0x140013d8c
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 0x140013dbb
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