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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f61bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov dword [ebp - 0x10], ecx
mov ecx, 0x53683a
call fcn.004c6d76
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00419a00
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00405420
lea ecx, [ebp - 0x84]
call fcn.004037a0
mov ecx, dword [ebp - 0x10]
call fcn.00418560
mov ecx, dword [ebp - 0x10]
call fcn.00419bc0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
movzx eax, byte [edx + 6]
test eax, eax
je 0x41bba8
push 0x4fe3e8
lea ecx, [ebp - 0x20]
call fcn.00407810
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
push 0x4fe3f8
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, 4
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00408680
add esp, 0xc
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004085e0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00408170
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00408170
lea ecx, [ebp - 0x1c]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0x46d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.004077b0
mov ecx, dword [ebp - 0x10]
call fcn.00419280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00408170
jmp 0x41be12
push str.GInstallerPkg
lea ecx, [ebp - 0x24]
call fcn.00407810
mov dword [ebp - 4], 5
lea eax, [ebp - 0x24]
push eax
push 0x4fe40c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
add edx, 4
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00408680
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004085e0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.00408170
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x24]
call fcn.00408170
push 0x4fe410
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00408680
add esp, 0xc
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
push eax
call fcn.0040cdb0
add esp, 4
mov byte [ebp - 4], 0xb
push 0x4fe41c
lea ecx, [ebp - 0x28]
push ecx
push 0x4fe428
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, 4
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00408680
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004085e0
add esp, 0xc
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00408680
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x5c]
call fcn.00408170
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x60]
call fcn.00408170
lea ecx, [ebp - 0x18]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bd5a
push 0x4fe42c
lea ecx, [ebp - 0x14]
call fcn.00408920
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bd5a
push 0x4fe438
lea ecx, [ebp - 0x14]
call fcn.00408920
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bd5a
push 0x4fe444
lea ecx, [ebp - 0x14]
call fcn.00408920
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
lea edx, [ebp - 0x18]
push edx
call fcn.004077b0
mov ecx, dword [ebp - 0x10]
call fcn.00418e30
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
lea ecx, [ebp - 0x18]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push 0
push 0x46d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea eax, [ebp - 0x14]
push eax
call fcn.004077b0
mov ecx, dword [ebp - 0x10]
call fcn.00419100
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [edx + 8], 1
push 0
push 0
push 0x46c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.00408170
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.00408170
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408170
jmp 0x41be32
mov ecx, dword [ebp - 0x10]
call fcn.004193a0
push 0
push 0
push 0x46c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4