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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443a7c
mov eax, dword fs:[0]
push eax
sub esp, 0xbc0
mov eax, dword [0x4563e4]
xor eax, esp
mov dword [esp + 0xbb8], eax
push ebx
push esi
push edi
mov eax, dword [0x4563e4]
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]
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.00416670
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.00420f20
mov eax, dword [esp + 0x40]
add esp, 4
cmp dword [esp + 0x50], 8
jae 0x40c3b6
lea eax, [esp + 0x3c]
push eax
mov ebx, str.IIF_SETUPVERSION
mov ecx, esi
call fcn.00416670
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40c3d2
lea eax, [esp + 0x58]
push eax
mov ebx, str.IIF_PACKAGEVERSION
mov ecx, esi
call fcn.00416670
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.00416670
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 0x40c435
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.00416670
push 0x11c
lea ecx, [esp + 0xa0]
push 0
push ecx
call fcn.00433960
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.00421070
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
add esp, 4
mov ecx, ebx
cmp edi, 8
jae 0x40c4f6
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c4]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c526
test dx, dx
je 0x40c522
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c526
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c500
xor eax, eax
jmp 0x40c52b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c53e
lea eax, [esp + 0x3c4]
push eax
mov ebx, str.IIF_OS
jmp 0x40c563
mov eax, ebx
cmp edi, 8
jae 0x40c549
lea eax, [esp + 0x20]
push eax
mov ebx, str.IIF_OS
mov ecx, esi
call fcn.00416670
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_DEBUG_REPORTEDVERSION
mov ecx, esi
call fcn.00416670
movzx edx, word [esp + 0x1b0]
push edx
lea eax, [esp + 0x3c8]
push 0x44b40c
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.00416670
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 0x40c5cf
push 0x4493f8
mov ebx, str.IIF_IS64
mov ecx, esi
call fcn.00416670
mov ecx, str.v2.0.50727
call fcn.004219f0
test al, al
je 0x40c5ee
push 0x4493f8
mov ebx, str.IIF_NET20
mov ecx, esi
call fcn.00416670
mov ecx, str.v3.0
call fcn.004219f0
test al, al
je 0x40c60d
push 0x4493f8
mov ebx, str.IIF_NET30
mov ecx, esi
call fcn.00416670
mov ecx, str.v3.5
call fcn.004219f0
test al, al
je 0x40c62c
push 0x4493f8
mov ebx, str.IIF_NET35
mov ecx, esi
call fcn.00416670
mov ecx, str.v4Client
call fcn.004219f0
test al, al
je 0x40c64b
push 0x4493f8
mov ebx, str.IIF_NET40CLIENT
mov ecx, esi
call fcn.00416670
mov ecx, str.v4Full
call fcn.004219f0
test al, al
je 0x40c66a
push 0x4493f8
mov ebx, str.IIF_NET40FULL
mov ecx, esi
call fcn.00416670
mov ecx, str.v4.5Client
call fcn.004219f0
test al, al
je 0x40c689
push 0x4493f8
mov ebx, str.IIF_NET45CLIENT
mov ecx, esi
call fcn.00416670
mov ecx, str.v4.5Full
call fcn.004219f0
test al, al
je 0x40c6a8
push 0x4493f8
mov ebx, str.IIF_NET45FULL
mov ecx, esi
call fcn.00416670
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 0x40c714
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 0x40c709
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_ICCINSTALLEDPATH
mov ecx, esi
call fcn.00416670
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.0042eee3
mov eax, dword [esp + 0x24]
add eax, 0x30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40c73d
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c0]
push 0x104
push ecx
call fcn.0042fa24
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 0x40c81b
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 0x40c7d7
lea eax, [esp + 0x3c4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c7b0
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
add esi, 0x68
lea eax, [esp + 0x3c8]
call fcn.00403fb0
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 0x40c810
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_INSTALLEDPACKAGEVERSION
mov ecx, esi
call fcn.00416670
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 0x40c82a
mov eax, dword [eax]
push eax
mov ebx, str.IIF_INSTALLFOLDER
mov ecx, esi
call fcn.00416670
lea ecx, [esp + 0x80]
mov edi, 0x458de8
call fcn.004138a0
mov edi, 8
mov byte [esp + 0xbd8], 3
cmp dword [eax + 0x14], edi
jb 0x40c85c
mov eax, dword [eax]
push eax
mov ebx, str.IIF_LANGCOUNTRY
mov ecx, esi
call fcn.00416670
mov byte [esp + 0xbd8], 2
cmp dword [esp + 0x94], edi
jb 0x40c88a
mov eax, dword [esp + 0x80]
push eax
call fcn.0042ee58
add esp, 4
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x40c8e7
cmp byte [esp + 0x74], 0
jne 0x40c8b1
push 0x4493f8
mov ebx, str.IIF_ONBATTERYPOWER
mov ecx, esi
call fcn.00416670
mov al, byte [esp + 0x76]
cmp al, 0xff
je 0x40c8e7
movzx edx, al
push edx
lea eax, [esp + 0x3c8]
push 0x44b40c
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.00416670
cmp dword [esp + 0x34], edi
jb 0x40c8fa
mov edx, dword [esp + 0x20]
push edx
call fcn.0042ee58
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 0x40c923
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042ee58
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 0x40c945
mov eax, dword [esp + 0x58]
push eax
call fcn.0042ee58
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.0042ee49
mov esp, ebp
pop ebp
ret