Function at 0x409970
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x40c5a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [esp + 0x24c]
mov edx, dword [esp + 0x248]
push eax
push edx
mov dword [esp + 0x248], 1
call fcn.00409890
test al, al
je 0x409c01
mov al, byte [esp + 0x250]
test al, al
je 0x409ba2
push 0x5c
lea ecx, [esp + 0x250]
call sub.MFC42u.DLL_CString::ReverseFind
test eax, eax
jle 0x409c01
mov ecx, dword [esp + 0x24c]
lea edx, [esp + 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x254]
call sub.MFC42u.DLL_CString::Right
lea eax, [esp + 0xc]
mov byte [esp + 0x240], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 8]
call fcn.00409f2c
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1a]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1a]
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x24]
push str.__d__d__d__d__d__d__s
push edx
mov byte [esp + 0x264], 3
call sub.MFC42u.DLL_CString::Format
add esp, 0x24
lea eax, [esp + 0x24c]
lea ecx, [esp]
push eax
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp]
mov byte [esp + 0x240], 4
call sub.MFC42u.DLL_CString::MakeLower
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::MakeLower
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::Replace
mov ecx, dword [esp + 0x24c]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.MFC42u.DLL_CFile::GetStatus
test eax, eax
je 0x409af4
mov edx, dword [esp]
mov eax, dword [esp + 0x24c]
push edx
push eax
push str.DoCopy___Rename____szDesFile:_s__szBackFile:_s
call fcn.00401770
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x258]
add esp, 0xc
push ecx
push edx
call sub.MFC42u.DLL_CFile::Rename
jmp 0x409b0e
mov eax, dword [esp]
mov ecx, dword [esp + 0x24c]
push eax
push ecx
push str.DoCopy___Rename____
call fcn.00401770
add esp, 0xc
mov edx, dword [esp + 0x24c]
mov eax, dword [esp + 0x248]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x409b49
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x248]
push ecx
push edx
push str.DoCopy___bRename____CopyFile__s__s_
call fcn.00401770
add esp, 0xc
jmp 0x409b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x248]
push eax
mov eax, dword [esp + 0x250]
push eax
push ecx
push str.DoCopy__bRename___CopyFile__s__s_
call fcn.00401770
add esp, 0x10
lea ecx, [esp]
mov byte [esp + 0x240], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x240], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x240], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x409c01
mov edx, dword [esp + 0x24c]
mov eax, dword [esp + 0x248]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x409bdd
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x248]
push ecx
push edx
push str.DoCopy___CopyFile__s__s_
call fcn.00401770
add esp, 0xc
jmp 0x409c01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x248]
push eax
mov eax, dword [esp + 0x250]
push eax
push ecx
push 0x415820
call fcn.00401770
add esp, 0x10
lea ecx, [esp + 0x248]
mov byte [esp + 0x240], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov dword [esp + 0x240], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
add esp, 0x244
ret 0xc