Function at 0x41c790
Capabilities:
Check if file exists
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4412a6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x44f3d8]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x260], ebx
lea eax, [edi + 0xa88]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00423030
test al, al
je 0x41c801
mov eax, 0x200
mov dword [esp + 0x18], eax
jmp 0x41c805
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x14]
push ecx
or eax, 0xf003f
push eax
push ebx
push str.SoftwareIntelICCS
push 0x80000002
call esi
cmp eax, ebx
jne 0x41c858
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push str.ReferenceCount
push ecx
mov dword [esp + 0x34], 5
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x1c], ebx
jbe 0x41c858
mov edx, dword [esp + 0x20]
mov byte [edx + 0x3e], bl
push 0x4448b0
mov ecx, 0x4448f8
call fcn.00401fd0
mov edx, 0x444d38
call fcn.00401e60
test eax, eax
je 0x41c9bc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41c888
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push str.SoftwareIntelICCS
push 0x80000002
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call esi
cmp eax, ebx
jne 0x41c95f
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, str.InstallPath
mov byte [esp + 0x268], 1
call fcn.0041f230
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41c8eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ebx
mov esi, 8
je 0x41c943
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x41c908
lea eax, [esp + 0x2c]
push eax
push str.Install_folder_switch___p__not_valid_on_reinstalls._Using_original_location___s_
push 0x450638
mov eax, 1
call fcn.0041ee40
add esp, 0xc
mov edx, 0x444d38
call fcn.00402100
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x41c938
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x444d38
call fcn.00401fd0
mov byte [esp + 0x260], bl
cmp dword [esp + 0x40], esi
jb 0x41c9c1
mov eax, dword [esp + 0x2c]
push eax
call fcn.004286d5
add esp, 4
jmp 0x41c9c1
mov ecx, 0x444d38
call fcn.00401f00
mov esi, eax
call fcn.0041bf10
test al, al
jne 0x41c9bc
push 0x7f01
push 1
xor edx, edx
push 0x80
push 0x7da
lea ecx, [edx + 0x40]
call fcn.00423c90
push str.Switch___p__value_does_not_appear_to_be_a_valid_path._Exiting.
push 0x450638
mov eax, 2
call fcn.0041ee40
mov dword [0x45065c], 0xa010
add esp, 0x18
mov dword [edi + 0x10], 0x10
jmp 0x41cbac
mov esi, 8
cmp dword [edi + 0xaec], esi
jb 0x41c9d1
mov eax, dword [edi + 0xad8]
jmp 0x41c9d7
lea eax, [edi + 0xad8]
push eax
lea ecx, [esp + 0x48]
push 0x104
push ecx
call fcn.004299fa
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push str.setup.if2
lea edx, [esp + 0x48]
push edx
call esi
push edi
lea eax, [esp + 0x48]
call fcn.0041e480
test al, al
jne 0x41ca26
push str.Error_loading_action_file
push 0x450638
mov eax, 2
call fcn.0041ee40
add esp, 8
jmp 0x41cbac
push str.Action_file_parsed
push 0x450638
mov eax, 1
call fcn.0041ee40
add esp, 8
cmp dword [edi + 0xaec], 8
jb 0x41ca4e
mov eax, dword [edi + 0xad8]
jmp 0x41ca54
lea eax, [edi + 0xad8]
push eax
lea eax, [esp + 0x48]
push 0x104
push eax
call fcn.004299fa
add esp, 0xc
push str.custom.ini
lea ecx, [esp + 0x48]
push ecx
call esi
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ca9a
push edi
lea eax, [esp + 0x48]
call fcn.0041e480
test al, al
jne 0x41ca9a
push str.Error_loading_custom.ini
jmp 0x41ca0f
call fcn.00424be0
mov esi, dword [esp + 0x20]
push esi
call fcn.004080c0
cmp dword [esi + 0x38], ebx
jne 0x41cb9c
call fcn.00424af0
mov eax, dword [0x451c30]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41cad4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push str.SoftwareIntelICCS
push 0x80000002
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41cb70
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push str.ReferenceCount
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
push edx
push str.Reference_count_is__d
push 0x450638
xor eax, eax
call fcn.0041ee40
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
add eax, 1
push 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 4
push ebx
push str.ReferenceCount
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41cb6c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov edx, 0x44762c
call fcn.00401e60
test eax, eax
je 0x41cb9c
push 0x4448b0
mov ecx, 0x44762c
call fcn.00401fd0
push 0x4448b0
mov ecx, 0x4448f8
call fcn.00401fd0
mov edx, dword [esi + 0x38]
sub dword [0x450658], 1
mov dword [0x45065c], edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41cbbb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00426d9a
mov esp, ebp
pop ebp
ret