Function at 0x405130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x548
push ebx
push ebp
push esi
push edi
push str.CMSIUpdatePlugIn::InstallMSI___n
mov ebx, ecx
push 0x444698
call fcn.0041309c
mov eax, dword [ebx + 0x28c]
add esp, 8
xor edi, edi
test eax, eax
je 0x405171
call sym.HPZwis01.exe_unsigned_int___cdecl_IsMe_void_
test eax, eax
jne 0x405171
mov eax, dword [ebx + 0x28c]
test eax, eax
jne 0x405524
call sym.HPZwis01.exe_unsigned_int___cdecl_IsNT4_void_
test eax, eax
jne 0x4051c2
call sym.HPZwis01.exe_unsigned_int___cdecl_IsW2K_void_
test eax, eax
jne 0x4051c2
call sym.HPZwis01.exe_unsigned_int___cdecl_IsXP_void_
test eax, eax
jne 0x4051c2
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x4051a0
lea edx, [esp + 0x10]
mov edi, str.wiswin9x_
jmp 0x4051f6
push str.could_not_match_the_OS_type_n
push 0x444698
call fcn.00413226
add esp, 8
mov eax, 0x47e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x548
ret
call fcn.0041a782
test eax, eax
jne 0x4051ed
push str.IsWinNTUserAdmin___failed_n
push 0x444698
call fcn.00413226
add esp, 8
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x548
ret
lea edx, [esp + 0x10]
mov edi, str.wisWin2K_XP_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.instmsi.exe
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x4541f8]
mov ecx, ebp
and ecx, 3
mov byte [esp + 0x90], al
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x91]
lea edx, [esp + 0x90]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str._c:_msiinst__delayrebootq_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43d448
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x90]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._Q:A
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
push str.Searching_for__s_...__n
push 0x444698
rep movsb byte es:[edi], byte [esi]
call fcn.0041309c
add esp, 0xc
lea ecx, [esp + 0x418]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x405531
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or ecx, 0xffffffff
lea edi, [esp + 0x10]
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x214]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43d448
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x214]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x90]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dl, byte [0x4541f8]
mov ecx, ebx
and ecx, 3
mov byte [esp + 0x314], dl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x315]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or esi, 0xffffffff
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x4054ce
lea eax, [esp + 0x314]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
lea edi, [esp + 0x314]
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43d2b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43d70c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x110]
mov ecx, ebx
push eax
and ecx, 3
push str.We_are_running_on_WinME_without_the_fixME_option.__Trying_to_hold_open_msiexec.exe___s_n
push 0x20
rep movsb byte es:[edi], byte [esi]
push 0x444698
call fcn.00413026
add esp, 0x10
lea ecx, [esp + 0x110]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea edx, [esp + 0x214]
push edx
push str.Launching__s_n
push 1
push 0x444698
call fcn.00413026
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x234]
push 1
push eax
call fcn.0041a8ef
add esp, 0x28
mov edi, eax
push edi
push str.Process_returned__d_n
push 1
push 0x444698
call fcn.00413026
add esp, 0x10
cmp esi, 0xffffffff
je 0x405524
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x548
ret
push 0x10
push str.Unsuccessful_Installation
push str.We_could_not_find_instmsi.exe.
push 0
mov ecx, ebx
call fcn.004028e0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x548
ret