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

Disassembly:
mov eax, 0x4065cd
call fcn.00405f40
sub esp, 0x2c
push esi
push edi
mov edi, ecx
and dword [ebp - 4], 0
mov esi, 0x40a1d0
lea eax, [edi + 0xb4]
push esi
push eax
lea eax, [ebp - 0x38]
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__
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x28]
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 0x402a34
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 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
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 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
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 - 0x28]
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__
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x38]
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], 7
test eax, eax
jne 0x402a91
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.00405d70
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
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 1
lea ecx, [ebp - 0x28]
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_]
cmp byte [ebp + 0x18], 0
je 0x402ad4
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.BasicCtrlDll.dll_int___cdecl_CreateAllDir_class_CString_const__]
pop ecx
jmp 0x402b24
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 9
call fcn.004019f3
pop ecx
test al, al
pop ecx
je 0x402b2a
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x402b3a
cmp byte [ebp + 0x1c], 0
je 0x402b24
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp + 0x1f], 1
jmp 0x402b3e
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x402b11
and byte [ebp + 0x1f], 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 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_]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0x1f]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 0x18