Function at 0x40cf85
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441643
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
mov dword [ebp - 0x1bc], ecx
push 0
push 0x45af90
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov dword [ebp - 4], 0
push 0x454c9c
push 0
push str.SaveOnlyOnExit
push 0x454cb8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
cmp ecx, eax
sbb edx, edx
neg edx
mov byte [ebp - 0x54], dl
mov eax, dword [ebp - 0x1bc]
xor ecx, ecx
mov cl, byte [eax + 0x100]
test ecx, ecx
jne 0x40d00d
mov edx, dword [ebp + 8]
and edx, 0xff
test edx, edx
jne 0x40d02e
mov eax, dword [ebp - 0x54]
and eax, 0xff
test eax, eax
je 0x40d02e
mov byte [ebp - 0x17c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x17c]
jmp 0x40dad2
mov ecx, dword [ebp - 0x1bc]
xor edx, edx
mov dl, byte [ecx + 0xe8]
test edx, edx
je 0x40d071
push str.905__old_DPSAVE_already_running
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov byte [ebp - 0x180], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x180]
jmp 0x40dad2
push 0xa
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::Lock
test eax, eax
jne 0x40d0b0
push str.939_SERVICE_AREA_LOCKED_OLD_DPSAVE_SKIPPED
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov byte [ebp - 0x184], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x184]
jmp 0x40dad2
mov eax, dword [ebp - 0x1bc]
mov byte [eax + 0xe8], 1
push str.906_EXECUTING_DPSAVE__old_method_
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov ecx, dword [ebp - 0x1bc]
call fcn.0040ced5
and eax, 0xff
test eax, eax
jne 0x40d102
mov byte [ebp - 0x188], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x188]
jmp 0x40dad2
mov ecx, dword [ebp - 0x1bc]
cmp dword [ecx + 0x130], 0
je 0x40d160
push 0x3e8
mov edx, dword [ebp - 0x1bc]
mov ecx, dword [edx + 0x130]
call fcn.0041ce80
movsx eax, ax
cmp eax, 0xffffffff
jne 0x40d160
push 0x454d30
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov byte [ebp - 0x18c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x18c]
jmp 0x40dad2
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ecx + 0x120]
mov eax, dword [edx + 0x1a20]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1c0]
call dword [edx + 0x34]
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 1
push 0
push 0x9001
push 0x454d5c
mov eax, dword [ebp - 0x1bc]
add eax, 0x454
push eax
lea ecx, [ebp - 0x194]
push ecx
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c8]
call fcn.00402550
push eax
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Open
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x190], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x194]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x190]
and eax, 0xff
test eax, eax
je 0x40d2d3
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ecx + 0x120]
mov eax, dword [edx + 0x1a20]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1cc]
call dword [edx + 0x38]
push 0x80
mov ecx, dword [ebp - 0x1bc]
call fcn.0040b705
push 0x454d6c
push 0x45b0c8
push 0x454d70
lea ecx, [ebp - 0xa0]
call fcn.0042de43
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x1bc]
call fcn.0041a5bc
push str.Could_not_create_C1DP.BIN
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov byte [ebp - 0x198], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.0040fdf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043fca8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x198]
jmp 0x40dad2
push 0
push 0
push 0x454d98
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1d0]
call dword [edx + 0x2c]
mov dword [ebp - 0x58], eax
jmp 0x40d338
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1d4]
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x58]
add ecx, eax
mov dword [ebp - 0x58], ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1d8], eax
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1d8]
call dword [eax + 0x30]
cmp dword [ebp - 0x58], eax
jae 0x40d49b
push 0x20
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0x120]
mov ecx, dword [eax + 0x1a20]
push ecx
call fcn.004100c0
add esp, 0xc
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x40d44e
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0x120]
mov ecx, dword [eax + 0x1a20]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x1dc], eax
mov edx, dword [ebp - 0x1dc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1dc]
call dword [eax + 0x38]
push 0x80
mov ecx, dword [ebp - 0x1bc]
call fcn.0040b705
push str.map_area_0__Old_DpSave__fallita__
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
push 0x454ddc
push 0x45b0cc
push 0x454de0
lea ecx, [ebp - 0xd8]
call fcn.0042de43
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, dword [ebp - 0x1bc]
call fcn.0041a5bc
mov byte [ebp - 0x19c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.0040fdf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043fca8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x19c]
jmp 0x40dad2
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1e0], eax
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1e0]
call dword [eax + 0x54]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Write
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0x120]
mov ecx, dword [eax + 0x1a20]
push ecx
call fcn.00410110
add esp, 4
jmp 0x40d313
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Close
push 0
push 0x9001
push 0x454dec
mov edx, dword [ebp - 0x1bc]
add edx, 0x454
push edx
lea eax, [ebp - 0x1a4]
push eax
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1e8]
call fcn.00402550
push eax
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Open
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x1a0], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x1a0]
and edx, 0xff
test edx, edx
je 0x40d5dc
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [eax + 0x120]
mov edx, dword [ecx + 0x1a20]
push edx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1ec]
call dword [edx + 0x38]
push 0x80
mov ecx, dword [ebp - 0x1bc]
call fcn.0040b705
push 0x454dfc
push 0x45b0d0
push 0x454e00
lea ecx, [ebp - 0x10c]
call fcn.0042de43
mov byte [ebp - 4], 6
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x1bc]
call fcn.0041a5bc
push str.Could_not_create_C1DATA.BIN
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov byte [ebp - 0x1a8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10c]
call fcn.0040fdf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043fca8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x1a8]
jmp 0x40dad2
push 0
push 0
push 0x454e28
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1f0]
call dword [edx + 0x40]
mov ecx, dword [ebp - 0x1bc]
mov esi, dword [ecx + 0x114]
sub esi, eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1f4], eax
mov edx, dword [ebp - 0x1f4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1f4]
call dword [eax + 0x54]
lea esi, [esi + eax - 1]
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1f8]
call dword [edx + 0x54]
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x58], 0
jmp 0x40d680
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x10]
jge 0x40d80a
push 0x20
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1fc]
call dword [edx + 0x40]
mov esi, eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x200]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x200]
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x58]
imul ecx, eax
add esi, ecx
push esi
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0x120]
mov ecx, dword [eax + 0x1a20]
push ecx
call fcn.004100c0
add esp, 0xc
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x40d7bd
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0x120]
mov ecx, dword [eax + 0x1a20]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x204]
call dword [eax + 0x38]
push 0x80
mov ecx, dword [ebp - 0x1bc]
call fcn.0040b705
push str.map_area_0_In_Old_DpSave_fallita__
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
push 0x454e64
push 0x45b0d4
push 0x454e68
lea ecx, [ebp - 0x144]
call fcn.0042de43
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 0x1bc]
call fcn.0041a5bc
mov byte [ebp - 0x1ac], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.0040fdf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043fca8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x1ac]
jmp 0x40dad2
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x208], eax
mov edx, dword [ebp - 0x208]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x208]
call dword [eax + 0x54]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Write
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0x120]
mov ecx, dword [eax + 0x1a20]
push ecx
call fcn.00410110
add esp, 4
jmp 0x40d677
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Close
push 0x20
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x20c], eax
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20c]
call dword [eax + 0x2c]
push eax
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ecx + 0x120]
mov eax, dword [edx + 0x1a20]
push eax
call fcn.004100c0
add esp, 0xc
test eax, eax
jne 0x40d911
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ecx + 0x120]
mov eax, dword [edx + 0x1a20]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x210]
call dword [edx + 0x38]
push 0x80
mov ecx, dword [ebp - 0x1bc]
call fcn.0040b705
push str.DoOldCncDataSave:_unable_to_remap_area0
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
push 0x454e9c
push 0x45b0d8
push 0x454ea0
lea ecx, [ebp - 0x178]
call fcn.0042de43
mov byte [ebp - 4], 8
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x1bc]
call fcn.0041a5bc
mov byte [ebp - 0x1b0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.0040fdf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043fca8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x1b0]
jmp 0x40dad2
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ecx + 0x120]
mov eax, dword [edx + 0x1a20]
push eax
call fcn.00410110
add esp, 4
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ecx + 0x120]
mov eax, dword [edx + 0x1a20]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x214]
call dword [edx + 0x38]
push 0x80
mov ecx, dword [ebp - 0x1bc]
call fcn.0040b705
push 0x454eac
push 0x45b0dc
push 0x454eb0
lea ecx, [ebp - 0x50]
call fcn.0042de43
mov byte [ebp - 4], 9
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x1bc]
call fcn.0041a5bc
mov dword [ebp - 0x5c], 0
jmp 0x40d9a8
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0xc
jge 0x40d9cf
mov edx, dword [ebp - 0x1bc]
xor eax, eax
mov al, byte [edx + 0xe8]
test eax, eax
je 0x40d9cf
push 0x64
mov ecx, dword [ebp - 0x1bc]
call fcn.0040b705
jmp 0x40d99f
mov ecx, dword [ebp - 0x1bc]
xor edx, edx
mov dl, byte [ecx + 0xe8]
cmp edx, 1
jne 0x40da10
mov eax, dword [ebp - 0x1bc]
cmp dword [eax + 0xf8], 0
jne 0x40da01
push str.907_WARNING:_DPSAVERUN_is_not_OF
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov ecx, dword [ebp - 0x1bc]
mov byte [ecx + 0xe8], 0
jmp 0x40da8e
mov ecx, dword [ebp - 0x1bc]
call fcn.0041a560
mov edx, dword [ebp - 0x1bc]
cmp dword [edx + 0x130], 0
je 0x40da8e
push 0x7d0
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [eax + 0x130]
call fcn.0041cf5c
movsx ecx, ax
cmp ecx, 0xffffffff
jne 0x40da8e
push str.______SerialC1_ResumeTheStuff_Fallita
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov byte [ebp - 0x1b4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0040fdf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043fca8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x1b4]
jmp 0x40dad2
push str.913_OLD_DPSAVE_EXECUTED
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f2ac
mov byte [ebp - 0x1b8], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0040fdf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043fca8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov al, byte [ebp - 0x1b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4