Function at 0x405f80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440eca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push esi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x30], 0xffffffff
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::CFile
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xac]
cmp dword [eax + 0x12c], 0
je 0x405fe1
push str.Initialising_CNC
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x12c]
call dword [sym.imp.FIDIASK.dll_public:_void___thiscall_CPresentationDialog::SetText_char_const__]
mov dword [ebp - 0x28], 0
push 0x453b5c
push 0x10
push str.LoadF2ConnRetry
push 0x453b78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x1c], eax
mov edx, 1
test edx, edx
je 0x4060a2
push 0
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xb0]
call dword [edx + 4]
mov byte [ebp - 0x44], al
cmp dword [ebp - 0x30], 0xffffffff
je 0x406049
mov eax, dword [ebp - 0x44]
and eax, 0xff
test eax, eax
jne 0x40609b
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x1c]
jne 0x406085
push 0
push 0
push str.Internal_error__CNC_Driver_is_not_properly_installed
call sub.MFC42.DLL_AfxMessageBox
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0x60]
jmp 0x406a6e
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40609d
jmp 0x4060a2
jmp 0x406002
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xb4]
call dword [edx + 0x3c]
and eax, 0xff
test eax, eax
jne 0x40611e
push 0
push 0x34
push str.Another_application_connected_to_C1_driver_is_already_running._Going_on_may_cause_blue_screen___continue_anyway__
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
je 0x40611e
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xb8]
call dword [edx + 8]
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0x64]
jmp 0x406a6e
push 0x453c2c
push 0
push 0x453c38
push 0x453c44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x18]
and eax, 0xff
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xbc]
call dword [edx + 0x18]
push 0x3e8
mov ecx, dword [ebp - 0xac]
call fcn.0040b705
mov eax, dword [ebp - 0xac]
cmp dword [eax + 0x12c], 0
je 0x4061a4
push str.Loading_Dual_Port...
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x12c]
call dword [sym.imp.FIDIASK.dll_public:_void___thiscall_CPresentationDialog::SetText_char_const__]
push 0
push 0x8000
push 0x453c64
mov edx, dword [ebp - 0xac]
add edx, 0x454
push edx
lea eax, [ebp - 0x6c]
push eax
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc4]
call fcn.00402550
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Open
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x68], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x68]
and edx, 0xff
test edx, edx
je 0x40623d
push 0
push 0
push str.Could_not_open_C1DP.BIN
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0x70]
jmp 0x406a6e
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xc8]
call dword [edx + 0x2c]
mov dword [ebp - 0x24], eax
jmp 0x406292
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xcc]
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x24]
add ecx, eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd0]
call dword [eax + 0x30]
cmp dword [ebp - 0x24], eax
jae 0x406400
push 0x10000
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
call dword [edx + 0x10]
and eax, 0xff
test eax, eax
jne 0x40631d
push str.Driver_MAP_Area_0_failed__
mov ecx, dword [ebp - 0xac]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0x74]
jmp 0x406a6e
cmp dword [ebp - 0x24], 0
jne 0x4063b0
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd8]
call dword [edx + 0x58]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Read
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xdc]
call dword [edx + 0x54]
sub eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4063da
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xe0]
call dword [edx + 0x54]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xe4]
call dword [eax + 0x14]
jmp 0x40626d
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [ebp - 0xac]
cmp dword [ecx + 0x12c], 0
je 0x40642e
push str.Loading_Code...
mov edx, dword [ebp - 0xac]
mov ecx, dword [edx + 0x12c]
call dword [sym.imp.FIDIASK.dll_public:_void___thiscall_CPresentationDialog::SetText_char_const__]
push 0
push 0x8000
push str.CNCC1CODE.BIN
mov eax, dword [ebp - 0xac]
add eax, 0x454
push eax
lea ecx, [ebp - 0x84]
push ecx
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xec]
call fcn.00402550
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Open
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x80], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x80]
and eax, 0xff
test eax, eax
je 0x4064d1
push 0
push 0
push str.Could_not_open_C1CODE.BIN
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0x88]
jmp 0x406a6e
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xf0]
call dword [edx + 0x54]
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
add eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
jmp 0x406518
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x40665e
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xf4]
call dword [edx + 0x38]
mov esi, eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xf8]
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x20]
imul ecx, eax
add esi, ecx
mov dword [ebp - 0x50], esi
push 0x10000
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xfc]
call dword [eax + 0x10]
and eax, 0xff
test eax, eax
jne 0x4065d6
push str.Map_Cpu_Code_Memory_failed__
mov ecx, dword [ebp - 0xac]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0x8c]
jmp 0x406a6e
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x100]
call dword [edx + 0x54]
mov esi, eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x104]
call dword [edx + 0x54]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Read
xor ecx, ecx
cmp esi, eax
setne cl
mov byte [ebp - 0x54], cl
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x108]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x54]
and eax, 0xff
cmp eax, 1
jne 0x406659
jmp 0x40665e
jmp 0x40650f
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [ebp - 0xac]
cmp dword [ecx + 0x12c], 0
je 0x40668c
push str.Loading_Data...
mov edx, dword [ebp - 0xac]
mov ecx, dword [edx + 0x12c]
call dword [sym.imp.FIDIASK.dll_public:_void___thiscall_CPresentationDialog::SetText_char_const__]
push 0
push 0x8000
push 0x453d14
mov eax, dword [ebp - 0xac]
add eax, 0x454
push eax
lea ecx, [ebp - 0x94]
push ecx
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x110]
call fcn.00402550
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Open
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x90], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x90]
and eax, 0xff
test eax, eax
je 0x406735
push 0
push 0
push str.Could_not_open_C1DATA.BIN
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0x98]
jmp 0x406a6e
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x114]
call dword [edx + 0x54]
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
add eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
jmp 0x40677c
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x4068c2
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x118]
call dword [edx + 0x40]
mov esi, eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x11c]
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x20]
imul ecx, eax
add esi, ecx
mov dword [ebp - 0x58], esi
push 0x10000
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x120]
call dword [eax + 0x10]
and eax, 0xff
test eax, eax
jne 0x40683a
push str.Map_Data_Area0_failed__
mov ecx, dword [ebp - 0xac]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0x9c]
jmp 0x406a6e
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x124]
call dword [edx + 0x54]
mov esi, eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x128]
call dword [edx + 0x54]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Read
xor ecx, ecx
cmp esi, eax
setne cl
mov byte [ebp - 0x5c], cl
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x12c]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x5c]
and eax, 0xff
cmp eax, 1
jne 0x4068bd
jmp 0x4068c2
jmp 0x406773
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Close
push 0x10000
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x130]
call dword [eax + 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x134]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x134]
call dword [eax + 0x10]
and eax, 0xff
test eax, eax
jne 0x40694d
push 0
push 0
push str.Failed_Remapping_normal_CPU_RAM__
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0xa0]
jmp 0x406a6e
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x138]
call dword [eax + 0x14]
mov ecx, dword [ebp - 0xac]
cmp dword [ecx + 0x138], 1
jne 0x4069af
push 0
push 0
push str.this_fapi_version_not_allowed_with_f2__1_in_Fidia.ini_not_CPU4_STUFF_anymore_available_
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0xa4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0xa4]
jmp 0x406a6e
mov edx, dword [ebp - 0xac]
cmp dword [edx + 0x12c], 0
je 0x4069d5
push str.Starting_CNC...
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x12c]
call dword [sym.imp.FIDIASK.dll_public:_void___thiscall_CPresentationDialog::SetText_char_const__]
push 2
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x13c]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0xac]
cmp dword [ecx + 0x12c], 0
je 0x406a1e
push str.Starting_communications...
mov edx, dword [ebp - 0xac]
mov ecx, dword [edx + 0x12c]
call dword [sym.imp.FIDIASK.dll_public:_void___thiscall_CPresentationDialog::SetText_char_const__]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x140]
call dword [edx + 8]
push 0x7d0
mov ecx, dword [ebp - 0xac]
call fcn.0040b705
mov dword [ebp - 0xa8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0043fca8
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret