Function at 0x1000137a
Capabilities:
Copy file

Disassembly:
jmp 0x1001b990
push 0xffffffffffffffff
push 0x10022361
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [esp + 0x148]
mov edx, dword [esp + 0x144]
push eax
push edx
mov dword [esp + 0x144], 1
call fcn.1000163b
test al, al
je 0x1001bc21
mov al, byte [esp + 0x14c]
test al, al
je 0x1001bbc2
push 0x5c
lea ecx, [esp + 0x14c]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jle 0x1001bc21
mov ecx, dword [esp + 0x148]
lea edx, [esp + 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x150]
call sub.MFC42.DLL_CString::Right
lea eax, [esp + 0xc]
mov byte [esp + 0x13c], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
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 + 0x160], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x24
lea eax, [esp + 0x148]
lea ecx, [esp]
push eax
call fcn.1001f28a
lea ecx, [esp]
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x148]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x1001bb14
mov edx, dword [esp]
mov eax, dword [esp + 0x148]
push edx
push eax
push str.DoCopy___Rename____szDesFile:_s__szBackFile:_s
call fcn.10001672
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x154]
add esp, 0xc
push ecx
push edx
call sub.MFC42.DLL_CFile::Rename
jmp 0x1001bb2e
mov eax, dword [esp]
mov ecx, dword [esp + 0x148]
push eax
push ecx
push str.DoCopy___Rename____
call fcn.10001672
add esp, 0xc
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0x144]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1001bb69
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x144]
push ecx
push edx
push str.DoCopy___bRename____CopyFile__s__s_
call fcn.10001672
add esp, 0xc
jmp 0x1001bb8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x144]
push eax
mov eax, dword [esp + 0x14c]
push eax
push ecx
push str.DoCopy__bRename___CopyFile__s__s__
call fcn.10001672
add esp, 0x10
lea ecx, [esp]
mov byte [esp + 0x13c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x13c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString
jmp 0x1001bc21
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0x144]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1001bbfd
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x144]
push ecx
push edx
push str.DoCopy___CopyFile__s__s_
call fcn.10001672
add esp, 0xc
jmp 0x1001bc21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x144]
push eax
mov eax, dword [esp + 0x14c]
push eax
push ecx
push str.DoCopy___CopyFile__s__s__
call fcn.10001672
add esp, 0x10
lea ecx, [esp + 0x144]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x148]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
add esp, 0x140
ret 0xc