Function at 0x40a950
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 0x441d0c
mov eax, dword fs:[0]
push eax
sub esp, 0xbc0
mov eax, dword [0x4533e4]
xor eax, esp
mov dword [esp + 0xbb8], eax
push ebx
push esi
push edi
mov eax, dword [0x4533e4]
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.0042d280
add esp, 8
test eax, eax
jne 0x40aa23
lea ecx, [esp + 0x1bc]
push str.System32
push ecx
call fcn.0042d280
add esp, 8
test eax, eax
je 0x40aa3b
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, str.IIF_LOGFOLDER
mov ecx, esi
call fcn.004040d0
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.00417a70
mov eax, dword [esp + 0x40]
add esp, 4
cmp dword [esp + 0x50], 8
jae 0x40aaa0
lea eax, [esp + 0x3c]
push eax
mov ebx, str.IIF_SETUPVERSION
mov ecx, esi
call fcn.004040d0
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40aabc
lea eax, [esp + 0x58]
push eax
mov ebx, str.IIF_PACKAGEVERSION
mov ecx, esi
call fcn.004040d0
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.004040d0
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 0x40ab1f
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.004040d0
push 0x11c
lea ecx, [esp + 0xa0]
push 0
push ecx
call fcn.00430c00
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.00417bc0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
add esp, 4
mov ecx, ebx
cmp edi, 8
jae 0x40abe0
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ac0d
test dx, dx
je 0x40ac09
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ac0d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40abe7
xor eax, eax
jmp 0x40ac12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ac25
lea eax, [esp + 0x3c4]
push eax
mov ebx, str.IIF_OS
jmp 0x40ac4a
mov eax, ebx
cmp edi, 8
jae 0x40ac30
lea eax, [esp + 0x20]
push eax
mov ebx, str.IIF_OS
mov ecx, esi
call fcn.004040d0
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_DEBUG_REPORTEDVERSION
mov ecx, esi
call fcn.004040d0
movzx edx, word [esp + 0x1b0]
push edx
lea eax, [esp + 0x3c8]
push 0x446ae4
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.004040d0
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 0x40acb6
push 0x4462c0
mov ebx, str.IIF_IS64
mov ecx, esi
call fcn.004040d0
mov edi, str.v2.0.50727
call fcn.00418580
test al, al
je 0x40acd5
push 0x4462c0
mov ebx, str.IIF_NET20
mov ecx, esi
call fcn.004040d0
mov edi, str.v3.0
call fcn.00418580
test al, al
je 0x40acf4
push 0x4462c0
mov ebx, str.IIF_NET30
mov ecx, esi
call fcn.004040d0
mov edi, str.v3.5
call fcn.00418580
test al, al
je 0x40ad13
push 0x4462c0
mov ebx, str.IIF_NET35
mov ecx, esi
call fcn.004040d0
mov edi, str.v4Client
call fcn.00418580
test al, al
je 0x40ad32
push 0x4462c0
mov ebx, str.IIF_NET40CLIENT
mov ecx, esi
call fcn.004040d0
mov edi, str.v4Full
call fcn.00418580
test al, al
je 0x40ad51
push 0x4462c0
mov ebx, str.IIF_NET40FULL
mov ecx, esi
call fcn.004040d0
mov edi, str.v4.5Client
call fcn.00418580
test al, al
je 0x40ad70
push 0x4462c0
mov ebx, str.IIF_NET45CLIENT
mov ecx, esi
call fcn.004040d0
mov edi, str.v4.5Full
call fcn.00418580
test al, al
je 0x40ad8f
push 0x4462c0
mov ebx, str.IIF_NET45FULL
mov ecx, esi
call fcn.004040d0
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 0x40adfb
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 0x40adf0
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_ICCINSTALLEDPATH
mov ecx, esi
call fcn.004040d0
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.0042cbdd
mov eax, dword [esp + 0x24]
add eax, 0x30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40ae24
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c0]
push 0x104
push ecx
call fcn.0042d02f
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 0x40af00
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 0x40aebc
lea eax, [esp + 0x3c4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ae95
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
add esi, 0x68
lea eax, [esp + 0x3c8]
call fcn.00402c20
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 0x40aef5
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_INSTALLEDPACKAGEVERSION
mov ecx, esi
call fcn.004040d0
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 0x40af0f
mov eax, dword [eax]
push eax
mov ebx, str.IIF_INSTALLFOLDER
mov ecx, esi
call fcn.004040d0
lea ecx, [esp + 0x80]
mov edi, 0x455cb8
call fcn.00412770
mov edi, 8
mov byte [esp + 0xbd8], 3
cmp dword [eax + 0x14], edi
jb 0x40af41
mov eax, dword [eax]
push eax
mov ebx, str.IIF_LANGCOUNTRY
mov ecx, esi
call fcn.004040d0
mov byte [esp + 0xbd8], 2
cmp dword [esp + 0x94], edi
jb 0x40af6f
mov eax, dword [esp + 0x80]
push eax
call fcn.0042c048
add esp, 4
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x40afcc
cmp byte [esp + 0x74], 0
jne 0x40af96
push 0x4462c0
mov ebx, str.IIF_ONBATTERYPOWER
mov ecx, esi
call fcn.004040d0
mov al, byte [esp + 0x76]
cmp al, 0xff
je 0x40afcc
movzx edx, al
push edx
lea eax, [esp + 0x3c8]
push 0x446ae4
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.004040d0
cmp dword [esp + 0x34], edi
jb 0x40afdf
mov edx, dword [esp + 0x20]
push edx
call fcn.0042c048
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 0x40b008
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042c048
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 0x40b02a
mov eax, dword [esp + 0x58]
push eax
call fcn.0042c048
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.0042c039
mov esp, ebp
pop ebp
ret