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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455e2c
mov eax, dword fs:[0]
push eax
sub esp, 0xbac
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xbb4], edi
xor eax, eax
mov dword [ebp - 0xa4c], 7
lea esi, [edi + 4]
mov dword [ebp - 0xa50], 0
mov word [ebp - 0xa60], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa34], 7
mov dword [ebp - 0xa38], eax
mov word [ebp - 0xa48], ax
mov dword [ebp - 0xa1c], 7
mov dword [ebp - 0xa20], eax
mov word [ebp - 0xa30], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.system32
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40f11d
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.IntelLogs
push eax
call ebx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push 0x469858
call fcn.004175d0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xa60]
push eax
lea edx, [ebp - 0xa48]
lea ecx, [ebp - 0x218]
call fcn.0041b7e0
add esp, 4
lea eax, [ebp - 0xa48]
cmp dword [ebp - 0xa34], 8
mov ecx, esi
cmovae eax, dword [ebp - 0xa48]
push eax
push str.IIF_SETUPVERSION
call fcn.004175d0
cmp dword [ebp - 0xa4c], 8
lea eax, [ebp - 0xa60]
mov ecx, esi
cmovae eax, dword [ebp - 0xa60]
push eax
push str.IIF_PACKAGEVERSION
call fcn.004175d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push str.IIF_SETUPPATH
call fcn.004175d0
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.IntelPackage_Cache
lea eax, [ebp - 0x218]
push eax
call ebx
add edi, 0x238
cmp dword [edi + 0x14], 8
jb 0x40f208
mov eax, dword [edi]
jmp 0x40f20a
mov eax, edi
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push str.IIF_CACHELOC
call fcn.004175d0
push 0x11c
lea eax, [ebp - 0xba8]
push 0
push eax
call fcn.00439c60
add esp, 0xc
mov dword [ebp - 0xba8], 0x11c
lea eax, [ebp - 0xba8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push dword [ebp - 0xba0]
lea eax, [ebp - 0xa18]
push dword [ebp - 0xba4]
push str._d._d
push eax
call fcn.00414440
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.kernel32.dll
lea eax, [ebp - 0x218]
push eax
call ebx
lea edx, [ebp - 0xa30]
lea ecx, [ebp - 0x218]
call fcn.0041b940
mov ebx, dword [ebp - 0xa1c]
lea eax, [ebp - 0xa30]
cmp ebx, 8
lea ecx, [ebp - 0xa18]
cmovae eax, dword [ebp - 0xa30]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40f2ea
test dx, dx
je 0x40f2e6
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40f2ea
add ecx, 4
add eax, 4
test dx, dx
jne 0x40f2c4
xor eax, eax
jmp 0x40f2ef
sbb eax, eax
or eax, 1
mov ecx, esi
test eax, eax
jne 0x40f303
lea eax, [ebp - 0xa18]
push eax
push str.IIF_OS
jmp 0x40f32c
cmp ebx, 8
lea eax, [ebp - 0xa30]
cmovae eax, dword [ebp - 0xa30]
push eax
push str.IIF_OS
call fcn.004175d0
lea eax, [ebp - 0xa18]
mov ecx, esi
push eax
push str.IIF_DEBUG_REPORTEDVERSION
call fcn.004175d0
movzx eax, word [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa18]
push 0x469a6c
push eax
call fcn.00414440
add esp, 0xc
lea eax, [ebp - 0xa18]
mov ecx, esi
push eax
push str.IIF_OSSERVICEPACK
call fcn.004175d0
lea eax, [ebp - 0xbac]
mov dword [ebp - 0xbac], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0xbac], 1
jne 0x40f398
push 0x465774
push str.IIF_IS64
mov ecx, esi
call fcn.004175d0
mov ecx, str.v2.0.50727
call fcn.0041c2d0
test al, al
je 0x40f3b7
push 0x465774
push str.IIF_NET20
mov ecx, esi
call fcn.004175d0
mov ecx, str.v3.0
call fcn.0041c2d0
test al, al
je 0x40f3d6
push 0x465774
push str.IIF_NET30
mov ecx, esi
call fcn.004175d0
mov ecx, str.v3.5
call fcn.0041c2d0
test al, al
je 0x40f3f5
push 0x465774
push str.IIF_NET35
mov ecx, esi
call fcn.004175d0
mov ecx, str.v4Client
call fcn.0041c2d0
test al, al
je 0x40f414
push 0x465774
push str.IIF_NET40CLIENT
mov ecx, esi
call fcn.004175d0
mov ecx, str.v4Full
call fcn.0041c2d0
test al, al
je 0x40f433
push 0x465774
push str.IIF_NET40FULL
mov ecx, esi
call fcn.004175d0
mov ecx, str.v4.5Client
call fcn.0041c2d0
test al, al
je 0x40f452
push 0x465774
push str.IIF_NET45CLIENT
mov ecx, esi
call fcn.004175d0
mov ecx, str.v4.5Full
call fcn.0041c2d0
test al, al
je 0x40f471
push 0x465774
push str.IIF_NET45FULL
mov ecx, esi
call fcn.004175d0
lea eax, [ebp - 0xbb0]
push eax
push 0x20019
push 0
push str.SoftwareIntelICCInst
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f4e5
lea eax, [ebp - 0xbac]
mov dword [ebp - 0xbac], 0x800
push eax
lea eax, [ebp - 0xa18]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xbb0]
call ebx
test eax, eax
jne 0x40f4d9
lea eax, [ebp - 0xa18]
mov ecx, esi
push eax
push str.IIF_ICCINSTALLEDPATH
call fcn.004175d0
push dword [ebp - 0xbb0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40f506
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043f02a
add esp, 0xc
lea eax, [ebp - 0xbb0]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f604
lea eax, [ebp - 0xbac]
mov dword [ebp - 0xbac], 0x800
push eax
lea eax, [ebp - 0xa18]
push eax
push 0
push 0
push str.InstallLocation
push dword [ebp - 0xbb0]
call ebx
test eax, eax
jne 0x40f5b0
cmp word [ebp - 0xa18], ax
jne 0x40f57d
xor edx, edx
jmp 0x40f595
lea edx, [ebp - 0xa18]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40f586
sub edx, ecx
sar edx, 1
mov edi, dword [ebp - 0xbb4]
lea eax, [ebp - 0xa18]
push edx
push eax
lea ecx, [edi + 0x268]
call fcn.00404c00
jmp 0x40f5b6
mov edi, dword [ebp - 0xbb4]
lea eax, [ebp - 0xbac]
mov dword [ebp - 0xbac], 0x800
push eax
lea eax, [ebp - 0xa18]
push eax
push 0
push 0
push str.DisplayVersion
push dword [ebp - 0xbb0]
call ebx
test eax, eax
jne 0x40f5f6
lea eax, [ebp - 0xa18]
mov ecx, esi
push eax
push str.IIF_INSTALLEDPACKAGEVERSION
call fcn.004175d0
push dword [ebp - 0xbb0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f60a
mov edi, dword [ebp - 0xbb4]
cmp dword [edi + 0x27c], 8
lea eax, [edi + 0x268]
jb 0x40f61b
mov eax, dword [eax]
push eax
push str.IIF_INSTALLFOLDER
mov ecx, esi
call fcn.004175d0
lea eax, [ebp - 0xa84]
mov ecx, 0x4793b0
push eax
call fcn.00419100
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40f645
mov eax, dword [eax]
push eax
push str.IIF_LANGCOUNTRY
mov ecx, esi
call fcn.004175d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa70]
cmp eax, 8
jb 0x40f674
inc eax
lea ecx, [ebp - 0xa84]
push eax
push dword [ebp - 0xa84]
call fcn.00405180
lea eax, [ebp - 0xa18]
push eax
push 0
push 0
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
js 0x40f698
lea eax, [ebp - 0xa18]
push eax
jmp 0x40f69d
push str.C:Program_Files__x86__
push str.IIF_PROGRAMFILES86FOLDER
call fcn.004175d0
lea eax, [ebp - 0xa6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x40f72d
mov al, byte [ebp - 0xa6b]
cmp al, 0x80
je 0x40f6cd
cmp al, 0xff
je 0x40f6cd
push 0x465774
jmp 0x40f6d2
push 0x465824
push str.IIF_HASBATTERY
mov ecx, esi
call fcn.004175d0
cmp byte [ebp - 0xa6c], 0
jne 0x40f6f8
push 0x465774
push str.IIF_ONBATTERYPOWER
mov ecx, esi
call fcn.004175d0
mov al, byte [ebp - 0xa6a]
cmp al, 0xff
je 0x40f72d
movzx eax, al
push eax
lea eax, [ebp - 0xa18]
push 0x469a6c
push eax
call fcn.00414440
add esp, 0xc
lea eax, [ebp - 0xa18]
mov ecx, esi
push eax
push str.IIF_BATTERYPOWER
call fcn.004175d0
mov eax, dword [ebp - 0xa1c]
cmp eax, 8
jb 0x40f74b
inc eax
lea ecx, [ebp - 0xa30]
push eax
push dword [ebp - 0xa30]
call fcn.00405180
xor eax, eax
mov dword [ebp - 0xa1c], 7
mov word [ebp - 0xa30], ax
mov eax, dword [ebp - 0xa34]
mov dword [ebp - 0xa20], 0
cmp eax, 8
jb 0x40f786
inc eax
lea ecx, [ebp - 0xa48]
push eax
push dword [ebp - 0xa48]
call fcn.00405180
xor eax, eax
mov dword [ebp - 0xa34], 7
mov word [ebp - 0xa48], ax
mov eax, dword [ebp - 0xa4c]
mov dword [ebp - 0xa38], 0
cmp eax, 8
jb 0x40f7c1
inc eax
lea ecx, [ebp - 0xa60]
push eax
push dword [ebp - 0xa60]
call fcn.00405180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret