Function at 0x40b610
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5827be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x84], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [esp + 0x8c]
push 0
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x90], 1
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40b9d0
push 0x5fd02c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 2
push ecx
lea ecx, [esp + 0x6c]
xor edi, edi
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40bdfa
push 0x5fd02c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x1c]
push 0x3b
push 1
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x94], 3
call sub.MFC42.DLL_AfxExtractSubString
test eax, eax
mov dword [esp + 0x44], eax
je 0x40bde5
push 0x5fd02c
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_4
push 0x5fd02c
lea ecx, [esp + 0x38]
mov byte [esp + 0x88], 4
call sub.MFC42.DLL_CString::CString_4
push 0x5fd02c
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], 5
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x1c]
push 0x3b
push 2
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x94], 6
call sub.MFC42.DLL_AfxExtractSubString
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x40]
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x3a0]
push eax
push ecx
lea edx, [esp + 0x4c]
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add esp, 0x20
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 7
call sub.MFC42.DLL_CString::CString_5
mov edx, dword [esp + 0x1c]
push 0x3b
push edi
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x94], 8
call sub.MFC42.DLL_AfxExtractSubString
mov ecx, dword [esp + 0x1c]
push 0x3b
push 3
lea edx, [esp + 0x30]
push ecx
push edx
call sub.MFC42.DLL_AfxExtractSubString
push 0x2e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
cmp edi, 0xffffffff
je 0x40bd90
lea eax, [esp + 0x4c]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_5
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 9
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x48]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x4c]
push ebx
push ebp
push ecx
add eax, 0x76c
push edx
push esi
push eax
lea eax, [esp + 0x38]
push str.__02d_02d_02d_02d_02d_02d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea ecx, [esp + 0x40]
push edi
push 0
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Mid_1
lea edx, [esp + 0x40]
push str..log
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x90], 0xa
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 0xb
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 0xc
call sub.MFC42.DLL_CString::CString_5
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
push ecx
mov byte [esp + 0x88], 0xd
mov eax, dword [edx + 0x398]
lea ecx, [esp + 0x28]
push eax
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x54]
push 0
push 0x1001
push edx
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x40b9ff
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 0xb
call fcn.0054ed50
lea ecx, [esp + 0x3c]
mov byte [esp + 0x84], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0x84], 0
call fcn.0054ed50
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40be3e
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x54]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x5e2398
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CStdioFile::WriteString
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x5e2398
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
push 0
lea edx, [esp + 0x18]
mov bl, 0xe
push 0x5e2394
push edx
mov byte [esp + 0x90], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x54]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x18
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x84], 0xf
je 0x40ba90
mov ecx, eax
call fcn.005030e0
mov esi, eax
jmp 0x40ba92
xor esi, esi
push 0x14
mov byte [esp + 0x88], bl
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x84], 0x10
je 0x40babe
mov ecx, eax
call fcn.004f0900
mov ebp, eax
jmp 0x40bac0
xor ebp, ebp
mov ecx, ebp
mov byte [esp + 0x84], bl
call fcn.004f13e0
test ebp, ebp
mov edi, eax
je 0x40badf
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
xor ebp, ebp
push 0x5e238c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Waiting_
call sub.MFC42.DLL_CString::CString_4
push ecx
mov byte [esp + 0x8c], 0x11
mov ecx, esp
mov dword [esp + 0x50], esp
push str.AskStatus_Waiting
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x58]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x94], bl
call fcn.0052b140
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push 0x5e227c
push edx
mov byte [esp + 0x90], 0x12
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x50]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Operating_
call sub.MFC42.DLL_CString::CString_4
push ecx
mov byte [esp + 0x8c], 0x13
mov ecx, esp
mov dword [esp + 0x50], esp
push str.AskStatus_Operating
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x58]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x94], bl
call fcn.0052b140
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push 0x5e227c
push edx
mov byte [esp + 0x90], 0x14
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x50]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Error_
call sub.MFC42.DLL_CString::CString_4
push ecx
mov byte [esp + 0x8c], 0x15
mov ecx, esp
mov dword [esp + 0x50], esp
push str.AskStatus_Error
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x58]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x94], bl
call fcn.0052b140
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push 0x5e227c
push edx
mov byte [esp + 0x90], 0x16
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x50]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Finish_
call sub.MFC42.DLL_CString::CString_4
push ecx
mov byte [esp + 0x8c], 0x17
mov ecx, esp
mov dword [esp + 0x50], esp
push str.AskStatus_Finish
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x58]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x94], bl
call fcn.0052b140
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push 0x5e227c
push edx
mov byte [esp + 0x90], 0x18
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x50]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x5e2398
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CStdioFile::WriteString
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push ebx
add eax, 0x76c
push edi
push eax
lea ecx, [esp + 0x2c]
push str._02d__02d__02d_
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0x14
lea ecx, [esp + 0x54]
push edx
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CStdioFile::Close
test esi, esi
je 0x40bd1d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
test ebp, ebp
je 0x40bd2a
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 0xb
call fcn.0054ed50
lea ecx, [esp + 0x3c]
mov byte [esp + 0x84], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0x84], 0
call fcn.0054ed50
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret 4