Function at 0x40c5c0
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
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44886c
mov eax, dword fs:[0]
push eax
sub esp, 0xbb0
mov eax, dword [0x4624c8]
xor eax, esp
mov dword [esp + 0xba8], eax
push ebx
push esi
push edi
mov eax, dword [0x4624c8]
xor eax, esp
push eax
lea eax, [esp + 0xbc0]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
xor eax, eax
mov dword [esp + 0x64], 7
lea esi, [edi + 4]
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
mov dword [esp + 0xbc8], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x1ac]
mov byte [esp + 0xbc8], 2
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x1ac]
push str.system32
push eax
call fcn.00431eac
add esp, 8
test eax, eax
jne 0x40c699
lea eax, [esp + 0x1ac]
push str.System32
push eax
call fcn.00431eac
add esp, 8
test eax, eax
je 0x40c6b1
push 0x104
lea eax, [esp + 0x1b0]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1ac]
push str.IntelLogs
push eax
call ebx
lea eax, [esp + 0x1ac]
mov ecx, esi
push eax
push 0x45629c
call fcn.004198c0
push 0x104
lea eax, [esp + 0x1b0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x50]
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1b0]
call fcn.0041b4e0
add esp, 4
lea eax, [esp + 0x38]
cmp dword [esp + 0x4c], 8
mov ecx, esi
cmovae eax, dword [esp + 0x38]
push eax
push str.IIF_SETUPVERSION
call fcn.004198c0
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
mov ecx, esi
cmovae eax, dword [esp + 0x50]
push eax
push str.IIF_PACKAGEVERSION
call fcn.004198c0
lea eax, [esp + 0x1ac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x1ac]
mov ecx, esi
push eax
push str.IIF_SETUPPATH
call fcn.004198c0
lea eax, [esp + 0x1ac]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.IntelPackage_Cache
lea eax, [esp + 0x1b0]
push eax
call ebx
add edi, 0x234
cmp dword [edi + 0x14], 8
jb 0x40c794
mov eax, dword [edi]
jmp 0x40c796
mov eax, edi
push eax
lea eax, [esp + 0x1b0]
push eax
call ebx
lea eax, [esp + 0x1ac]
mov ecx, esi
push eax
push str.IIF_CACHELOC
call fcn.004198c0
push 0x11c
lea eax, [esp + 0x90]
push 0
push eax
call fcn.00435780
add esp, 0xc
mov dword [esp + 0x8c], 0x11c
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push dword [esp + 0x94]
lea eax, [esp + 0x3b8]
push dword [esp + 0x94]
push str._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x1ac]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.kernel32.dll
lea eax, [esp + 0x1b0]
push eax
call ebx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1ac]
call fcn.0041b640
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x20]
cmp ebx, 8
lea ecx, [esp + 0x3b4]
cmovae eax, dword [esp + 0x20]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40c87b
test dx, dx
je 0x40c877
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40c87b
add ecx, 4
add eax, 4
test dx, dx
jne 0x40c855
xor eax, eax
jmp 0x40c880
sbb eax, eax
or eax, 1
mov ecx, esi
test eax, eax
jne 0x40c895
lea eax, [esp + 0x3b4]
push eax
push str.IIF_OS
jmp 0x40c8bb
cmp ebx, 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push str.IIF_OS
call fcn.004198c0
lea eax, [esp + 0x3b4]
mov ecx, esi
push eax
push str.IIF_DEBUG_REPORTEDVERSION
call fcn.004198c0
movzx eax, word [esp + 0x1a0]
push eax
lea eax, [esp + 0x3b8]
push 0x4545a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3b4]
mov ecx, esi
push eax
push str.IIF_OSSERVICEPACK
call fcn.004198c0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x14], 1
jne 0x40c925
push 0x453cb4
push str.IIF_IS64
mov ecx, esi
call fcn.004198c0
mov ecx, str.v2.0.50727
call fcn.0041bf30
test al, al
je 0x40c944
push 0x453cb4
push str.IIF_NET20
mov ecx, esi
call fcn.004198c0
mov ecx, str.v3.0
call fcn.0041bf30
test al, al
je 0x40c963
push 0x453cb4
push str.IIF_NET30
mov ecx, esi
call fcn.004198c0
mov ecx, str.v3.5
call fcn.0041bf30
test al, al
je 0x40c982
push 0x453cb4
push str.IIF_NET35
mov ecx, esi
call fcn.004198c0
mov ecx, str.v4Client
call fcn.0041bf30
test al, al
je 0x40c9a1
push 0x453cb4
push str.IIF_NET40CLIENT
mov ecx, esi
call fcn.004198c0
mov ecx, str.v4Full
call fcn.0041bf30
test al, al
je 0x40c9c0
push 0x453cb4
push str.IIF_NET40FULL
mov ecx, esi
call fcn.004198c0
mov ecx, str.v4.5Client
call fcn.0041bf30
test al, al
je 0x40c9df
push 0x453cb4
push str.IIF_NET45CLIENT
mov ecx, esi
call fcn.004198c0
mov ecx, str.v4.5Full
call fcn.0041bf30
test al, al
je 0x40c9fe
push 0x453cb4
push str.IIF_NET45FULL
mov ecx, esi
call fcn.004198c0
lea eax, [esp + 0x18]
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 0x40ca6a
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x3b8]
push eax
push 0
push 0
push str.InstallPath
push dword [esp + 0x2c]
call ebx
test eax, eax
jne 0x40ca60
lea eax, [esp + 0x3b4]
mov ecx, esi
push eax
push str.IIF_ICCINSTALLEDPATH
call fcn.004198c0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea eax, [esp + 0x1b0]
push 0x104
push eax
call fcn.004319e1
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40ca8c
mov edi, dword [edi]
push edi
lea eax, [esp + 0x1b0]
push 0x104
push eax
call fcn.00431c47
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x20119
push 0
lea eax, [esp + 0x1b8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cb85
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x3b8]
push eax
push 0
push 0
push str.InstallLocation
push dword [esp + 0x2c]
call ebx
test eax, eax
jne 0x40cb39
cmp word [esp + 0x3b4], ax
jne 0x40caff
xor ecx, ecx
jmp 0x40cb1f
lea ecx, [esp + 0x3b4]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb10
sub ecx, edx
sar ecx, 1
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x3b4]
push ecx
push eax
lea ecx, [edi + 0x264]
call fcn.00406140
jmp 0x40cb3d
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x3b8]
push eax
push 0
push 0
push str.DisplayVersion
push dword [esp + 0x2c]
call ebx
test eax, eax
jne 0x40cb79
lea eax, [esp + 0x3b4]
mov ecx, esi
push eax
push str.IIF_INSTALLEDPACKAGEVERSION
call fcn.004198c0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cb89
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x278], 8
lea eax, [edi + 0x264]
jb 0x40cb9a
mov eax, dword [eax]
push eax
push str.IIF_INSTALLFOLDER
mov ecx, esi
call fcn.004198c0
lea eax, [esp + 0x74]
mov ecx, 0x465d38
push eax
call fcn.00423e60
mov byte [esp + 0xbc8], 3
cmp dword [eax + 0x14], 8
jb 0x40cbc6
mov eax, dword [eax]
push eax
push str.IIF_LANGCOUNTRY
mov ecx, esi
call fcn.004198c0
mov byte [esp + 0xbc8], 2
cmp dword [esp + 0x88], 8
jb 0x40cbf1
push dword [esp + 0x74]
call fcn.004213f0
add esp, 4
lea eax, [esp + 0x3b4]
push eax
push 0
push 0
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
js 0x40cc17
lea eax, [esp + 0x3b4]
push eax
jmp 0x40cc1c
push str.C:Program_Files__x86__
push str.IIF_PROGRAMFILES86FOLDER
call fcn.004198c0
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x40cca7
mov al, byte [esp + 0x69]
cmp al, 0x80
je 0x40cc48
cmp al, 0xff
je 0x40cc48
push 0x453cb4
jmp 0x40cc4d
push 0x454278
push str.IIF_HASBATTERY
mov ecx, esi
call fcn.004198c0
cmp byte [esp + 0x68], 0
jne 0x40cc71
push 0x453cb4
push str.IIF_ONBATTERYPOWER
mov ecx, esi
call fcn.004198c0
mov al, byte [esp + 0x6a]
cmp al, 0xff
je 0x40cca7
movzx eax, al
push eax
lea eax, [esp + 0x3b8]
push 0x4545a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3b4]
mov ecx, esi
push eax
push str.IIF_BATTERYPOWER
call fcn.004198c0
cmp dword [esp + 0x34], 8
jb 0x40ccba
push dword [esp + 0x20]
call fcn.004213f0
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x40cce4
push dword [esp + 0x38]
call fcn.004213f0
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
cmp dword [esp + 0x64], 8
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
jb 0x40cd0e
push dword [esp + 0x50]
call fcn.004213f0
add esp, 4
mov ecx, dword [esp + 0xbc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xba8]
xor ecx, esp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret