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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x1400736a0]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor r12d, r12d
mov word [rbp + 0x90], r12w
lea rdx, str.TypeLib_
lea rcx, [rsp + 0x40]
call fcn.14000d778
nop
or r13, 0xffffffffffffffff
test rbx, rbx
jne 0x14000ed48
mov eax, r12d
jmp 0x14000ed55
mov rax, r13
inc rax
cmp word [rbx + rax*2], r12w
jne 0x14000ed4b
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000254c
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov esi, 0x20019
mov r9d, esi
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rdi, 0xffffffff80000000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000edf1
lea rdx, str.Wow6432NodeTypeLib_
lea rcx, [rsp + 0x40]
call fcn.140002c7c
test rbx, rbx
jne 0x14000edae
mov eax, r12d
jmp 0x14000edbb
mov rax, r13
inc rax
cmp word [rbx + rax*2], r12w
jne 0x14000edb1
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000254c
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f022
mov dword [rsp + 0x50], 0x80
mov ebx, 0x40
mov esi, r12d
xor edx, edx
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x4c], ebx
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x10]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
jne 0x14000f01b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000efe1
mov edi, r12d
xor edx, edx
jmp 0x14000ef9e
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ef9a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.win32
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000eeea
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.win64
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ef8f
mov dword [rsp + 0x50], 0x105
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ef84
mov ecx, dword [rsp + 0x70]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14000ef84
cmp ecx, 2
jne 0x14000ef67
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000ef67
lea r8, [rbp + 0x2a0]
mov edx, ebx
lea rcx, [rbp + 0x90]
call fcn.14003cb7c
mov r9, r15
lea r8, [rbp + 0x90]
mov rdx, r14
call fcn.14000f070
mov ebx, eax
test eax, eax
jg 0x14000efea
mov ebx, 0x40
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov edx, edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x14000ee6f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov edx, esi
jmp 0x14000ee03
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000f017
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
jmp 0x14000f045
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000f043
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.140031760
mov rbx, qword [rsp + 0x600]
add rsp, 0x5c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret