Function at 0x140010e50
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.140015cb0
mov rcx, rax
test rax, rax
jne 0x140010eb6
mov ecx, 0x80004005
call fcn.1400026e0
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 0x140010ef6
movzx ebx, dx
mov ecx, ebx
call fcn.14001633c
test rax, rax
je 0x140010f01
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002150
jmp 0x140010f01
lea rcx, [rsp + 0x48]
call fcn.1400033f0
nop
or r14, 0xffffffffffffffff
test rdi, rdi
jne 0x140010f0e
mov eax, esi
jmp 0x140010f1b
mov rax, r14
inc rax
cmp word [rdi + rax*2], 0
jne 0x140010f11
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140002b70
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 0x140010fbe
lea rdx, str.Wow6432NodeTypeLib_
lea rcx, [rsp + 0x48]
call fcn.1400033f0
test rdi, rdi
jne 0x140010f71
mov eax, esi
jmp 0x140010f7e
mov rax, r14
inc rax
cmp word [rdi + rax*2], 0
jne 0x140010f74
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140002b70
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 0x140011234
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 0x14001122d
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 0x1400111f9
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 0x1400111ee
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 0x1400111ae
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 0x140011100
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 0x1400111a3
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 0x140011198
mov ecx, dword [rsp + 0x70]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x140011198
cmp ecx, 2
jne 0x14001117e
mov r8d, 0x104
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001117e
lea r8, [rbp + 0x2b0]
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call fcn.140040128
mov r9, r12
lea r8, [rbp + 0xa0]
mov rdx, r15
call fcn.140011280
mov edi, eax
test eax, eax
jg 0x140011204
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 0x140011080
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r13d
mov edx, r13d
jmp 0x140010fcd
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 0x140011229
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x14001124f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14001124d
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.1400371e0
mov rbx, qword [rsp + 0x610]
add rsp, 0x5d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret