Function at 0x408bba
Capabilities:
Check if file exists
Delete file
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], ebx
call fcn.0042f448
test eax, eax
je 0x408be8
mov eax, 0x80004001
jmp 0x40913b
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ac50
push ecx
mov ecx, dword [ebx + 0x10]
push 4
push 0x48f584
mov ecx, dword [ecx + 0x10]
call fcn.0043a719
mov dword [esp + 0x1c], eax
test eax, eax
je 0x409128
push ecx
push 3
push 0x48f5ec
mov ecx, ebx
call fcn.0043a719
push ecx
push 3
mov esi, 0x48f684
mov dword [esp + 0x54], eax
push esi
mov ecx, ebx
call fcn.0043a719
push ecx
push 4
push 0x48f600
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.0043a719
mov ecx, dword [ebx + 0x14]
mov edx, str.UpdateInfo_URLS
mov dword [esp + 0x14], eax
call fcn.0043a873
test eax, eax
je 0x409128
push 1
push 3
push esi
mov ecx, eax
call fcn.0043a80d
mov esi, eax
mov dword [esp + 0x38], esi
jmp 0x408dbd
push dword [ebp + 8]
push 0
push 0
push 0x948e
call edi
test eax, eax
jne 0x409121
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x408ca2
mov ecx, 0x491414
mov eax, dword [esi + 4]
test eax, eax
jne 0x408cae
mov eax, 0x491414
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.0043b487
mov edx, eax
lea ecx, [esp + 0x44]
call fcn.0043ab55
pop ecx
mov ecx, dword [esp + 0x44]
add ecx, 0xfffffff0
call fcn.0043c924
push dword [ebp + 8]
lea edx, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x48]
push ecx
push ecx
mov ecx, edi
call fcn.0044d576
add esp, 0x10
test eax, eax
je 0x408d2e
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x408cfd
mov ecx, 0x491414
push eax
push ecx
lea eax, [esp + 0x50]
push 0x48f6ac
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push str.DismUpdate
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x48]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x408d9c
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x50]
push 0x10
push eax
push 0x8003
mov edx, dword [esi - 0xc]
mov ecx, esi
call fcn.0044b2b2
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [eax + 4]
test edx, edx
jne 0x408d5b
mov edx, 0x491414
push ecx
lea ecx, [esp + 0x54]
call fcn.0043a6bc
pop ecx
test al, al
jne 0x408dcf
push edi
lea eax, [esp + 0x30]
push 0x48f6cc
push eax
call fcn.00449eea
add esp, 0xc
push dword [eax]
push str.DismUpdate
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, dword [esp + 0x38]
lea ecx, [edi - 0x10]
call fcn.0043c924
push ecx
push 3
push 0x48f684
mov ecx, esi
call fcn.0043a77e
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0x38], eax
test esi, esi
jne 0x408c7c
mov ebx, 0x80072ee7
jmp 0x40912d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x408ddf
mov eax, 0x491414
push eax
mov edx, 0x4ab30c
lea ecx, [esp + 0x14]
call fcn.0043ab55
mov eax, dword [esp + 0x18]
pop ecx
test eax, eax
je 0x408efa
mov eax, dword [eax + 4]
test eax, eax
jne 0x408e07
mov eax, 0x491414
mov edi, dword [sym.imp.msvcrt.dll_memcmp]
push 0xa
push str.PA30
push eax
call edi
add esp, 0xc
test eax, eax
je 0x408efa
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
jne 0x408e32
mov eax, 0x491414
push 8
push 0x48f664
push eax
call edi
add esp, 0xc
test eax, eax
je 0x40900f
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
jne 0x408e57
mov eax, 0x491414
push 0xa
push str.MSCF
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x409055
mov eax, dword [esi - 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
call fcn.00430d93
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.0041f38a
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax]
call fcn.0041f3b1
pop ecx
mov ecx, dword [esp + 0x1c]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
test ebx, ebx
jne 0x408ebb
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, ecx
jne 0x408ed2
mov ebx, 0x8007000b
lea ecx, [esp + 0x20]
call fcn.0041f343
lea ecx, [esp + 0x20]
call fcn.0043a534
jmp 0x409107
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x18]
push dword [eax]
push dword [eax + 4]
call fcn.0043a5ab
lea ecx, [esp + 0x20]
call fcn.0041f343
lea ecx, [esp + 0x20]
call fcn.0043a534
jmp 0x409007
mov eax, dword [esi - 0xc]
and dword [esp + 0x34], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x60]
push eax
sub esp, 0xc
mov dword [esp + 0x3c], esi
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x4ab264]
test eax, eax
jne 0x408f31
call fcn.0044bc4b
mov ebx, eax
jmp 0x409107
push ecx
push 4
push str.Base
mov ecx, ebx
call fcn.0043a719
test eax, eax
je 0x408f5f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
call fcn.0041f017
mov ebx, eax
test ebx, ebx
jne 0x409107
jmp 0x408f6e
and dword [esp + 0x28], 0
and dword [esp + 0x20], 0
and dword [esp + 0x24], 0
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x18]
call fcn.0043ac50
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x14]
push edi
call fcn.0043aa22
push edi
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0043a582
push dword [esp + 0x78]
push esi
sub esp, 0xc
lea esi, [esp + 0x40]
mov edi, esp
sub esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x40]
push 0
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x4ab260]
test eax, eax
je 0x408fc6
xor ebx, ebx
jmp 0x408fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408fdd
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebx, ebx
je 0x408fed
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
jmp 0x409102
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0043a66e
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
mov edx, dword [esi - 0xc]
lea eax, [esp + 0x50]
push 0x10
push eax
push 0x8003
mov ecx, esi
call fcn.0044b2b2
pop ecx
pop ecx
mov ecx, dword [ebx + 0x10]
push 3
push 0x48f5ec
call fcn.0043a719
test eax, eax
je 0x409055
mov edx, dword [eax + 4]
test edx, edx
jne 0x409046
mov edx, 0x491414
push ecx
lea ecx, [esp + 0x54]
call fcn.0043a6bc
pop ecx
test al, al
jne 0x40905f
mov ebx, 0x8007000b
jmp 0x409107
push str..del
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.0043ab55
pop ecx
mov ecx, dword [esp + 0x10]
call fcn.0044b4fa
mov edi, dword [esp + 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x4090ff
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push edi
push dword [esp + 0x18]
call ebx
test eax, eax
jne 0x4090d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4090d4
mov ebx, dword [esi - 0xc]
lea edx, [esp + 0x10]
push str..pending
lea ecx, [esp + 0x20]
call fcn.0043ab55
pop ecx
push ebx
mov edx, esi
mov ecx, dword [eax]
call fcn.0044b3a9
pop ecx
mov ecx, dword [esp + 0x1c]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x4090ff
push dword [esi - 0xc]
mov edx, esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0044b3a9
pop ecx
test eax, eax
jne 0x4090f4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
jmp 0x4090ff
push 1
push esi
push edi
call ebx
mov ebx, 0x80004005
lea ecx, [edi - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x40]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x40912d
mov ebx, 0x800704c7
jmp 0x40912d
mov ebx, 0x8007000b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0043c924
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret