Function at 0x408270
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x40ccd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
push 0x13e
mov dword [esp + 0x174], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
lea eax, [esp + 0x178]
lea ecx, [esp + 0x10]
push 0x4108cc
push eax
push ecx
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], esi
call fcn.0040bb3a
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
mov byte [esp + 0x170], 2
je 0x4084aa
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
call esi
test eax, eax
je 0x408343
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
call esi
test eax, eax
jne 0x40831a
test byte [ebx], 0x10
jne 0x40848d
lea esi, [ebx + 0x2c]
lea eax, [esp + 0x17c]
push esi
lea ecx, [esp + 0x34]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edi, dword [eax]
lea edx, [esp + 0x178]
push esi
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x17c], 3
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push edi
push eax
call ebp
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.0040bb3a
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], 2
call fcn.0040bb3a
test bl, bl
push esi
je 0x40840d
lea ecx, [esp + 0x17c]
lea edx, [esp + 0x30]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
push 0x4108bc
push ecx
mov byte [esp + 0x17c], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x170], 2
call fcn.0040bb3a
mov edx, dword [esp + 0x18]
push 0
push 0x32
push edx
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 4
je 0x40834f
cmp eax, 5
jne 0x40870d
jmp 0x408483
lea eax, [esp + 0x180]
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
mov byte [esp + 0x178], 5
call sub.MFC42.DLL_CFile::GetStatus
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 2
call fcn.0040bb3a
lea eax, [esp + 0x17c]
push esi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x6c], 0x20
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
mov byte [esp + 0x178], 6
call sub.MFC42.DLL_CFile::SetStatus
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 2
call fcn.0040bb3a
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [esp + 0x1c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408301
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4084b0
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [esp + 0x178]
push 0x4108cc
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.0040bb3a
cmp ebp, 0xffffffff
je 0x40868e
push 1
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
call esi
test eax, eax
je 0x408521
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
call esi
test eax, eax
jne 0x4084f8
test byte [ebx], 0x10
je 0x408677
lea edi, [ebx + 0x2c]
mov esi, 0x4108b4
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408558
test cl, cl
je 0x408554
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408558
add eax, 2
add esi, 2
test cl, cl
jne 0x408534
xor eax, eax
jmp 0x40855d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408671
mov esi, 0x4108b8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408590
test cl, cl
je 0x40858c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408590
add eax, 2
add esi, 2
test cl, cl
jne 0x40856c
xor eax, eax
jmp 0x408595
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408671
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x178]
mov byte [esp + 0x170], 7
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 8
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x41012c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 0x41012c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x17c], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x178], 8
call fcn.00408270
test eax, eax
mov byte [esp + 0x170], 7
lea ecx, [esp + 0x14]
je 0x4086f7
call fcn.0040bb3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 2
call fcn.0040bb3a
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4084e5
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x40869b
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 1
call fcn.0040bb3a
lea ecx, [esp + 0x178]
mov byte [esp + 0x170], 0
call fcn.0040bb3a
lea ecx, [esp + 0x17c]
mov dword [esp + 0x170], 0xffffffff
call fcn.0040bb3a
mov eax, 1
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x164
ret 8
call fcn.0040bb3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 2
call fcn.0040bb3a
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 1
call fcn.0040bb3a
lea ecx, [esp + 0x178]
mov byte [esp + 0x170], 0
call fcn.0040bb3a
lea ecx, [esp + 0x17c]
mov dword [esp + 0x170], 0xffffffff
call fcn.0040bb3a
xor eax, eax
jmp 0x4086dc