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

Disassembly:
mov eax, 0x405e69
call fcn.00405870
sub esp, 0x2c
push esi
push edi
mov edi, ecx
and dword [ebp - 4], 0
mov esi, 0x40a15c
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 0x4023b1
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 sub.MFC42.DLL_CString::CString_2
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 0x40240e
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 sub.MFC42.DLL_CString::CString_2
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 0x402451
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 0x4024a1
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.004057f2
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 0xb
call fcn.004057f2
mov byte [ebp - 4], 9
call fcn.004019dc
pop ecx
test al, al
pop ecx
je 0x4024a7
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4024b7
cmp byte [ebp + 0x1c], 0
je 0x4024a1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp + 0x1f], 1
jmp 0x4024bb
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40248e
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