Function at 0x408d3f
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], edi
call fcn.0042ffc6
test eax, eax
je 0x408d6b
mov eax, 0x80004001
jmp 0x40941d
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x14]
call fcn.0043bbe8
push ecx
mov ecx, dword [edi + 0x10]
push 4
push 0x49164c
mov ecx, dword [ecx + 0x10]
call fcn.0043b6e0
mov dword [esp + 0x20], eax
test eax, eax
je 0x40940a
push ecx
push 3
push 0x4916b4
mov ecx, edi
call fcn.0043b6e0
push ecx
push 4
push 0x4916c8
mov ecx, edi
mov dword [esp + 0x50], eax
call fcn.0043b6e0
mov ecx, dword [edi + 0x14]
mov edx, str.UpdateInfo_URLS
mov dword [esp + 0x1c], eax
call fcn.0043b82e
mov esi, eax
test esi, esi
je 0x40940a
push ecx
push 3
push 0x49176c
mov ecx, edi
mov ebx, 0x80072ee7
call fcn.0043b6e0
mov dword [esp + 0x14], eax
test eax, eax
je 0x408f8e
push 1
push 3
push 0x49176c
mov ecx, esi
call fcn.0043b7cc
mov dword [esp + 0x18], eax
test eax, eax
je 0x408f8e
mov esi, dword [esp + 0x10]
push dword [ebp + 8]
mov edi, dword [esp + 0x44]
push 0
push 0
push 0x948e
call edi
test eax, eax
jne 0x408f84
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x408e40
mov ecx, 0x4934ec
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
test eax, eax
jne 0x408e50
mov eax, 0x4934ec
push ecx
push eax
lea ecx, [esp + 0x50]
call fcn.0043c2b8
mov edx, eax
lea ecx, [esp + 0x50]
call fcn.0043baed
pop ecx
mov ecx, dword [esp + 0x48]
add ecx, 0xfffffff0
call fcn.0043d912
push dword [ebp + 8]
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x54]
push ecx
push ecx
mov ecx, edi
call fcn.0044e5b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408ed8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x408ea1
mov ecx, 0x4934ec
push esi
push ecx
lea eax, [esp + 0x38]
push 0x491774
push eax
call fcn.0044af44
add esp, 0x10
push dword [eax]
push str.DismUpdate
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x30]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ebx, esi
mov esi, dword [esp + 0x10]
jmp 0x408f42
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x50]
push 0x10
push eax
push 0x8003
mov edx, dword [esi - 0xc]
mov ecx, esi
call fcn.0044c2f1
mov eax, dword [esp + 0x50]
add esp, 0xc
mov edx, dword [eax + 4]
test edx, edx
jne 0x408f05
mov edx, 0x4934ec
push ecx
lea ecx, [esp + 0x54]
call fcn.0043b683
pop ecx
test al, al
jne 0x408f77
push edi
lea eax, [esp + 0x38]
push 0x491794
push eax
call fcn.0044af44
add esp, 0xc
push dword [eax]
push str.DismUpdate
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [edi - 0x10]
mov edi, ebx
call fcn.0043d912
push ecx
mov ecx, dword [esp + 0x1c]
push 3
push 0x49176c
call fcn.0043b741
mov dword [esp + 0x18], eax
test eax, eax
jne 0x408e16
test edi, edi
je 0x4090c4
mov edi, dword [esp + 0x2c]
jmp 0x408f92
lea ecx, [edi - 0x10]
call fcn.0043d912
jmp 0x4090c4
mov ebx, 0x800704c7
jmp 0x409413
mov esi, dword [esp + 0x10]
push 1
push 3
push 0x49176c
mov ecx, edi
call fcn.0043b7cc
mov edi, eax
test edi, edi
je 0x4090bc
push dword [ebp + 8]
mov esi, dword [esp + 0x44]
push 0
push 0
push 0x948e
call esi
test eax, eax
jne 0x4091c3
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x408fd2
mov ecx, 0x4934ec
push dword [ebp + 8]
lea edx, [esp + 0x14]
push esi
push ecx
push ecx
call fcn.0044e5b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409029
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x408ff6
mov ecx, 0x4934ec
push esi
push ecx
lea eax, [esp + 0x3c]
push 0x491774
push eax
call fcn.0044af44
add esp, 0x10
push dword [eax]
push str.DismUpdate
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.0043d912
mov ebx, esi
jmp 0x40909f
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x50]
push 0x10
push eax
push 0x8003
mov edx, dword [esi - 0xc]
mov ecx, esi
call fcn.0044c2f1
mov eax, dword [esp + 0x50]
add esp, 0xc
mov edx, dword [eax + 4]
test edx, edx
jne 0x409056
mov edx, 0x4934ec
push ecx
lea ecx, [esp + 0x54]
call fcn.0043b683
pop ecx
test al, al
jne 0x4090c8
mov eax, dword [edi + 4]
test eax, eax
jne 0x409071
mov eax, 0x4934ec
push eax
lea eax, [esp + 0x34]
push 0x491794
push eax
invalid