Function at 0x40dae3
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441695
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov dword [ebp - 0x78], ecx
push 0
push 0x45af90
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::Lock
mov eax, dword [ebp - 0x78]
xor ecx, ecx
mov cl, byte [eax + 0xe8]
test ecx, ecx
je 0x40db5b
push str.908__new_DPSAVE_already_running
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x40]
jmp 0x40e054
push 1
mov edx, dword [ebp - 0x78]
add edx, 0xe8
push edx
lea ecx, [ebp - 0x3c]
call fcn.00410140
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0xf8], 0
je 0x40dbb3
push str.908__new_DPSAVE_aborted_by_fapi_close
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x44]
jmp 0x40e054
push str.909_EXECUTING_DPSAVE__new_method_
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
mov ecx, dword [ebp - 0x78]
call fcn.0040ced5
and eax, 0xff
test eax, eax
jne 0x40dbf8
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x48]
jmp 0x40e054
mov dword [ebp - 0x10], 0xffffffff
push 0
lea ecx, [ebp - 0x10]
push ecx
push 9
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x7c]
call dword [eax + 4]
mov byte [ebp - 0x24], al
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
jne 0x40dc5f
push str.910_DoNewCncDataSave:_Unable_Open_NEW_DPSAVE_DEV
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x4c]
jmp 0x40e054
push 0x20
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x80]
call dword [eax + 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004100c0
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40dcbf
push str.910_DoNewCncDataSave:_Unable_to_map_area0
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
mov byte [ebp - 0x50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x50]
jmp 0x40e054
mov edx, dword [ebp - 0x30]
add edx, 0x100
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.00410ac0
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
push 0
push 0
push str.FIDIA_FAPI_SAVINGDUALPORTDATA
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x84]
call dword [edx + 0x30]
push eax
call fcn.00410ac0
add esp, 4
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x88]
call dword [edx + 0x2c]
push eax
call fcn.00410ac0
add esp, 4
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x455010
mov ecx, dword [ebp - 0x78]
add ecx, 0x454
push ecx
lea edx, [ebp - 0x58]
push edx
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x90]
call fcn.00402550
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0040810f
and eax, 0xff
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x54]
and ecx, 0xff
test ecx, ecx
je 0x40de60
push str.911_Unable_to_save_CNCC1DP.BIN_Restoring_old_Backup_C1DP.BAK
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
push 0
push str.CNCC1DP.BIN
mov edx, dword [ebp - 0x78]
add edx, 0x454
push edx
lea eax, [ebp - 0x5c]
push eax
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x98]
call fcn.00402550
push eax
push str.CNCC1DP.BAK
mov edx, dword [ebp - 0x78]
add edx, 0x454
push edx
lea eax, [ebp - 0x60]
push eax
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xa0]
call fcn.00402550
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
push 0
push 0
push str.FIDIA_FAPI_SAVINGDATA
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xa4]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x114]
lea eax, [edx + eax - 1]
push eax
call fcn.00410ac0
add esp, 4
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xa8]
call dword [edx + 0x40]
push eax
call fcn.00410ac0
add esp, 4
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x455098
mov ecx, dword [ebp - 0x78]
add ecx, 0x454
push ecx
lea edx, [ebp - 0x68]
push edx
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xb0]
call fcn.00402550
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0040810f
and eax, 0xff
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x64], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x64]
and ecx, 0xff
test ecx, ecx
je 0x40dfe7
push str.912_Unable_to_save_CNCC1DATA.BIN_Restoring_old_Backup_C1DATA.BAK
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
push 0
push str.CNCC1DATA.BIN
mov edx, dword [ebp - 0x78]
add edx, 0x454
push edx
lea eax, [ebp - 0x6c]
push eax
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xb8]
call fcn.00402550
push eax
push str.CNCC1DATA.BAK
mov edx, dword [ebp - 0x78]
add edx, 0x454
push edx
lea eax, [ebp - 0x70]
push eax
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xc0]
call fcn.00402550
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x10]
push edx
call fcn.00410110
add esp, 4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc4]
call dword [edx + 8]
push str.913_NEW_DPSAVE_EXECUTED
mov ecx, dword [ebp - 0x78]
call fcn.0040f2ac
push 0
push 0
push 0x1f64
mov ecx, dword [ebp - 0x78]
call fcn.00402490
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret