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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5f0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov dword [ebp - 0x10], ecx
mov ecx, 0x51c712
call fcn.004c108d
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.00418560
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00405540
lea ecx, [ebp - 0x84]
call fcn.004038c0
mov ecx, dword [ebp - 0x10]
call fcn.004170c0
mov ecx, dword [ebp - 0x10]
call fcn.00418760
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
movzx eax, byte [edx + 6]
test eax, eax
je 0x41a768
push 0x4ede4c
lea ecx, [ebp - 0x20]
call fcn.004073f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
push 0x4ede5c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, 4
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00408230
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.00408190
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00407d20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00407d20
lea ecx, [ebp - 0x1c]
call fcn.00408170
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.00407390
mov ecx, dword [ebp - 0x10]
call fcn.00417de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407d20
jmp 0x41a9d2
push str.GInstallerPkg
lea ecx, [ebp - 0x24]
call fcn.004073f0
mov dword [ebp - 4], 5
lea eax, [ebp - 0x24]
push eax
push 0x4ede70
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
add edx, 4
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00408230
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.00408190
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.00407d20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x24]
call fcn.00407d20
push 0x4ede74
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00408230
add esp, 0xc
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
push eax
call fcn.0040d240
add esp, 4
mov byte [ebp - 4], 0xb
push 0x4ede80
lea ecx, [ebp - 0x28]
push ecx
push 0x4ede8c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, 4
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00408230
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.00408190
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.00408230
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x5c]
call fcn.00407d20
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x60]
call fcn.00407d20
lea ecx, [ebp - 0x18]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.00408170
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a91a
push 0x4ede90
lea ecx, [ebp - 0x14]
call fcn.004084d0
lea ecx, [ebp - 0x14]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.00408170
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a91a
push 0x4ede9c
lea ecx, [ebp - 0x14]
call fcn.004084d0
lea ecx, [ebp - 0x14]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.00408170
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a91a
push str..exe
lea ecx, [ebp - 0x14]
call fcn.004084d0
lea ecx, [ebp - 0x14]
call fcn.00408170
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.00407390
mov ecx, dword [ebp - 0x10]
call fcn.00417990
lea ecx, [ebp - 0x14]
call fcn.00408170
push eax
lea ecx, [ebp - 0x18]
call fcn.00408170
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.00407390
mov ecx, dword [ebp - 0x10]
call fcn.00417c60
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.00407d20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.00407d20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407d20
jmp 0x41a9f2
mov ecx, dword [ebp - 0x10]
call fcn.00417f00
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