Function at 0x424c60
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 [0x43700c]
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 0x424c95
jmp 0x424c9a
call fcn.0040e81f
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.004161c6
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0xd18]
push eax
call fcn.0041622a
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 0x424d71
push str.Wow6432NodeTypeLib_
push 0x400
lea eax, [ebp - 0xd18]
push eax
call fcn.004161c6
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0xd18]
push edx
call fcn.0041622a
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 0x424d71
xor eax, eax
jmp 0x425018
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 0x425009
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 0x424feb
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 0x424fde
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 0x424fc0
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 0x424ed0
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 0x424fb3
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 0x424fa6
cmp dword [ebp - 0xd28], 1
je 0x424f27
cmp dword [ebp - 0xd28], 2
jne 0x424fa6
cmp dword [ebp - 0xd28], 2
jne 0x424f68
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 0x424f68
lea ecx, [ebp - 0x518]
push ecx
push 0x104
lea edx, [ebp - 0x30c]
push edx
call fcn.004161c6
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.00424960
mov dword [ebp - 0xd44], eax
cmp dword [ebp - 0xd44], 0
jle 0x424fa6
mov eax, dword [ebp - 0xd20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xd44]
jmp 0x425018
mov ecx, dword [ebp - 0xd20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xd2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xd30]
add eax, 1
mov dword [ebp - 0xd30], eax
mov dword [ebp - 0xd48], 0x40
jmp 0x424e0f
mov ecx, dword [ebp - 0xd34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xd38]
add edx, 1
mov dword [ebp - 0xd38], edx
mov dword [ebp - 0xd4c], 0x40
jmp 0x424d8f
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.0040e627
mov esp, ebp
pop ebp
ret 0xc