Function at 0x407a14
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d9cac
call fcn.004d0500
sub esp, 0x98
mov eax, dword [0x52d320]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x88], esi
call dword [0x4ea6a8]
mov eax, dword [0x4ea6dc]
push dword [eax]
xor edi, edi
push 0x5c
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call dword [0x4ea744]
mov ecx, dword [0x4ea6dc]
cmp eax, dword [ecx]
je 0x407a72
push eax
lea ecx, [ebp - 0x48]
call dword [0x4ea740]
push esi
mov esi, dword [0x4eaadc]
call esi
cmp eax, 1
jne 0x407ab9
lea ecx, [ebp - 0x48]
call dword [0x4ea6a4]
push eax
call esi
cmp eax, 1
jne 0x407ab9
push 0xa
push ebx
push dword [ebp - 0x88]
call dword [0x4ea368]
cmp eax, 1
jne 0x407aac
xor esi, esi
jmp 0x407d2b
call dword [0x4ea2d8]
mov esi, eax
jmp 0x407d2b
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x88]
mov dword [ebp - 0xa0], edi
call fcn.0040756b
cmp eax, edi
pop ecx
pop ecx
jne 0x407ab2
push edi
push edi
lea ecx, [ebp - 0x64]
call dword [0x4ea73c]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call dword [0x4ea6a4]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push eax
push edi
push dword [ebp - 0x88]
call fcn.00407549
add esp, 0xc
cmp eax, edi
je 0x407b16
mov esi, eax
jmp 0x407d1e
push str..backup
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00407770
add esp, 0xc
push 0xb
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x64]
call dword [0x4ea6a4]
push eax
call dword [0x4ea368]
test eax, eax
jne 0x407b57
call dword [0x4ea2d8]
jmp 0x407b82
push edi
lea eax, [ebp - 0x84]
push eax
push 0x4eb6a4
push dword [ebp - 0x88]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], edi
call fcn.004086df
add esp, 0x10
cmp eax, edi
je 0x407b89
mov esi, eax
jmp 0x407d11
push edi
lea eax, [ebp - 0x8c]
push eax
push 0x4eb69c
push ebx
call fcn.004086df
add esp, 0x10
push dword [ebp - 0x84]
mov esi, eax
cmp esi, edi
je 0x407bb6
call fcn.0040752f
pop ecx
jmp 0x407d11
call fcn.004074f9
cmp edx, edi
pop ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
jl 0x407ccd
jg 0x407bea
cmp eax, edi
jb 0x407ccd
jmp 0x407bea
xor edi, edi
push edi
push 0x1000
lea ecx, [ebp - 0x2c]
call dword [0x4ea738]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call dword [0x4ea4e0]
lea ecx, [ebp - 0x2c]
mov ebx, eax
call dword [0x4ea704]
push edi
push eax
push ebx
push dword [ebp - 0x84]
call fcn.004074d1
mov edi, edx
add esp, 0x10
test edi, edi
mov esi, eax
jl 0x407cbe
jg 0x407c38
test esi, esi
jbe 0x407cbe
push edi
push esi
push ebx
push dword [ebp - 0x8c]
call fcn.0040788b
add esp, 0x10
cmp eax, esi
jne 0x407c92
cmp edx, edi
jne 0x407c92
add dword [ebp - 0x94], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
adc dword [ebp - 0x90], edx
call dword [0x4ea4dc]
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x98]
jl 0x407be8
jg 0x407ccb
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x94], eax
jbe 0x407be8
jmp 0x407ccb
push dword [ebp - 0x84]
call fcn.0040752f
push dword [ebp - 0x8c]
call fcn.0040752f
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [0x4ea4dc]
mov esi, 0x40000003
jmp 0x407d11
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [0x4ea4dc]
xor edi, edi
push dword [ebp - 0x84]
mov esi, dword [sym.imp.XLFSIO.dll_long_int___stdcall_XLFS_CloseFile_void__]
call esi
cmp eax, edi
jne 0x407b82
push dword [ebp - 0x8c]
call esi
cmp eax, edi
jne 0x407b82
push dword [ebp - 0x88]
call dword [sym.imp.XLFSIO.dll_long_int___stdcall_XLFS_DeleteFile_wchar_t_const__]
lea ecx, [ebp - 0x80]
call dword [0x4ea6a4]
push eax
call dword [0x4ea364]
xor esi, esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call dword [0x4ea4f8]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call dword [0x4ea4f8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [0x4ea4f8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0557
leave
ret