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

Disassembly:
mov qword [rsp + 0x10], rbx
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 rdi, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rbp - 0x29], r13d
lea rcx, vtable.CVolObject.0
mov qword [rsi], rcx
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
lea rax, vtable.CWString.0
mov qword [rsi], rax
lea rbx, [rsi + 0x20]
mov qword [rbp + 0x6f], rbx
mov qword [rbx], rcx
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
lea rax, vtable.CVolMem.0
mov qword [rbx], rax
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x28], r13
mov qword [rbx + 0x20], r13
mov eax, 0x40
mov qword [rbx + 0x30], rax
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x50], 0xfe
mov dword [rbp - 0x29], 1
mov rax, qword [rsi]
mov rdx, qword [rax + 0x88]
lea rax, [fcn.140008770]
cmp rdx, rax
je 0x140085680
mov rcx, rsi
call rdx
mov r14, qword [rbp + 0x7f]
mov rax, qword [r14 + 8]
mov qword [rsi + 8], rax
mov rax, qword [r14 + 0x10]
mov qword [rsi + 0x10], rax
mov rax, qword [r14 + 0x18]
mov qword [rsi + 0x18], rax
mov rax, qword [rbx]
mov rdx, qword [rax + 0x88]
lea rax, [fcn.140008770]
cmp rdx, rax
je 0x1400856b7
mov rcx, rbx
call rdx
lea rdx, [r14 + 0x20]
mov rcx, rbx
call fcn.14000b740
mov rdx, qword [r15 + 0x18]
test rdx, rdx
jne 0x1400856dd
cmp qword [r15 + 0x48], rdx
lea rdx, [0x1402ac8c0]
je 0x1400856dd
mov rdx, qword [r15 + 0x38]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140085a6f
mov dword [rbp + 0x7f], r13d
mov rdx, qword [rdi + 0x18]
test rdx, rdx
jne 0x14008571e
cmp qword [rdi + 0x48], rdx
lea rdx, [0x1402ac8c0]
je 0x14008571e
mov rdx, qword [rdi + 0x38]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140085a65
mov eax, dword [rbp + 0x6f]
dec eax
cmp eax, 1
ja 0x140085a65
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x19], rax
lea rcx, vtable.CVolObject.0
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], r13
lea rdx, vtable.CVolMem.0
mov qword [rbp - 0x19], rdx
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov r8d, 0x40
mov qword [rbp + 0x17], r8
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x51], r13
mov qword [rbp - 0x61], rdx
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x31], r8
mov r8d, dword [rbp + 0x7f]
lea r12, [r8 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, r12
cqo
idiv rcx
sub r8, rdx
lea r15, [rcx + 2]
add r15, r8
mov rax, qword [rbp - 0x19]
mov r8, qword [rax]
lea rax, [method.CVolObjectArray.virtual_0]
mov rdx, r15
cmp r8, rax
jne 0x140085804
lea rcx, [0x140489958]
call fcn.140196b80
mov r14, rax
test rax, rax
je 0x140085a8d
jmp 0x14008580e
lea rcx, [rbp - 0x19]
call r8
mov r14, rax
mov qword [rbp - 1], r14
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r12
mov r8, r12
xor edx, edx
mov rcx, r14
call fcn.14023e790
mov rdx, qword [rdi + 0x18]
test rdx, rdx
jne 0x140085841
cmp qword [rdi + 0x48], rdx
lea rdx, [0x1402ac8c0]
je 0x140085841
mov rdx, qword [rdi + 0x38]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r14, [fcn.14018de50]
test eax, eax
jne 0x1400859d9
mov rdi, qword [rbp - 1]
cmp qword [rbp + 0xf], 0
cmove rdi, r13
cmp dword [rbp + 0x6f], 2
jne 0x14008595e
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r13d, eax
lea r15, [r13*2 + 4]
cmp qword [rbp - 0x49], 0
je 0x1400858be
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.140195ad0
mov r14, rax
mov r15, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x49]
jmp 0x14008592a
mov rcx, qword [rbp - 0x31]
test rcx, rcx
mov eax, 0x40
cmovle rcx, rax
mov rax, r15
cqo
idiv rcx
sub rcx, rdx
lea r12, [r13 + 2]
lea r12, [rcx + r12*2]
mov rax, qword [rbp - 0x61]
mov r8, qword [rax]
lea rax, [method.CVolObjectArray.virtual_0]
mov rdx, r12
cmp r8, rax
jne 0x140085911
lea rcx, [0x140489958]
call fcn.140196b80
mov r14, rax
test rax, rax
je 0x140085a8d
jmp 0x14008591b
lea rcx, [rbp - 0x61]
call r8
mov r14, rax
mov rcx, r14
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r15
mov r8, r15
xor edx, edx
call fcn.14023e790
lea r8d, [r13 + 1]
mov rdx, r14
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
lea r14, [fcn.14018de50]
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x140085984
cmp qword [rsi + 0x48], rax
jne 0x140085976
lea rax, [0x1402ac8c0]
jmp 0x140085984
cmp qword [rbx + 0x28], 0
mov rax, r13
je 0x140085984
mov rax, qword [rbx + 0x18]
cmp rdi, rax
je 0x1400859d9
mov qword [rsi + 0x18], r13
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400859b6
mov rax, qword [rbx]
mov r8, qword [rax + 0x18]
cmp r8, r14
jne 0x1400859b0
lea rcx, [0x140489958]
call fcn.140196cd0
jmp 0x1400859b6
mov rcx, rbx
call r8
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x28], r13
mov qword [rbx + 0x20], r13
test rdi, rdi
je 0x1400859d9
cmp word [rdi], 0
je 0x1400859d9
mov rdx, rdi
mov rcx, rbx
call fcn.140195c20
nop
lea rdi, vtable.CVolMem.0
mov qword [rbp - 0x61], rdi
mov rdx, qword [rbp - 0x49]
test rdx, rdx
je 0x140085a0f
mov rax, qword [rbp - 0x61]
mov r8, qword [rax + 0x18]
cmp r8, r14
jne 0x140085a08
lea rcx, [0x140489958]
call fcn.140196cd0
jmp 0x140085a0f
lea rcx, [rbp - 0x61]
call r8
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 - 0x19], rdi
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140085a55
mov rax, qword [rbp - 0x19]
mov r8, qword [rax + 0x18]
cmp r8, r14
jne 0x140085a4e
lea rcx, [0x140489958]
call fcn.140196cd0
jmp 0x140085a55
lea rcx, [rbp - 0x19]
call r8
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov qword [rbp - 0x19], rbx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0xffffffff
call fcn.140251f2c
int3