Function at 0x40411f
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov eax, 0x406956
call fcn.00405f40
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov esi, 0x40a1d0
push esi
je 0x40419f
lea eax, [edi + 0xb4]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push 1
pop ebx
push dword [ebp + 8]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0x18
mov eax, dword [eax + 4]
mov byte [ebp - 4], 2
test eax, eax
jne 0x40417f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405d76
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x34]
jmp 0x4041f5
lea eax, [edi + 0xc4]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push dword [ebp + 8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0x18
mov eax, dword [eax + 4]
mov byte [ebp - 4], 4
test eax, eax
jne 0x4041d3
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405d76
push 1
lea ecx, [ebp - 0x34]
pop ebx
mov byte [ebp - 4], 3
push ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add edi, 0xa4
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push dword [ebp + 8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0x18
mov eax, dword [eax + 4]
mov byte [ebp - 4], 6
test eax, eax
jne 0x404230
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d70
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp byte [ebp + 0x10], 0
je 0x404271
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.BasicCtrlDll.dll_int___cdecl_CreateAllDir_class_CString_const__]
pop ecx
jmp 0x4042d5
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 8
call fcn.004019f3
pop ecx
test al, al
pop ecx
je 0x4042c3
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4042d3
cmp byte [ebp + 0x14], 0
je 0x4042d5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4042d5
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4042ae
xor bl, bl
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10