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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd60
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xd50], ecx
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0xd3c], ecx
cmp dword [ebp - 0xd3c], 0x208
jae 0x424f35
jmp 0x424f3b
call fcn.0040e930
nop
xor edx, edx
mov eax, dword [ebp - 0xd3c]
mov word [ebp + eax - 0x30c], dx
push 0x42d5d0
push 0x400
lea ecx, [ebp - 0xd18]
push ecx
call fcn.00416416
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0xd18]
push eax
call fcn.0041647a
add esp, 0xc
lea ecx, [ebp - 0xd24]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0xd18]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xd1c], eax
cmp dword [ebp - 0xd1c], 0
je 0x425012
push str.Wow6432NodeTypeLib_
push 0x400
lea eax, [ebp - 0xd18]
push eax
call fcn.00416416
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0xd18]
push edx
call fcn.0041647a
add esp, 0xc
lea eax, [ebp - 0xd24]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0xd18]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xd1c], eax
cmp dword [ebp - 0xd1c], 0
je 0x425012
xor eax, eax
jmp 0x4252bc
mov dword [ebp - 0xd40], 0x80
mov dword [ebp - 0xd4c], 0x40
mov dword [ebp - 0xd38], 0
lea edx, [ebp - 0xd58]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0xd4c]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xd38]
push edx
mov eax, dword [ebp - 0xd24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4252ad
lea ecx, [ebp - 0xd34]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp - 0xd24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xd1c], eax
cmp dword [ebp - 0xd1c], 0
jne 0x42528f
mov dword [ebp - 0xd48], 0x40
mov dword [ebp - 0xd30], 0
lea ecx, [ebp - 0xd60]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0xd48]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0xd30]
push ecx
mov edx, dword [ebp - 0xd34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x425281
lea eax, [ebp - 0xd2c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0xd34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xd1c], eax
cmp dword [ebp - 0xd1c], 0
jne 0x425263
lea eax, [ebp - 0xd20]
push eax
push 0x20019
push 0
push str.win32
mov ecx, dword [ebp - 0xd2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xd1c], eax
cmp dword [ebp - 0xd1c], 0
je 0x425171
lea edx, [ebp - 0xd20]
push edx
push 0x20019
push 0
push str.win64
mov eax, dword [ebp - 0xd2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xd1c], eax
cmp dword [ebp - 0xd1c], 0
jne 0x425255
mov dword [ebp - 0xd40], 0x105
lea ecx, [ebp - 0xd40]
push ecx
lea edx, [ebp - 0x30c]
push edx
lea eax, [ebp - 0xd28]
push eax
push 0
push 0
mov ecx, dword [ebp - 0xd20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x425247
cmp dword [ebp - 0xd28], 1
je 0x4251c8
cmp dword [ebp - 0xd28], 2
jne 0x425247
cmp dword [ebp - 0xd28], 2
jne 0x425209
push 0x104
lea edx, [ebp - 0x518]
push edx
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x425209
lea ecx, [ebp - 0x518]
push ecx
push 0x104
lea edx, [ebp - 0x30c]
push edx
call fcn.00416416
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x30c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0xd50]
call fcn.00424c00
mov dword [ebp - 0xd44], eax
cmp dword [ebp - 0xd44], 0
jle 0x425247
mov eax, dword [ebp - 0xd20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xd44]
jmp 0x4252bc
mov ecx, dword [ebp - 0xd20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov edx, dword [ebp - 0xd2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, dword [ebp - 0xd30]
add eax, 1
mov dword [ebp - 0xd30], eax
mov dword [ebp - 0xd48], 0x40
jmp 0x4250b0
mov ecx, dword [ebp - 0xd34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov edx, dword [ebp - 0xd38]
add edx, 1
mov dword [ebp - 0xd38], edx
mov dword [ebp - 0xd4c], 0x40
jmp 0x425030
mov eax, dword [ebp - 0xd24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e737
mov esp, ebp
pop ebp
ret 0xc