Function at 0x417260
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 4], 0
call fcn.004178c0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042ec56
push str.Setup.iss
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ecx
call edi
cmp eax, 0xffffffff
je 0x417554
test al, 0x10
jne 0x417554
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0042ebf6
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0042ec56
push 0x445248
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x24]
push edx
call edi
cmp eax, 0xffffffff
je 0x417319
test al, 0x10
jne 0x417319
mov eax, 1
jmp 0x41731b
xor eax, eax
test al, al
mov byte [esi + 4], al
je 0x417535
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0042ec56
push str.Setup.ini
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [str.AppInfo]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [0x445238]
mov dword [ebp - 0x30], eax
push edx
push 0
lea eax, [ebp - 0x30]
push str.KBytes
push eax
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esi + 0xc]
push 0x20
mov dword [esi + 8], eax
push edx
push 0x449060
lea eax, [ebp - 0x30]
push str.Version
push eax
call edi
mov ecx, dword [ebp - 0x1c]
lea ebx, [esi + 0x30]
push ecx
push 0x40
push ebx
push 0x449060
lea edx, [ebp - 0x30]
push str.CLSID
push edx
call edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0042ec56
push str.Setup.iss
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0042ec02
push str._AskDestPath_0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x13c]
push 0x104
push ecx
push 0x449060
push str.szPath
push edx
call edi
mov al, byte [ebp - 0x13c]
test al, al
jne 0x417445
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp + 0xb]
push str.Fail_to_get_install_path_from_ISS_file:__s__s
push edx
call fcn.0042bb40
mov al, byte [eax]
add esp, 0x10
lea ecx, [ebp - 0x16]
mov byte [ebp - 0x16], al
push 0x43c758
push ecx
call sub.MSVCRT.dll__CxxThrowException
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x38], edi
lea edx, [ebp + 8]
mov byte [ebp - 4], 6
push edx
push 1
push ebx
push str.SoftWareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x417474
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x240]
push eax
lea edx, [ebp + 8]
push ecx
push edx
push ebx
push str.ProgramFilesDir
push edi
mov dword [ebp - 0x34], 0x104
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x240]
add esi, 0x2c
mov bl, 7
push ecx
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0042ec02
push 0x444e98
mov ecx, esi
call sub.MFC42.DLL_CString::operator
push str.C:Program_Files_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp + 8]
push eax
push edx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0042ebf6
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0042ebf6
test edi, edi
je 0x417511
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0042ebf6
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042ebf6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0042ebf6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0042ebf6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
jmp 0x41753c