Function at 0x401f60
Capabilities:
Copy file
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x402688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 1
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4040c4
push eax
mov byte [esp + 0x54], 2
call esi
add esp, 8
test eax, eax
je 0x401fe3
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4040e8
push eax
call esi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401fe3
mov bl, 1
jmp 0x401fe5
xor bl, bl
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402005
push 0x4040c4
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4040c4
push eax
mov byte [esp + 0x54], 3
call esi
add esp, 8
test eax, eax
je 0x40205e
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4040e8
push eax
call esi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40205e
mov bl, 1
jmp 0x402060
xor bl, bl
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402080
push 0x4040c4
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
call fcn.00402412
lea ecx, [esp + 0x54]
push 0x4040e4
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 5
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x58]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x40221a
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov bl, 8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x28]
mov ebp, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x402212
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea edx, [esp + 0x58]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x58], 6
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea edx, [esp + 0x5c]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x58], 9
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 0xb
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [edx + 0x40]
test eax, eax
je 0x4021b5
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x58], 0xc
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x54], 0xb
call fcn.00401f60
add esp, 8
mov ecx, dword [esp + 0x14]
push 0x80
push ecx
call esi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x98]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call edi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0xffffffffffffffff
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x98]
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x4020e8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret