Function at 0x4095a0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0xa60
lea ebp, [esp - 4]
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0xa60], eax
push 0x28
mov eax, 0x4aec14
call fcn.004562d8
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x44a]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp + 0x448], di
call fcn.00456900
push esi
lea eax, [ebp + 0x652]
push edi
push eax
mov word [ebp + 0x650], di
call fcn.00456900
add esp, 0x18
call fcn.00405df2
mov ecx, eax
call fcn.0040ca55
push eax
lea eax, [ebp + 0x448]
push eax
call fcn.004568d5
push str.MiNiNews.exe
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp + 0x650]
push 0x4b70c8
push eax
call fcn.004567da
add esp, 0x18
lea eax, [ebp + 0x650]
add ebx, 4
push eax
mov ecx, ebx
call fcn.00401810
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp]
push eax
call fcn.00409320
push 0x4de180
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.004076a4
test eax, eax
je 0x40967c
push 0xffffffffffffffff
push edi
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00401db0
cmp dword [ebx + 0x18], 8
jb 0x409687
mov eax, dword [ebx + 4]
jmp 0x40968a
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409805
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.004091c8
push edi
push 0x4de260
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.00404020
cmp eax, 0xffffffff
je 0x4097fa
push esi
lea eax, [ebp + 0x85a]
push edi
push eax
mov word [ebp + 0x858], di
call fcn.00456900
push esi
lea eax, [ebp + 0x242]
push edi
push eax
mov word [ebp + 0x240], di
call fcn.00456900
push esi
lea eax, [ebp + 0x3a]
push edi
push eax
mov word [ebp + 0x38], di
call fcn.00456900
add esp, 0x24
lea eax, [ebp + 0x240]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40971a
lea eax, [ebp + 0x20]
lea ecx, [ebp + 0x38]
push ecx
push eax
call fcn.0040e9db
lea eax, [ebp + 0x240]
push eax
lea eax, [ebp + 0x858]
push eax
call fcn.004568d5
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x858]
push eax
call fcn.004568ab
add esp, 0x18
lea eax, [ebp + 0x858]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409768
lea eax, [ebp + 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x18]
call fcn.00401420
lea eax, [ebp + 0x240]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401640
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004014c0
push edi
push 1
lea ecx, [ebp - 0x34]
movzx esi, al
mov byte [ebp - 4], 2
call fcn.00401840
cmp esi, edi
je 0x4097ee
push str.MiNiNews.exe
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp + 0x650]
push 0x4b70c8
push eax
call fcn.004567da
lea eax, [ebp + 0x650]
push eax
lea eax, [ebp + 0x858]
push eax
call fcn.0040ea47
add esp, 0x18
lea eax, [ebp + 0x650]
push eax
mov ecx, ebx
call fcn.00401810
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004014b0
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.00401840
push edi
push 1
lea ecx, [ebp]
call fcn.00401840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa60]
xor ecx, ebp
call fcn.004562c9
add ebp, 0xa64
leave
ret