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

Disassembly:
push ebp
lea ecx, [edx + 8]
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
lea ebx, [edx + 0x10]
sub esp, 0x4e4
mov dword [ebp - 0x4b0], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 8], ecx
lea ecx, [edx + 0x18]
mov dword [ebp - 0x4b4], edx
mov dword [ebp - 0x4b8], ebx
mov dword [edx + 0x14], ebx
mov dword [edx + 0x10], ebx
mov dword [ebp - 0x4bc], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x18], ecx
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
test byte [section..data], 8
jne 0x4048c0
mov eax, dword [ebp - 0x4b4]
xor edi, edi
call sym._create_temp_directory
mov dword [ebp - 0x4c0], eax
test eax, eax
je 0x4045f2
mov edx, eax
mov eax, esi
call sym._extract_cabinet
test eax, eax
jne 0x404600
test byte [section..data], 2
jne 0x404930
xor edi, edi
mov eax, dword [ebp - 0x4b4]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov esi, dword [eax + 8]
mov edx, dword [esi]
cmp dword [ebp - 0x4b0], esi
je 0x404581
mov dword [ebp - 0x4c0], edi
mov edi, esi
mov esi, edx
lea esi, [esi]
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [edi + 8]
call sym._delete_directory.isra.0
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebx
mov dword [esp], edi
mov edi, esi
call ebx
mov esi, dword [esi]
cmp dword [ebp - 0x4b0], edi
jne 0x404550
mov edi, dword [ebp - 0x4c0]
mov eax, dword [ebp - 0x4b4]
mov ebx, dword [ebp - 0x4b8]
mov eax, dword [eax + 0x10]
mov esi, dword [eax]
cmp dword [ebp - 0x4b8], eax
je 0x4045ba
lea esi, [esi]
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [esp], eax
call sym._free_assembly
mov eax, esi
mov esi, dword [esi]
cmp ebx, eax
jne 0x4045a0
mov eax, dword [ebp - 0x4b4]
mov ebx, dword [ebp - 0x4bc]
mov eax, dword [eax + 0x18]
mov esi, dword [eax]
cmp dword [ebp - 0x4bc], eax
je 0x4045f2
lea esi, [esi]
nop
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [esp], eax
call sym._free_dependency
mov eax, esi
mov esi, dword [esi]
cmp ebx, eax
jne 0x4045d8
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4c0]
mov edx, str..cab
call sym._path_combine
mov ebx, eax
test eax, eax
je 0x404527
lea eax, [ebp - 0x4ac]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x4d0], eax
call eax
sub esp, 8
mov edi, eax
mov dword [ebp - 0x4d4], eax
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
cmp edi, 0xffffffff
je 0x404732
mov dword [ebp - 0x4c8], ebx
mov esi, dword [sym.imp.kernel32.dll_FindNextFileW]
nop
test byte [ebp - 0x4ac], 0x10
jne 0x404700
lea eax, [ebp - 0x480]
mov dword [esp + 4], str.WSUSSCAN.cab
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x404700
mov eax, dword [ebp - 0x4c0]
lea edx, [ebp - 0x480]
call sym._path_combine
mov dword [ebp - 0x4c4], eax
test eax, eax
je 0x404700
test byte [section..data], 8
jne 0x404c50
mov eax, dword [ebp - 0x4b4]
call sym._create_temp_directory
mov dword [ebp - 0x4cc], eax
test eax, eax
je 0x404bd0
mov edx, eax
mov eax, dword [ebp - 0x4c4]
call sym._extract_cabinet
test eax, eax
jne 0x4049b8
test byte [section..data], 2
jne 0x404b5f
mov eax, dword [ebp - 0x4c4]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c8]
call eax
lea esi, [esi]
lea eax, [ebp - 0x4ac]
mov dword [esp], edi
mov dword [esp + 4], eax
call esi
sub esp, 8
test eax, eax
jne 0x404660
mov eax, dword [ebp - 0x4d4]
mov ebx, dword [ebp - 0x4c8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x4c0]
mov edx, str..xml
call sym._path_combine
mov esi, eax
test eax, eax
je 0x404527
lea eax, [ebp - 0x4ac]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4d0]
call eax
sub esp, 8
mov edi, eax
mov dword [ebp - 0x4c8], eax
mov dword [esp], esi
call ebx
cmp edi, 0xffffffff
je 0x404806
mov dword [ebp - 0x4c4], ebx
mov esi, dword [sym.imp.kernel32.dll_FindNextFileW]
lea esi, [esi]
lea esi, [esi]
test byte [ebp - 0x4ac], 0x10
jne 0x4047de
mov eax, dword [ebp - 0x4c0]
lea edx, [ebp - 0x480]
call sym._path_combine
mov ebx, eax
test eax, eax
je 0x4047de
mov eax, dword [ebp - 0x4bc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._load_update
test eax, eax
jne 0x4047d3
test byte [section..data], 2
jne 0x404de5
mov dword [esp], ebx
mov eax, dword [ebp - 0x4c4]
call eax
lea eax, [ebp - 0x4ac]
mov dword [esp], edi
mov dword [esp + 4], eax
call esi
sub esp, 8
test eax, eax
jne 0x404790
mov eax, dword [ebp - 0x4c8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
test byte [section..data], 8
jne 0x404cc1
mov eax, dword [ebp - 0x4b4]
mov ebx, dword [ebp - 0x4bc]
cmp ebx, dword [eax + 0x18]
je 0x404ec9
mov eax, dword [ebp - 0x4b4]
mov edx, dword [ebp - 0x4b8]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0x4b8], eax
je 0x40484d
nop
mov dword [eax + 8], 0
mov eax, dword [eax]
cmp edx, eax
jne 0x404840
mov eax, dword [ebp - 0x4b4]
mov edx, 1
call sym._install_updates
test eax, eax
je 0x404e48
mov eax, dword [ebp - 0x4b4]
mov edx, dword [ebp - 0x4b8]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0x4b8], eax
je 0x40488d
lea esi, [esi]
mov dword [eax + 8], 0
mov eax, dword [eax]
cmp edx, eax
jne 0x404880
mov eax, dword [ebp - 0x4b4]
xor edx, edx
call sym._install_updates
test eax, eax
je 0x404e93
test byte [section..data], 8
jne 0x404dbc
mov edi, 1
jmp 0x404529
test esi, esi
je 0x404cb7
mov eax, esi
shr eax, 0x10
je 0x4049a0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x4048fe
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Processing_msu_file__s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4044ee
test esi, esi
je 0x40509a
mov eax, esi
shr eax, 0x10
je 0x404e7e
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x40496e
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_extract__s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x404527
mov dword [esp + 4], esi
mov dword [esp], 0x409008
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4048fe
mov eax, dword [ebp - 0x4cc]
mov edx, str._manifest_.cix.xml
call sym._path_combine
mov ebx, eax
test eax, eax
je 0x404bd0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x404a3d
test byte [section..data], 1
je 0x404a3d
mov dword [esp + 0xc], str.Cabinet_uses_proprietary_msdelta_file_compression_which_is_not__yet__supported_n
mov dword [esp + 8], str.load_assemblies_from_cab
mov dword [esp + 4], 0x408000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
test byte [section..data], 1
je 0x404a3d
mov dword [esp + 0xc], str.Installation_of_msu_file_will_most_likely_fail_n
mov dword [esp + 8], str.load_assemblies_from_cab
mov dword [esp + 4], 0x408000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov dword [esp], ebx
mov ebx, dword [ebp - 0x4c8]
call ebx
mov eax, dword [ebp - 0x4cc]
mov edx, 0x40906e
call sym._path_combine
mov edx, eax
test eax, eax
je 0x404bd0
lea eax, [ebp - 0x25c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], edx
call eax
mov edx, dword [ebp - 0x4dc]
sub esp, 8
mov dword [ebp - 0x4d8], eax
mov dword [esp], edx
call ebx
mov ebx, dword [ebp - 0x4d8]
cmp ebx, 0xffffffff
je 0x4046eb
mov dword [ebp - 0x4dc], edi
lea esi, [esi]
lea esi, [esi]
test byte [ebp - 0x25c], 0x10
jne 0x404b28
mov edx, str..manifest
lea eax, [ebp - 0x230]
call sym._str_ends_with
test eax, eax
jne 0x404ae1
mov edx, str..mum
lea eax, [ebp - 0x230]
call sym._str_ends_with
test eax, eax
je 0x404b28
mov eax, dword [ebp - 0x4cc]
lea edx, [ebp - 0x230]
call sym._path_combine
mov edi, eax
test eax, eax
je 0x404b28
mov dword [esp], eax
call sym._load_manifest
test eax, eax
je 0x404b1d
mov edx, dword [ebp - 0x4b8]
mov dword [eax], edx
mov edx, dword [ebp - 0x4b4]
mov ecx, dword [edx + 0x14]
mov dword [eax + 4], ecx
mov dword [ecx], eax
mov dword [edx + 0x14], eax
mov dword [esp], edi
mov eax, dword [ebp - 0x4c8]
call eax
lea eax, [ebp - 0x25c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
sub esp, 8
test eax, eax
jne 0x404ab0
mov eax, dword [ebp - 0x4d8]
mov edi, dword [ebp - 0x4dc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x4046eb
mov eax, dword [ebp - 0x4c4]
shr eax, 0x10
je 0x405154
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x4c4]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x404b9f
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_extract__s_n
mov dword [esp + 8], str.load_assemblies_from_cab
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
lea esi, [esi]
nop
test byte [section..data], 2
je 0x4046eb
mov eax, dword [ebp - 0x4c4]
shr eax, 0x10
je 0x4050f4
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x4c4]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x404c1d
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_load_all_manifests_from__s__ignoring_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4046eb
shr eax, 0x10
je 0x404da1
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x4c4]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x404c8a
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Processing_cab_file__s_n
mov dword [esp + 8], str.load_assemblies_from_cab
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4046b0
mov eax, 0x40900e
jmp 0x4048fe
mov dword [esp], section..data
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x404813
movzx eax, byte [section..data]
test al, 8
jne 0x40510f
mov edx, dword [ebp - 0x4b4]
mov esi, dword [edx + 0x18]
cmp dword [ebp - 0x4bc], esi
je 0x404f31
mov ebx, dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, dword [ebp - 0x4bc]
jmp 0x404d1a
mov esi, dword [esi]
cmp edi, esi
je 0x404f09
mov edx, eax
and edx, 8
je 0x404d10
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4050e0
mov eax, ecx
shr eax, 0x10
je 0x4050b6
mov dword [esp + 4], 0xffffffff
mov dword [esp], ecx
mov dword [ebp - 0x4c0], ecx
call ebx
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x404d68
mov eax, dword [ebp - 0x4c0]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.___s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [section..data]
mov edx, eax
and edx, 8
jmp 0x404d10
mov eax, dword [ebp - 0x4c4]
mov dword [esp], 0x409008
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x404c8a
mov dword [esp + 0xc], str.Installation_finished_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4048af
mov eax, ebx
shr eax, 0x10
je 0x4050cb
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x404e1b
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_load_all_updates_from__s__ignoring_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4047d3
test byte [section..data], 2
je 0x404527
mov dword [esp + 0xc], str.Dry_run_failed__aborting_installation_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x404527
mov dword [esp + 4], esi
mov dword [esp], 0x409008
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40496e
test byte [section..data], 2
je 0x404527
mov dword [esp + 0xc], str.Installation_failed_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x404527
test byte [section..data], 2
je 0x404527
mov dword [esp + 0xc], str.No_updates_found__probably_incompatible_MSU_file_format__n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x404527
movzx edx, byte [section..data]
and edx, 8
test dl, dl
je 0x404f31
mov dword [esp + 0xc], str.List_of_manifests__with_dependencies_:_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x4b4]
mov esi, dword [eax + 0x10]
cmp dword [ebp - 0x4b8], esi
je 0x404813
mov edi, esi
lea esi, [esi]
nop
test byte [section..data], 8
jne 0x405030
mov ebx, dword [edi + 0x28]
lea esi, [edi + 0x28]
cmp esi, ebx
je 0x404ff8
mov dword [ebp - 0x4c0], edi
jmp 0x404f7e
mov ebx, dword [ebx]
cmp ebx, esi
je 0x404ff2
test byte [section..data], 8
je 0x404f78
mov edi, dword [ebx + 8]
test edi, edi
je 0x405028
mov eax, edi
shr eax, 0x10
je 0x405010
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x404fc4
mov edx, 0xffffffff
mov eax, edi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._______s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ebx, dword [ebx]
cmp ebx, esi
jne 0x404f7e
mov edi, dword [ebp - 0x4c0]
mov edi, dword [edi]
cmp dword [ebp - 0x4b8], edi
jne 0x404f50
jmp 0x404813
mov dword [esp + 4], edi
mov dword [esp], 0x409008
call sym._wine_dbg_sprintf.constprop.0
jmp 0x404fc4
mov eax, 0x40900e
jmp 0x404fc4
mov ebx, dword [edi + 0x14]
test ebx, ebx
je 0x4050ea
mov eax, ebx
shr eax, 0x10
je 0x4050a4
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x40506d
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.___s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x404f5d
mov eax, 0x40900e
jmp 0x40496e
mov dword [esp + 4], ebx
mov dword [esp], 0x409008
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40506d
mov dword [esp + 4], ecx
mov dword [esp], 0x409008
call sym._wine_dbg_sprintf.constprop.0
jmp 0x404d68
mov dword [esp + 4], ebx
mov dword [esp], 0x409008
call sym._wine_dbg_sprintf.constprop.0
jmp 0x404e1b
mov eax, 0x40900e
jmp 0x404d68
mov eax, 0x40900e
jmp 0x40506d
mov eax, dword [ebp - 0x4c4]
mov dword [esp], 0x409008
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x404c1d
mov dword [esp + 0xc], str.List_of_updates:_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x4b4]
mov esi, dword [eax + 0x18]
cmp dword [ebp - 0x4bc], esi
je 0x404eff
movzx eax, byte [section..data]
jmp 0x404cf9
mov eax, dword [ebp - 0x4c4]
mov dword [esp], 0x409008
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x404b9f