Function at 0x45a940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d55e
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4ae44c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov byte [eax], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45a9a0
mov ecx, dword [0x4848d0]
mov eax, str.MSI.dll
mov dword [edi], ecx
mov edx, eax
jmp 0x45a9c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a9c0
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x45a9d6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [ebp - 0x220]
push edx
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x218]
xor esi, esi
push ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
call fcn.00415ee0
add esp, 0xc
test eax, eax
je 0x45abc1
mov eax, dword [ebp - 0x220]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x224]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea ecx, [ebp - 0x278]
call fcn.00463620
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x250]
call fcn.00463a60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx + 8]
cmp eax, 5
jge 0x45ab39
lea edx, [ebp - 0x250]
push edx
call fcn.0045a7f0
push 1
push 1
push 1
push 1
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x278]
call fcn.00464260
mov byte [ebp - 4], 2
mov edx, dword [eax]
push 0x4850a0
push edx
push str.Installed_Windows_Installer_Version_is__
push 0x484c3c
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 1
push 1
push 1
push 1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x250]
call fcn.00464260
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push 0x4850a0
push ecx
push str.Required_Windows_Installer_Version_is__
push 0x484c3c
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x278]
call fcn.00463c90
test eax, eax
je 0x45ab7b
mov eax, dword [ebp - 0x228]
mov byte [eax], 0
jmp 0x45ab9c
jne 0x45ab74
mov eax, dword [ecx + 0xc]
cmp eax, 2
jne 0x45ab4a
cmp dword [ecx + 0x10], esi
je 0x45ab4c
cmp eax, eax
jge 0x45ab5d
lea eax, [ebp - 0x250]
push eax
call fcn.0045a780
jmp 0x45aa7c
push str.Server_2003_with_a_service_pack_does_not_require_an_upgrade
push 0x484d84
call fcn.00459000
push eax
call fcn.0045a050
jmp 0x45ab99
push str.Windows_Vista_and_higher_do_not_require_an_upgrade
jmp 0x45ab62
push str.Required_version_of_Windows_Installer_was_not_found___scheduled_for_installation
push 0x484d84
call fcn.00459000
push eax
call fcn.0045a050
mov ecx, dword [ebp - 0x228]
mov byte [ecx], 1
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.00463b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00463b60
mov al, 1
jmp 0x45abc3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret 4