Function at 0x42a77a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push str.TOC.xml
push esi
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x42a7e3
sub esi, ebx
lea ecx, [esp + 0x18]
sar esi, 1
push esi
push ebx
call fcn.0043b8e8
push dword [ebp + 0xc]
push 0x479fd6
push dword [eax]
push edi
call sym.Dismx86.exe_DismAddPackage
mov ecx, dword [esp + 0x18]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
mov eax, esi
jmp 0x42aeaf
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x24]
call fcn.0043bbe8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
test esi, esi
je 0x42a852
push 0x4939bc
push esi
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x42a852
push str..psf
sub esi, ebx
lea ecx, [esp + 0x34]
sar esi, 1
push esi
push ebx
call fcn.0043b8e8
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.0043baed
pop ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0043c5cb
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [esp + 0x30]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov edi, dword [esp + 0x20]
xor esi, esi
cmp dword [edi - 0xc], esi
je 0x42ae91
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42ae91
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x18]
call fcn.0043bbe8
lea ecx, [esp + 0x14]
call dword [sym.imp.CBSHost.dll_CbsCreateTempDirectory2]
mov ebx, eax
test ebx, ebx
jne 0x42adaa
mov eax, dword [ebp + 0xc]
push 4
push 0x493624
push dword [esp + 0x1c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0xa
mov dword [esp + 0x78], 0x479fd6
mov dword [esp + 0x7c], eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x42a8ca
add ecx, 8
push ecx
mov eax, esp
push ecx
push dword [esp + 0x34]
push str.expand___s___F:___s_
push eax
call fcn.0044af44
add esp, 0x10
xor dl, dl
xor ecx, ecx
call fcn.0044b9b6
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x42ad9e
lea ecx, [esp + 0xb8]
call fcn.00431b45
push str.express.psf.cix.xml
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0043baed
pop ecx
lea edx, [esp + 0xb8]
mov ecx, dword [eax]
call fcn.004335f7
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
test ebx, ebx
jne 0x42ad83
lea ecx, [esp + 0x34]
call fcn.0042a634
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x64]
push eax
push fcn.0042a743
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], esi
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x64], esi
push eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x6c], esi
push eax
push 0xc
pop edx
call fcn.00427623
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x42ad65
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
push 0x30
cdq
pop ebx
idiv ebx
test eax, eax
je 0x42ad1f
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], esi
call fcn.00430307
push 0
push 0x2000000
push 3
push 0
push 5
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x44], eax
cmp eax, 0xffffffff
jne 0x42a9e8
call fcn.0044cc8a
mov ebx, eax
lea ecx, [esp + 0x48]
call fcn.00430374
jmp 0x42ad65
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x20]
call fcn.0043bbe8
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
cdq
idiv ebx
lea ebx, [eax - 1]
mov dword [esp + 0x30], ebx
cmp ebx, 0xffffffff
je 0x42acec
and dword [esp + 0x60], esi
imul ebx, ebx, 0x30
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x64]
push eax
push 0
push 0
push 0x948e
call fcn.0042a743
test eax, eax
jne 0x42ae39
add ebx, dword [esp + 0x38]
lea edx, [esp + 0x14]
push ebx
lea ecx, [esp + 0x78]
mov dword [esp + 0x10], ebx
call fcn.00431d91
mov esi, dword [esp + 0x78]
pop ecx
mov ecx, esi
call fcn.0044c539
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x14]
call fcn.0043bbe8
lea ecx, [ebx + 4]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x42aaae
push 0
call fcn.0043b8a7
cmp ax, 0x40
jne 0x42aaa1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.0043c5cb
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
add eax, 2
push eax
call fcn.0043ca2b
jmp 0x42aaae
lea ecx, [ebx + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043c5cb
lea ecx, [ebx + 0x2c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x42ab76
push 0x49172c
call fcn.00432a00
test eax, eax
je 0x42ab76
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x60]
add ebx, ecx
mov eax, dword [esp + 0x10]
add ecx, 0xc00
inc dword [esp + 0x24]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push ebx
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
lea eax, [ebx + 0x400]
push edi
push 0x1f4
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebx + 0x7e8], eax
mov dword [ebx + 0x7ec], ecx
mov eax, dword [edx + 0x20]
mov dword [ebx + 0x7f0], eax
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebx + 0x7f4]
push esi
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [ebx + 0xbf4], eax
mov dword [ebx + 0xbf8], ecx
mov eax, dword [edx + 0x18]
mov dword [ebx + 0xbfc], eax
jmp 0x42acb7
mov ebx, dword [ebx + 0x20]
lea ecx, [esp + 0x1c]
push ebx
call fcn.0043b9dd
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
call fcn.0043b549
mov ebx, dword [esp + 0xc]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x7c], edx
xor edx, edx
push edx
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x7c]
push ecx
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x94]
push eax
push edx
push edx
push edx
push dword [esp + 0x64]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42ade8
mov eax, dword [esp + 0x88]
cmp eax, dword [ebx + 0x20]
jne 0x42adcd
push dword [esp + 0x2c]
lea ecx, [ebx + 0x1c]
push dword [esp + 0x24]
call fcn.00425821
test al, al
je 0x42adcd
xor eax, eax
push eax
push 0x2000080
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x42adbb
push 0
lea ecx, [esp + 0x90]
push ecx
push dword [esp + 0x34]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42adbb
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
and dword [esp + 0xa8], 0
and dword [esp + 0xac], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x18]
push 4
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x94]
push 0x28
push eax
lea eax, [esp + 0x90]
mov dword [esp + 0xb0], ecx
push eax
push dword [esp + 0x1c]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xa8], ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
lea ecx, [esp + 0xc]
call fcn.0043bb32
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esi - 0x10]
call fcn.0043d912
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
dec eax
sub ebx, 0x30
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ebx
cmp eax, 0xffffffff
jne 0x42aa1d
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x28]
push eax
push fcn.0042a743
push esi
call fcn.0041c7ea
mov ecx, dword [esp + 0x1c]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0x48]
call fcn.00430374
test ebx, ebx
jne 0x42ad65
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x14]
add dword [esp + 0x64], eax
lea ecx, [esp + 0x44]
push str.update.mum
mov dword [esp + 0x6c], 0x5a
call fcn.0043baed
pop ecx
lea ecx, [esp + 0x64]
push ecx
mov edx, dword [eax]
mov ecx, dword [esp + 0x2c]
push fcn.0042a743
call fcn.0041c311
mov ecx, dword [esp + 0x44]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0x54]
call fcn.004316fe
lea ecx, [esp + 0x38]
call fcn.004323dc
mov ecx, dword [esp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [esp + 0xf8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0xec]
call fcn.0043295e
mov ecx, dword [esp + 0x14]
xor edx, edx
inc edx
call fcn.0044d00c
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
jmp 0x42aea5
call fcn.0044cc8a
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.0043bb32
jmp 0x42ae0a
mov ecx, dword [esp + 0x10]
mov ebx, 0x80070017
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esi - 0x10]
call fcn.0043d912
jmp 0x42ae28
mov ebx, dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call ebx
push dword [esp + 0xc]
test eax, eax
jg 0x42adff
call ebx
mov ebx, eax
jmp 0x42ae0a
call ebx
movzx ebx, ax
or ebx, 0x80070000
mov ecx, dword [esp + 0x10]
add esi, 0xfffffff0
add ecx, 0xfffffff0
call fcn.0043d912
mov ecx, esi
call fcn.0043d912
test ebx, ebx
je 0x42ace8
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0043d912
jmp 0x42a9da
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0x48]
call fcn.00430374
lea ecx, [esp + 0x54]
call fcn.004316fe
lea ecx, [esp + 0x38]
call fcn.004323dc
mov ecx, dword [esp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [esp + 0xf8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0xec]
call fcn.0043295e
mov ebx, 0x800704c7
jmp 0x42adaa
push dword [ebp + 0xc]
push 0x479fd6
push ebx
push dword [esp + 0x34]
call sym.Dismx86.exe_DismAddPackage
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.0043d912
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8