Function at 0x40cf90
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 0x446bcc
mov eax, dword fs:[0]
push eax
sub esp, 0xbb0
mov eax, dword [0x45f4c8]
xor eax, esp
mov dword [esp + 0xba8], eax
push ebx
push esi
push edi
mov eax, dword [0x45f4c8]
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
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push eax
push 0
push 0
push 0x28
push 0
call ebx
lea eax, [esp + 0x1ac]
push str.system32
push eax
call fcn.0043062f
add esp, 8
test eax, eax
jne 0x40d06b
lea eax, [esp + 0x1ac]
push str.System32
push eax
call fcn.0043062f
add esp, 8
test eax, eax
je 0x40d083
push 0x104
lea eax, [esp + 0x1b0]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.IntelLogs
lea eax, [esp + 0x1b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1ac]
mov ecx, esi
push eax
push 0x453794
call fcn.00414810
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.00416390
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.00414810
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.00414810
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.00414810
lea eax, [esp + 0x1ac]
push eax
push 0
push 0
push 0x23
push 0
call ebx
push str.IntelPackage_Cache
lea eax, [esp + 0x1b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
add edi, 0x234
cmp dword [edi + 0x14], 8
jb 0x40d164
mov eax, dword [edi]
jmp 0x40d166
mov eax, edi
push eax
lea eax, [esp + 0x1b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1ac]
mov ecx, esi
push eax
push str.IIF_CACHELOC
call fcn.00414810
push 0x11c
lea eax, [esp + 0x90]
push 0
push eax
call fcn.00433da0
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 ebx
push str.kernel32.dll
lea eax, [esp + 0x1b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1ac]
call fcn.004164f0
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x20]
cmp ebx, 8
lea ecx, [esp + 0x3b4]
cmovae eax, dword [esp + 0x20]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40d256
test dx, dx
je 0x40d252
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40d256
add ecx, 4
add eax, 4
test dx, dx
jne 0x40d230
xor eax, eax
jmp 0x40d25b
sbb eax, eax
or eax, 1
mov ecx, esi
test eax, eax
jne 0x40d270
lea eax, [esp + 0x3b4]
push eax
push str.IIF_OS
jmp 0x40d296
cmp ebx, 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push str.IIF_OS
call fcn.00414810
lea eax, [esp + 0x3b4]
mov ecx, esi
push eax
push str.IIF_DEBUG_REPORTEDVERSION
call fcn.00414810
movzx eax, word [esp + 0x1a0]
push eax
lea eax, [esp + 0x3b8]
push 0x451c78
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.00414810
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 0x40d300
push 0x450c3c
push str.IIF_IS64
mov ecx, esi
call fcn.00414810
mov ecx, str.v2.0.50727
call fcn.00416e80
test al, al
je 0x40d31f
push 0x450c3c
push str.IIF_NET20
mov ecx, esi
call fcn.00414810
mov ecx, str.v3.0
call fcn.00416e80
test al, al
je 0x40d33e
push 0x450c3c
push str.IIF_NET30
mov ecx, esi
call fcn.00414810
mov ecx, str.v3.5
call fcn.00416e80
test al, al
je 0x40d35d
push 0x450c3c
push str.IIF_NET35
mov ecx, esi
call fcn.00414810
mov ecx, str.v4Client
call fcn.00416e80
test al, al
je 0x40d37c
push 0x450c3c
push str.IIF_NET40CLIENT
mov ecx, esi
call fcn.00414810
mov ecx, str.v4Full
call fcn.00416e80
test al, al
je 0x40d39b
push 0x450c3c
push str.IIF_NET40FULL
mov ecx, esi
call fcn.00414810
mov ecx, str.v4.5Client
call fcn.00416e80
test al, al
je 0x40d3ba
push 0x450c3c
push str.IIF_NET45CLIENT
mov ecx, esi
call fcn.00414810
mov ecx, str.v4.5Full
call fcn.00416e80
test al, al
je 0x40d3d9
push 0x450c3c
push str.IIF_NET45FULL
mov ecx, esi
call fcn.00414810
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 0x40d445
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 0x40d43b
lea eax, [esp + 0x3b4]
mov ecx, esi
push eax
push str.IIF_ICCINSTALLEDPATH
call fcn.00414810
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea eax, [esp + 0x1b0]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40d467
mov edi, dword [edi]
push edi
lea eax, [esp + 0x1b0]
push 0x104
push eax
call fcn.0043002d
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 0x40d559
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 0x40d50d
cmp word [esp + 0x3b4], ax
jne 0x40d4da
xor ecx, ecx
jmp 0x40d4f3
lea ecx, [esp + 0x3b4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d4e4
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.00404410
jmp 0x40d511
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 0x40d54d
lea eax, [esp + 0x3b4]
mov ecx, esi
push eax
push str.IIF_INSTALLEDPACKAGEVERSION
call fcn.00414810
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d55d
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x278], 8
lea eax, [edi + 0x264]
jb 0x40d56e
mov eax, dword [eax]
push eax
push str.IIF_INSTALLFOLDER
mov ecx, esi
call fcn.00414810
lea eax, [esp + 0x74]
mov ecx, 0x4621e0
push eax
call fcn.00419660
mov byte [esp + 0xbc8], 3
cmp dword [eax + 0x14], 8
jb 0x40d59a
mov eax, dword [eax]
push eax
push str.IIF_LANGCOUNTRY
mov ecx, esi
call fcn.00414810
mov byte [esp + 0xbc8], 2
cmp dword [esp + 0x88], 8
jb 0x40d5c5
push dword [esp + 0x74]
call fcn.00420070
add esp, 4
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x40d646
mov al, byte [esp + 0x69]
cmp al, 0x80
je 0x40d5e7
cmp al, 0xff
je 0x40d5e7
push 0x450c3c
jmp 0x40d5ec
push 0x450c00
push str.IIF_HASBATTERY
mov ecx, esi
call fcn.00414810
cmp byte [esp + 0x68], 0
jne 0x40d610
push 0x450c3c
push str.IIF_ONBATTERYPOWER
mov ecx, esi
call fcn.00414810
mov al, byte [esp + 0x6a]
cmp al, 0xff
je 0x40d646
movzx eax, al
push eax
lea eax, [esp + 0x3b8]
push 0x451c78
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.00414810
cmp dword [esp + 0x34], 8
jb 0x40d659
push dword [esp + 0x20]
call fcn.00420070
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 0x40d683
push dword [esp + 0x38]
call fcn.00420070
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 0x40d6ad
push dword [esp + 0x50]
call fcn.00420070
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.0042f51f
mov esp, ebp
pop ebp
ret