Function at 0x40bae0
Capabilities:
Get common file path
Get installed programs
Get startup folder
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x441e6c
mov eax, dword fs:[0]
push eax
sub esp, 0xbc0
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0xbb8], eax
push ebx
push esi
push edi
mov eax, dword [0x4553d4]
xor eax, esp
push eax
lea eax, [esp + 0xbd0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
add esi, 4
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov word [esp + 0x58], dx
mov dword [esp + 0xbd8], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], eax
mov word [esp + 0x3c], dx
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
lea edx, [esp + 0x1bc]
push edx
push eax
push eax
push 0x28
push eax
mov byte [esp + 0xbec], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x1bc]
push str.system32
push eax
call fcn.0042d81c
add esp, 8
test eax, eax
jne 0x40bbb3
lea ecx, [esp + 0x1bc]
push str.System32
push ecx
call fcn.0042d81c
add esp, 8
test eax, eax
je 0x40bbcb
push 0x104
lea edx, [esp + 0x1c0]
push edx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.IntelLogs
lea eax, [esp + 0x1c0]
push eax
call edi
lea ecx, [esp + 0x1bc]
push ecx
mov ebx, 0x44a3b4
mov ecx, esi
call fcn.00414ab0
push 0x104
lea edx, [esp + 0x1c0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x1c0]
call fcn.00417580
mov eax, dword [esp + 0x40]
add esp, 4
cmp dword [esp + 0x50], 8
jae 0x40bc30
lea eax, [esp + 0x3c]
push eax
mov ebx, str.IIF_SETUPVERSION
mov ecx, esi
call fcn.00414ab0
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40bc4c
lea eax, [esp + 0x58]
push eax
mov ebx, str.IIF_PACKAGEVERSION
mov ecx, esi
call fcn.00414ab0
lea ecx, [esp + 0x1bc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x1bc]
push edx
mov ebx, str.IIF_SETUPPATH
mov ecx, esi
call fcn.00414ab0
lea eax, [esp + 0x1bc]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.IntelPackage_Cache
lea ecx, [esp + 0x1c0]
push ecx
call edi
mov eax, dword [esp + 0x18]
add eax, 0x30
cmp dword [eax + 0x14], 8
jb 0x40bcaf
mov eax, dword [eax]
push eax
lea edx, [esp + 0x1c0]
push edx
call edi
lea eax, [esp + 0x1bc]
push eax
mov ebx, str.IIF_CACHELOC
mov ecx, esi
call fcn.00414ab0
push 0x11c
lea ecx, [esp + 0xa0]
push 0
push ecx
call fcn.00435c00
add esp, 0xc
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0xa0], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
lea edx, [esp + 0x3cc]
push str._d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x1bc]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.kernel32.dll
lea ecx, [esp + 0x1c0]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c0]
call fcn.004176d0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
add esp, 4
mov ecx, ebx
cmp edi, 8
jae 0x40bd70
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bd9d
test dx, dx
je 0x40bd99
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bd9d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bd77
xor eax, eax
jmp 0x40bda2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bdb5
lea eax, [esp + 0x3c4]
push eax
mov ebx, str.IIF_OS
jmp 0x40bdda
mov eax, ebx
cmp edi, 8
jae 0x40bdc0
lea eax, [esp + 0x20]
push eax
mov ebx, str.IIF_OS
mov ecx, esi
call fcn.00414ab0
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_DEBUG_REPORTEDVERSION
mov ecx, esi
call fcn.00414ab0
movzx edx, word [esp + 0x1b0]
push edx
lea eax, [esp + 0x3c8]
push 0x44a5b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_OSSERVICEPACK
mov ecx, esi
call fcn.00414ab0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x10], 1
jne 0x40be46
push 0x4479b8
mov ebx, str.IIF_IS64
mov ecx, esi
call fcn.00414ab0
mov ecx, str.v2.0.50727
call fcn.00418050
test al, al
je 0x40be65
push 0x4479b8
mov ebx, str.IIF_NET20
mov ecx, esi
call fcn.00414ab0
mov ecx, str.v3.0
call fcn.00418050
test al, al
je 0x40be84
push 0x4479b8
mov ebx, str.IIF_NET30
mov ecx, esi
call fcn.00414ab0
mov ecx, str.v3.5
call fcn.00418050
test al, al
je 0x40bea3
push 0x4479b8
mov ebx, str.IIF_NET35
mov ecx, esi
call fcn.00414ab0
mov ecx, str.v4Client
call fcn.00418050
test al, al
je 0x40bec2
push 0x4479b8
mov ebx, str.IIF_NET40CLIENT
mov ecx, esi
call fcn.00414ab0
mov ecx, str.v4Full
call fcn.00418050
test al, al
je 0x40bee1
push 0x4479b8
mov ebx, str.IIF_NET40FULL
mov ecx, esi
call fcn.00414ab0
mov ecx, str.v4.5Client
call fcn.00418050
test al, al
je 0x40bf00
push 0x4479b8
mov ebx, str.IIF_NET45CLIENT
mov ecx, esi
call fcn.00414ab0
mov ecx, str.v4.5Full
call fcn.00418050
test al, al
je 0x40bf1f
push 0x4479b8
mov ebx, str.IIF_NET45FULL
mov ecx, esi
call fcn.00414ab0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareIntelICCInst
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40bf8b
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x3c8]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.InstallPath
push eax
mov dword [esp + 0x28], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bf80
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_ICCINSTALLEDPATH
mov ecx, esi
call fcn.00414ab0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea eax, [esp + 0x1c0]
push 0x104
push eax
call fcn.0042d2d5
mov eax, dword [esp + 0x24]
add eax, 0x30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40bfb4
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c0]
push 0x104
push ecx
call fcn.0042d53c
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20119
push 0
lea eax, [esp + 0x1c8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40c090
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x3c8]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.InstallLocation
mov ebx, 0x800
push eax
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40c04c
lea eax, [esp + 0x3c4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c025
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
add esi, 0x68
lea eax, [esp + 0x3c8]
call fcn.00404910
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x3c8]
push edx
push 0
push 0
push str.DisplayVersion
push eax
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40c085
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_INSTALLEDPACKAGEVERSION
mov ecx, esi
call fcn.00414ab0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
add eax, 0x68
cmp dword [eax + 0x14], 8
jb 0x40c09f
mov eax, dword [eax]
push eax
mov ebx, str.IIF_INSTALLFOLDER
mov ecx, esi
call fcn.00414ab0
lea ecx, [esp + 0x80]
mov edi, 0x457d28
call fcn.00418990
mov edi, 8
mov byte [esp + 0xbd8], 3
cmp dword [eax + 0x14], edi
jb 0x40c0d1
mov eax, dword [eax]
push eax
mov ebx, str.IIF_LANGCOUNTRY
mov ecx, esi
call fcn.00414ab0
mov byte [esp + 0xbd8], 2
cmp dword [esp + 0x94], edi
jb 0x40c0ff
mov eax, dword [esp + 0x80]
push eax
call fcn.0042c691
add esp, 4
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x40c15c
cmp byte [esp + 0x74], 0
jne 0x40c126
push 0x4479b8
mov ebx, str.IIF_ONBATTERYPOWER
mov ecx, esi
call fcn.00414ab0
mov al, byte [esp + 0x76]
cmp al, 0xff
je 0x40c15c
movzx edx, al
push edx
lea eax, [esp + 0x3c8]
push 0x44a5b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_BATTERYPOWER
mov ecx, esi
call fcn.00414ab0
cmp dword [esp + 0x34], edi
jb 0x40c16f
mov edx, dword [esp + 0x20]
push edx
call fcn.0042c691
add esp, 4
xor ebx, ebx
xor eax, eax
mov esi, 7
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
cmp dword [esp + 0x50], edi
jb 0x40c198
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042c691
add esp, 4
xor edx, edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
cmp dword [esp + 0x6c], edi
jb 0x40c1ba
mov eax, dword [esp + 0x58]
push eax
call fcn.0042c691
add esp, 4
mov ecx, dword [esp + 0xbd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbb8]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret