Function at 0x406a75
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x407eac
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x13a8
call fcn.00407200
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call sub.MFC42.DLL_CString::CString_2
and dword [ebp - 4], 0
mov edi, 0x40a048
mov esi, 0x40b0ec
push edi
lea eax, [ebp - 0x18]
push esi
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebx + 0x189]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
push eax
call sub.MFC42.DLL_operator
push dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push edi
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
add ecx, 0x18d
push ecx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
push eax
call sub.MFC42.DLL_operator
push dword [eax]
call ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 0x53
pop eax
push eax
push eax
push 0x4d
push eax
push 0x20
push 0x45
push 0x4d
push 0x49
push 0x46
push 0x54
push 0x43
push 0x49
push eax
push 0x4d
lea eax, [ebp - 0x20]
push str._c_c_c_c_c_c_c_c_c_c_c_c_c_c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x40
push dword [ebp - 0x20]
push 0x40a944
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
mov ebx, 0x40b8c0
jne 0x406bf2
push ebx
lea eax, [ebp - 0x10]
push 0x40a108
push eax
call sub.MFC42.DLL_operator_2
push dword [eax]
lea eax, [ebp - 0x13b4]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push edi
lea eax, [ebp - 0x14]
push esi
push eax
call sub.MFC42.DLL_operator_1
push dword [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push dword [0x40b8c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push ebx
call fcn.0040711c
call fcn.0040162d
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x406c4e
push edi
lea eax, [ebp - 0x14]
push esi
push eax
call sub.MFC42.DLL_operator_1
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push dword [0x40b8c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push ebx
call fcn.0040711c
call fcn.0040162d
pop ecx
pop ecx
cmp dword [ebp - 0x28], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x406c97
cmp dword [ebp - 0x28], 6
je 0x406c97
push edi
lea eax, [ebp - 0x14]
push esi
push eax
call sub.MFC42.DLL_operator_1
push dword [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 6
push eax
call ebx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x1c], 0xffffffff
je 0x406cda
cmp dword [ebp - 0x1c], 6
je 0x406cda
push edi
lea eax, [ebp - 0x18]
push esi
push eax
call sub.MFC42.DLL_operator_1
push dword [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 6
push eax
call ebx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret