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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x610], rbx
mov rax, qword [0x140079698]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov r12, r9
mov r15, r8
mov rdi, rdx
xor esi, esi
mov word [rbp + 0xa0], si
call fcn.140015d90
mov rcx, rax
test rax, rax
jne 0x140010e86
mov ecx, 0x80004005
call fcn.140002430
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.TypeLib_
test rdx, 0xffffffffffff0000
jne 0x140010ec6
movzx ebx, dx
mov ecx, ebx
call fcn.140016424
test rax, rax
je 0x140010ed1
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140001ea0
jmp 0x140010ed1
lea rcx, [rsp + 0x48]
call fcn.1400031b0
nop
or r14, 0xffffffffffffffff
test rdi, rdi
jne 0x140010ede
mov eax, esi
jmp 0x140010eeb
mov rax, r14
inc rax
cmp word [rdi + rax*2], 0
jne 0x140010ee1
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400028a0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140010f8e
lea rdx, str.Wow6432NodeTypeLib_
lea rcx, [rsp + 0x48]
call fcn.1400031b0
test rdi, rdi
jne 0x140010f41
mov eax, esi
jmp 0x140010f4e
mov rax, r14
inc rax
cmp word [rdi + rax*2], 0
jne 0x140010f44
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400028a0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011204
mov dword [rsp + 0x50], 0x80
xor edi, edi
mov r13d, edi
xor edx, edx
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x44], 0x40
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x20]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
jne 0x1400111fd
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400111c9
mov dword [rsp + 0x40], 0x40
mov esi, edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400111be
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001117e
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 0x1400110d0
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 0x140011173
mov dword [rsp + 0x50], 0x105
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa0]
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 0x140011168
mov ecx, dword [rsp + 0x70]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x140011168
cmp ecx, 2
jne 0x14001114e
mov r8d, 0x104
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001114e
lea r8, [rbp + 0x2b0]
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call fcn.140040390
mov r9, r12
lea r8, [rbp + 0xa0]
mov rdx, r15
call fcn.140011250
mov edi, eax
test eax, eax
jg 0x1400111d4
xor edi, edi
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 esi
mov dword [rsp + 0x40], 0x40
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
mov edx, esi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140011050
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r13d
mov edx, r13d
jmp 0x140010f9d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400111f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x14001121f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14001121d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.140037060
mov rbx, qword [rsp + 0x610]
add rsp, 0x5d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret