Function at 0x40a540
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b8f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], esi
call sub.MFC42.DLL_CException::CException
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_2
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], vtable.CFileException.0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0xffffffff
call sub.MFC42.DLL_CString::operator_1
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x190]
push ebx
push eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x190]
push ecx
call fcn.0040a810
mov edx, dword [esi]
add esp, 4
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x190]
push eax
push 0x1012
push ecx
mov ecx, esi
call dword [edx + 0x8c]
mov edi, eax
test edi, edi
mov dword [ebp - 0x2c], edi
jne 0x40a61a
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xf100
lea eax, [ebp - 0x24]
push 1
push eax
push ebx
call fcn.00401010
add esp, 0x10
mov dword [ebp - 0x24], vtable.CFileException.0
mov dword [ebp - 4], 3
jmp 0x40a7eb
push 0
push 0x1000
push 2
push edi
lea ecx, [ebp - 0x8c]
call fcn.00416f00
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], 0
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov edx, dword [esi]
lea eax, [ebp - 0x8c]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call dword [edx + 0xb8]
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CArchive::Close
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
call dword [edx + 0x90]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
push 0
lea eax, [ebp - 0x190]
push ebx
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x190]
test eax, eax
push ecx
jne 0x40a737
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
push ebx
lea edx, [ebp + 8]
push 0xbc3
push edx
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::FormatMessageA
mov eax, dword [ebp + 8]
push 0
push 1
push eax
call fcn.0040a340
add esp, 0x18
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00416f90
mov dword [ebp - 0x24], vtable.CFileException.0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
mov eax, 0xbc3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00416f90
mov dword [ebp - 0x24], vtable.CFileException.0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4