Function at 0x405560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x548
push ebx
mov ebx, dword [esp + 0x550]
push ebp
push esi
test ebx, ebx
push edi
mov ebp, ecx
jne 0x405589
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0x548
ret 4
push str.CMSIUpdatePlugIn::InstallMSI___n
push 0x444698
call fcn.0041309c
mov al, byte [0x4541f8]
mov ecx, 0x1f
mov byte [esp + 0x98], al
xor eax, eax
lea edi, [esp + 0x99]
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call sym.HPZwis01.exe_unsigned_int___cdecl_IsNT_void_
test eax, eax
je 0x4055fe
call fcn.0041a782
test eax, eax
jne 0x4055f0
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 4
lea edx, [esp + 0x90]
mov edi, str.wisWin2K_XP_
jmp 0x405617
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x405af8
lea edx, [esp + 0x90]
mov edi, str.wiswin9x_
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 + 0x90]
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 esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x4541f8]
mov ecx, edx
and ecx, 3
mov byte [esp + 0x10], al
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x11]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x43d83c
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 + 0x10]
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 edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43d838
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x43d440
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43d440
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
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 edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea edx, [esp + 0x10]
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 edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x90]
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 + 0x90]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x405ad1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or ecx, 0xffffffff
lea edi, [esp + 0x90]
xor eax, eax
lea edx, [esp + 0x318]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x318]
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 + 0x318]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
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]
lea eax, [esp + 0x318]
mov ecx, ebp
push eax
and ecx, 3
push str.Launching__s_n
push 1
rep movsb byte es:[edi], byte [esi]
push 0x444698
call fcn.00413026
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x338]
push 1
push ecx
call fcn.0041a8ef
add esp, 0x28
mov ebp, eax
push ebp
push str.Process_returned__d_n
push 1
push 0x444698
call fcn.00413026
mov dl, byte [0x4541f8]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call fcn.0041a694
mov edi, 0x43d70c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x4541f8]
mov ecx, edx
and ecx, 3
mov byte [esp + 0x214], al
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
push 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x218]
lea edx, [esp + 0x114]
stosw word es:[edi], ax
push ecx
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4059e5
push ebx
push str.MSIExec_not_found_in_temp_path__s_after_running_instmsi.exe_n
push 8
push 0x444698
call fcn.00413026
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x548
ret 4
mov edi, ebx
or ecx, 0xffffffff
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
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x110]
push ecx
call fcn.0041a694
mov edi, str.msi.dll
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x4541f8]
mov ecx, edx
and ecx, 3
mov byte [esp + 0x214], al
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
push 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x218]
lea edx, [esp + 0x114]
stosw word es:[edi], ax
push ecx
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405ac2
push ebx
push str.MSI.dll_not_found_in_temp_path__s_after_running_instmsi.exe_n
push 8
push 0x444698
call fcn.00413026
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x548
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x548
ret 4
push 0x10
push str.Unsuccessful_Installation
push str.We_could_not_find_instmsi.exe.
push 0
mov ecx, ebp
call fcn.004028e0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x548
ret 4
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 4