Function at 0x40c420
Capabilities:
Check if file exists
Get common file path
Get startup folder
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443041
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x4543e4]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push esi
push edi
mov eax, dword [0x4543e4]
xor eax, esp
push eax
lea eax, [esp + 0x3a8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov word [esp + 0x20], dx
mov dword [esp + 0x3b0], ecx
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x4c], ecx
mov word [esp + 0x3c], ax
lea edx, [esp + 0x194]
push edx
push ecx
push ecx
push 0x28
push ecx
mov byte [esp + 0x3c4], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.IntelLogs
lea eax, [esp + 0x198]
push eax
call edi
lea ecx, [esp + 0x194]
add esi, 8
push ecx
mov ebx, str.IIF_LOGFOLDER
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.00415d90
push 0x104
lea edx, [esp + 0x198]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x198]
call fcn.0041f9f0
mov eax, dword [esp + 0x40]
add esp, 4
cmp dword [esp + 0x50], 8
jae 0x40c519
lea eax, [esp + 0x3c]
push eax
mov ebx, str.IIF_SETUPVERSION
mov ecx, esi
call fcn.00415d90
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x40c535
lea eax, [esp + 0x20]
push eax
mov ebx, str.IIF_PACKAGEVERSION
mov ecx, esi
call fcn.00415d90
lea ecx, [esp + 0x194]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x194]
push edx
mov ebx, str.IIF_SETUPPATH
mov ecx, esi
call fcn.00415d90
lea eax, [esp + 0x194]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.IntelPackage_Cache
lea ecx, [esp + 0x198]
push ecx
call edi
mov eax, dword [esp + 0x18]
add eax, 0x34
cmp dword [eax + 0x14], 8
jb 0x40c598
mov eax, dword [eax]
push eax
lea edx, [esp + 0x198]
push edx
call edi
lea eax, [esp + 0x194]
push eax
mov ebx, str.IIF_CACHELOC
mov ecx, esi
call fcn.00415d90
push 0x11c
lea ecx, [esp + 0x78]
push 0
push ecx
call fcn.00432fb0
add esp, 0xc
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x78], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push ecx
lea edx, [esp + 0x19c]
push str._d._d
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x194]
push eax
mov ebx, str.IIF_OS
mov ecx, esi
call fcn.00415d90
movzx ecx, word [esp + 0x188]
push ecx
lea edx, [esp + 0x198]
push 0x44a480
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x194]
push eax
mov ebx, str.IIF_OSSERVICEPACK
mov ecx, esi
call fcn.00415d90
lea ecx, [esp + 0x10]
push ecx
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 0x40c675
push 0x4483f8
mov ebx, str.IIF_IS64
mov ecx, esi
call fcn.00415d90
mov ecx, str.v2.0.50727
call fcn.00420340
test al, al
je 0x40c694
push 0x4483f8
mov ebx, str.IIF_NET20
mov ecx, esi
call fcn.00415d90
mov ecx, str.v3.0
call fcn.00420340
test al, al
je 0x40c6b3
push 0x4483f8
mov ebx, str.IIF_NET30
mov ecx, esi
call fcn.00415d90
mov ecx, str.v3.5
call fcn.00420340
test al, al
je 0x40c6d2
push 0x4483f8
mov ebx, str.IIF_NET35
mov ecx, esi
call fcn.00415d90
mov ecx, str.v4Client
call fcn.00420340
test al, al
je 0x40c6f1
push 0x4483f8
mov ebx, str.IIF_NET40CLIENT
mov ecx, esi
call fcn.00415d90
mov ecx, str.v4Full
call fcn.00420340
test al, al
je 0x40c710
push 0x4483f8
mov ebx, str.IIF_NET40FULL
mov ecx, esi
call fcn.00415d90
mov ecx, str.v4.5Client
call fcn.00420340
test al, al
je 0x40c72f
push 0x4483f8
mov ebx, str.IIF_NET45CLIENT
mov ecx, esi
call fcn.00415d90
mov ecx, str.v4.5Full
call fcn.00420340
test al, al
je 0x40c74e
push 0x4483f8
mov ebx, str.IIF_NET45FULL
mov ecx, esi
call fcn.00415d90
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push str.SoftwareIntelICCInst
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40c7bc
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x198]
push ecx
push 0
push 0
push str.InstallPath
push edx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c7b1
lea eax, [esp + 0x194]
push eax
mov ebx, str.IIF_ICCINSTALLEDPATH
mov ecx, esi
call fcn.00415d90
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareIntel_
lea edx, [esp + 0x198]
push 0x104
push edx
call fcn.0042e563
mov eax, dword [esp + 0x24]
add eax, 0xc0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40c7e7
mov eax, dword [eax]
push eax
lea eax, [esp + 0x198]
push 0x104
push eax
call fcn.0042f219
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x20119
push 0
lea edx, [esp + 0x1a0]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ebx, eax
test ebx, ebx
je 0x40c864
lea eax, [esp + 0x10]
push eax
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 0x40c85c
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x1a0]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ebx, eax
test ebx, ebx
jne 0x40c90b
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x198]
push ecx
push 0
push 0
push str.InstallLocation
mov ebx, 0x208
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40c8c7
lea eax, [esp + 0x194]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c8a0
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
add esi, 0x6c
lea eax, [esp + 0x198]
call fcn.00403f50
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x198]
push ecx
push 0
push 0
push str.Version
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40c900
lea eax, [esp + 0x194]
push eax
mov ebx, str.IIF_INSTALLEDPACKAGEVERSION
mov ecx, esi
call fcn.00415d90
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esi]
cmp ebx, dword [esi + 4]
je 0x40c93c
cmp dword [ebx + 0x14], 8
jb 0x40c91c
mov eax, dword [ebx]
jmp 0x40c91e
mov eax, ebx
push str.IIF_INSTALLEDPACKAGEVERSION
push eax
call fcn.0042e750
add esp, 8
test eax, eax
je 0x40c9be
add ebx, 0x38
cmp ebx, dword [esi + 4]
jne 0x40c912
push str.IIF_CACHELOC
mov edi, esi
call fcn.00415ca0
push eax
lea edx, [esp + 0x198]
push 0x104
push edx
call fcn.0042e563
add esp, 0xc
push 0x448f60
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x194]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c9be
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x198]
call fcn.0041f9f0
add esp, 4
cmp dword [esp + 0x30], 0
je 0x40c9be
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x40c9b1
lea eax, [esp + 0x20]
push eax
mov ebx, str.IIF_INSTALLEDPACKAGEVERSION
mov ecx, esi
call fcn.00415d90
mov eax, dword [esp + 0x18]
add eax, 0x6c
cmp dword [eax + 0x14], 8
jb 0x40c9cd
mov eax, dword [eax]
push eax
mov ebx, str.IIF_INSTALLFOLDER
mov ecx, esi
call fcn.00415d90
lea ecx, [esp + 0x58]
mov edi, 0x456d68
call fcn.004139d0
mov edi, 8
mov byte [esp + 0x3b0], 2
cmp dword [eax + 0x14], edi
jb 0x40c9fc
mov eax, dword [eax]
push eax
mov ebx, str.IIF_LANGCOUNTRY
mov ecx, esi
call fcn.00415d90
cmp dword [esp + 0x6c], edi
jb 0x40ca1c
mov eax, dword [esp + 0x58]
push eax
call fcn.0042e4d8
add esp, 4
cmp dword [esp + 0x50], edi
jb 0x40ca2f
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042e4d8
add esp, 4
xor edx, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], dx
cmp dword [esp + 0x34], edi
jb 0x40ca59
mov eax, dword [esp + 0x20]
push eax
call fcn.0042e4d8
add esp, 4
mov ecx, dword [esp + 0x3a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret