Function at 0x40e480
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7f62
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x4f4320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a4], ecx
mov word [ebp - 0x2ac], 0
push 0x206
push 0
lea eax, [ebp - 0x2aa]
push eax
call fcn.00479a10
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x2ac]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea edx, [ebp - 0x2ac]
push edx
call fcn.00405ae0
add esp, 8
mov word [eax + 2], 0
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x3d8]
call fcn.00401600
mov dword [ebp - 4], 0
push 0x4d01bc
lea ecx, [ebp - 0x3d8]
call fcn.00403690
push 0x48
call fcn.00459a00
add esp, 4
mov dword [ebp - 0x3e0], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3e0], 0
je 0x40e554
mov ecx, dword [ebp - 0x3e0]
call fcn.00456630
mov dword [ebp - 0x4a8], eax
jmp 0x40e55e
mov dword [ebp - 0x4a8], 0
mov ecx, dword [ebp - 0x4a8]
mov dword [ebp - 0x3dc], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3dc]
mov dword [ebp - 0xa0], edx
push 0
lea eax, [ebp - 0x3d8]
push eax
lea ecx, [ebp - 0x3fc]
push ecx
call fcn.00419d60
add esp, 8
mov dword [ebp - 0x4ac], eax
mov edx, dword [ebp - 0x4ac]
mov dword [ebp - 0x4b0], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4b0]
call fcn.004017e0
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.004574b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3fc]
call fcn.004015d0
mov ecx, dword [ebp - 0xa0]
call fcn.0040f0b0
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x3a0], 0
jne 0x40e5ff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d8]
call fcn.00401640
jmp 0x40eabb
push 0x4d01d4
lea ecx, [ebp - 0x39c]
call fcn.00457110
mov byte [ebp - 4], 3
push 0x4d01e0
lea ecx, [ebp - 0x3bc]
call fcn.00401600
mov byte [ebp - 4], 4
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.00414a40
add esp, 8
mov dword [ebp - 0x4b4], eax
mov edx, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b8], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4b8]
call fcn.004017e0
push eax
push 0x4d01e8
lea ecx, [ebp - 0x39c]
call fcn.00457240
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x418]
call fcn.004015d0
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov byte [ebp - 4], 6
push 0x4d01f0
lea ecx, [ebp - 0x2c]
call fcn.00403690
lea ecx, [ebp - 0x39c]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x41c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00403610
mov dword [ebp - 0x4bc], eax
mov ecx, dword [ebp - 0x4a4]
call fcn.0040eae0
lea eax, [ebp - 0x39c]
push eax
mov ecx, dword [ebp - 0x3a0]
call fcn.00455ba0
push 0x4d0200
lea ecx, [ebp - 0x2fc]
call fcn.00457110
mov byte [ebp - 4], 7
push 0x4d020c
lea ecx, [ebp - 0x3bc]
call fcn.00403660
lea ecx, [ebp - 0x3bc]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.00414a40
add esp, 8
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x4c4]
call fcn.004017e0
push eax
push 0x4d0214
lea ecx, [ebp - 0x2fc]
call fcn.00457240
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x438]
call fcn.004015d0
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403660
push 0x4d021c
lea ecx, [ebp - 0x2c]
call fcn.00403690
lea edx, [ebp - 0x2fc]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x43c], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.00403610
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4a4]
call fcn.0040eae0
lea ecx, [ebp - 0x2fc]
push ecx
mov ecx, dword [ebp - 0x3a0]
call fcn.00455ba0
push 0x4d022c
lea ecx, [ebp - 0x9c]
call fcn.00457110
mov byte [ebp - 4], 9
push 0x4d0238
lea ecx, [ebp - 0x3bc]
call fcn.00403660
lea edx, [ebp - 0x3bc]
push edx
lea eax, [ebp - 0x458]
push eax
call fcn.00414a40
add esp, 8
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4d0], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x4d0]
call fcn.004017e0
push eax
push 0x4d0240
lea ecx, [ebp - 0x9c]
call fcn.00457240
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x458]
call fcn.004015d0
lea edx, [ebp - 0x2ac]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403660
push 0x4d0248
lea ecx, [ebp - 0x2c]
call fcn.00403690
lea eax, [ebp - 0x9c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x45c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00403610
mov dword [ebp - 0x4d4], eax
mov ecx, dword [ebp - 0x4a4]
call fcn.0040eae0
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x3a0]
call fcn.00455ba0
push str.SymbolList
lea ecx, [ebp - 0x34c]
call fcn.00457110
mov byte [ebp - 4], 0xb
push 0x4d0264
lea ecx, [ebp - 0x3bc]
call fcn.00403660
lea ecx, [ebp - 0x3bc]
push ecx
lea edx, [ebp - 0x478]
push edx
call fcn.00414a40
add esp, 8
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4dc], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4dc]
call fcn.004017e0
push eax
push str.name
lea ecx, [ebp - 0x34c]
call fcn.00457240
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x478]
call fcn.004015d0
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403660
push 0x4d0274
lea ecx, [ebp - 0x2c]
call fcn.00403690
lea edx, [ebp - 0x34c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x47c], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.00403610
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x4a4]
call fcn.0040eae0
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, dword [ebp - 0x3a0]
call fcn.00455ba0
lea edx, [ebp - 0x2ac]
push edx
lea ecx, [ebp - 0x48]
call fcn.00401600
mov byte [ebp - 4], 0xd
push str.Targe.xml
lea ecx, [ebp - 0x48]
call fcn.00403690
lea ecx, [ebp - 0x48]
call fcn.00401670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e99d
lea ecx, [ebp - 0x48]
call fcn.00401670
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x498]
push ecx
call fcn.00419d60
add esp, 8
mov dword [ebp - 0x4e4], eax
mov edx, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e8], edx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x4e8]
call fcn.004017e0
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.004568e0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x498]
call fcn.004015d0
cmp dword [ebp - 0xa0], 0
je 0x40ea46
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], ecx
cmp dword [ebp - 0x49c], 0
je 0x40ea32
push 1
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x49c]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x4ec], eax
jmp 0x40ea3c
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call fcn.00401640
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x34c]
call fcn.004571d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x9c]
call fcn.004571d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2fc]
call fcn.004571d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00401640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3bc]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x39c]
call fcn.004571d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d8]
call fcn.00401640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a020
mov esp, ebp
pop ebp
ret