Function at 0x40ba80
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 0x442afc
mov eax, dword fs:[0]
push eax
sub esp, 0xbc0
mov eax, dword [0x4563d4]
xor eax, esp
mov dword [esp + 0xbb8], eax
push ebx
push esi
push edi
mov eax, dword [0x4563d4]
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.0042e3d8
add esp, 8
test eax, eax
jne 0x40bb53
lea ecx, [esp + 0x1bc]
push str.System32
push ecx
call fcn.0042e3d8
add esp, 8
test eax, eax
je 0x40bb6b
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, 0x44b314
mov ecx, esi
call fcn.00413c30
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.00417240
mov eax, dword [esp + 0x40]
add esp, 4
cmp dword [esp + 0x50], 8
jae 0x40bbd0
lea eax, [esp + 0x3c]
push eax
mov ebx, str.IIF_SETUPVERSION
mov ecx, esi
call fcn.00413c30
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40bbec
lea eax, [esp + 0x58]
push eax
mov ebx, str.IIF_PACKAGEVERSION
mov ecx, esi
call fcn.00413c30
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.00413c30
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 0x40bc4f
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.00413c30
push 0x11c
lea ecx, [esp + 0xa0]
push 0
push ecx
call fcn.004367d0
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.00417390
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
add esp, 4
mov ecx, ebx
cmp edi, 8
jae 0x40bd10
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bd3d
test dx, dx
je 0x40bd39
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bd3d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bd17
xor eax, eax
jmp 0x40bd42
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bd55
lea eax, [esp + 0x3c4]
push eax
mov ebx, str.IIF_OS
jmp 0x40bd7a
mov eax, ebx
cmp edi, 8
jae 0x40bd60
lea eax, [esp + 0x20]
push eax
mov ebx, str.IIF_OS
mov ecx, esi
call fcn.00413c30
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_DEBUG_REPORTEDVERSION
mov ecx, esi
call fcn.00413c30
movzx edx, word [esp + 0x1b0]
push edx
lea eax, [esp + 0x3c8]
push 0x44b514
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.00413c30
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 0x40bde6
push 0x448a3c
mov ebx, str.IIF_IS64
mov ecx, esi
call fcn.00413c30
mov edi, str.v2.0.50727
call fcn.00417d50
test al, al
je 0x40be05
push 0x448a3c
mov ebx, str.IIF_NET20
mov ecx, esi
call fcn.00413c30
mov edi, str.v3.0
call fcn.00417d50
test al, al
je 0x40be24
push 0x448a3c
mov ebx, str.IIF_NET30
mov ecx, esi
call fcn.00413c30
mov edi, str.v3.5
call fcn.00417d50
test al, al
je 0x40be43
push 0x448a3c
mov ebx, str.IIF_NET35
mov ecx, esi
call fcn.00413c30
mov edi, str.v4Client
call fcn.00417d50
test al, al
je 0x40be62
push 0x448a3c
mov ebx, str.IIF_NET40CLIENT
mov ecx, esi
call fcn.00413c30
mov edi, str.v4Full
call fcn.00417d50
test al, al
je 0x40be81
push 0x448a3c
mov ebx, str.IIF_NET40FULL
mov ecx, esi
call fcn.00413c30
mov edi, str.v4.5Client
call fcn.00417d50
test al, al
je 0x40bea0
push 0x448a3c
mov ebx, str.IIF_NET45CLIENT
mov ecx, esi
call fcn.00413c30
mov edi, str.v4.5Full
call fcn.00417d50
test al, al
je 0x40bebf
push 0x448a3c
mov ebx, str.IIF_NET45FULL
mov ecx, esi
call fcn.00413c30
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 0x40bf2b
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 0x40bf20
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_ICCINSTALLEDPATH
mov ecx, esi
call fcn.00413c30
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.0042dc9b
mov eax, dword [esp + 0x24]
add eax, 0x30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40bf54
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c0]
push 0x104
push ecx
call fcn.0042dcfe
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 0x40c030
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 0x40bfec
lea eax, [esp + 0x3c4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bfc5
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
add esi, 0x68
lea eax, [esp + 0x3c8]
call fcn.004047c0
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 0x40c025
lea ecx, [esp + 0x3c4]
push ecx
mov ebx, str.IIF_INSTALLEDPACKAGEVERSION
mov ecx, esi
call fcn.00413c30
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 0x40c03f
mov eax, dword [eax]
push eax
mov ebx, str.IIF_INSTALLFOLDER
mov ecx, esi
call fcn.00413c30
lea ecx, [esp + 0x80]
mov edi, 0x458d28
call fcn.00418810
mov edi, 8
mov byte [esp + 0xbd8], 3
cmp dword [eax + 0x14], edi
jb 0x40c071
mov eax, dword [eax]
push eax
mov ebx, str.IIF_LANGCOUNTRY
mov ecx, esi
call fcn.00413c30
mov byte [esp + 0xbd8], 2
cmp dword [esp + 0x94], edi
jb 0x40c09f
mov eax, dword [esp + 0x80]
push eax
call fcn.0042d224
add esp, 4
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x40c0fc
cmp byte [esp + 0x74], 0
jne 0x40c0c6
push 0x448a3c
mov ebx, str.IIF_ONBATTERYPOWER
mov ecx, esi
call fcn.00413c30
mov al, byte [esp + 0x76]
cmp al, 0xff
je 0x40c0fc
movzx edx, al
push edx
lea eax, [esp + 0x3c8]
push 0x44b514
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.00413c30
cmp dword [esp + 0x34], edi
jb 0x40c10f
mov edx, dword [esp + 0x20]
push edx
call fcn.0042d224
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 0x40c138
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042d224
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 0x40c15a
mov eax, dword [esp + 0x58]
push eax
call fcn.0042d224
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.0042d215
mov esp, ebp
pop ebp
ret