Function at 0x403950
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e4bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00403550
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00403550
mov byte [ebp - 4], 5
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
push eax
push str._s.bak
lea ecx, [ebp - 0x58]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push str._s.new
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403a5d
cmp dword [ebp + 0xc], 0
jne 0x403a5d
mov dword [ebp - 0x60], 2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004035b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004035b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x60]
jmp 0x403e54
push 0
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x30]
call fcn.00403620
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x403ad6
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004035b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004035b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x64]
jmp 0x403e54
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 1
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00403620
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x403b61
lea ecx, [ebp - 0x30]
call fcn.00403850
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004035b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004035b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x68]
jmp 0x403e54
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
call fcn.004037d0
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x403c6c
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::Find_2
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0xffffffff
jne 0x403c67
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00403710
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x403c24
lea ecx, [ebp - 0x30]
call fcn.00403850
lea ecx, [ebp - 0x54]
call fcn.004038d0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004035b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004035b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x6c]
jmp 0x403e54
push 0x43b210
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x70]
push eax
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::operator_2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
jmp 0x403b61
lea ecx, [ebp - 0x54]
call fcn.00403850
lea ecx, [ebp - 0x30]
call fcn.00403850
push 0
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x403cf4
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x74], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004035b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004035b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x74]
jmp 0x403e54
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x403d6c
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004035b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004035b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x78]
jmp 0x403e54
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x7c], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004035b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004035b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x7c]
jmp 0x403e54
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret