Function at 0x4ecf42
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bfa4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push esi
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0x94], 0
jne 0x4ecf7b
jmp 0x4ed518
mov ecx, dword [ebp - 0x10c]
cmp dword [ecx + 0xa4], 0
je 0x4ecf8f
jmp 0x4ed518
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0xa4], 1
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 1
test eax, eax
jne 0x4ecfae
jmp 0x4ed011
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xe0], eax
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x2000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xe0], 0
jne 0x4ecfec
cmp dword [ebp - 0xdc], 0
je 0x4ecfee
jmp 0x4ed011
push 0
push 0
push str.Mark_disable
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [ebp - 0x10c]
mov dword [eax + 0xa4], 0
jmp 0x4ed518
push 1
mov ecx, dword [ebp - 0x10c]
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, dword [ebp - 0x10c]
cmp dword [ecx + 0xa8], 0
jne 0x4ed119
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x94]
cmp dword [eax + 0x13430], 0
je 0x4ed119
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ecx + 0xb0]
cmp eax, dword [edx + 0xac]
jl 0x4ed119
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0xe8], esp
push 0x57592c
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0xec], esp
push 0x575988
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x118], eax
lea edx, [ebp - 0xf0]
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.DataMgr.dll_class_CString___cdecl_gf_Str_class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
call fcn.0040e3d0
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.0051c506
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0xa4], 0
jmp 0x4ed518
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x94]
cmp dword [eax + 0x13498], 0
je 0x4ed249
push ecx
mov esi, esp
mov dword [ebp - 0xf4], esp
push ecx
mov ecx, esp
mov dword [ebp - 0xf8], esp
push 0x5759b4
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0xfc], esp
push 0x5759e4
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x12c], eax
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.DataMgr.dll_class_CString___cdecl_gf_Str_class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 3
push ecx
mov esi, esp
mov dword [ebp - 0x100], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x104], esp
push 0x5759fc
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x108], esp
push 0x575a0c
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x140], eax
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.DataMgr.dll_class_CString___cdecl_gf_Str_class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Lmc1.dll_int___cdecl_gf_StartMarkDlg_class_CString__class_CString_]
add esp, 8
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 2
jne 0x4ed249
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0xa4], 0
jmp 0x4ed518
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x94]
mov edx, dword [ecx + 0x13454]
add edx, 1
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x94]
mov dword [ecx + 0x13454], edx
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4c8], 0
je 0x4ed2bd
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
test eax, eax
jne 0x4ed2ae
push 0x575a1c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.DataMgr.dll_void___cdecl_gf_SetMarkMutex_void__]
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd8]
call fcn.004dc035
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x98]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x9c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0xb0]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0xac]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0xa8]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x6c], 2
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0xb4]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x94]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x94]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x10d60]
mov dword [edx + 0x10b38], eax
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x10
test eax, eax
jne 0x4ed396
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x400
test eax, eax
jne 0x4ed396
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x10b38], 0
mov edx, dword [ebp - 0x68]
mov dword [edx + 0x10b40], 0
mov dword [edx + 0x10b44], 0
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
mov eax, dword [eax + 0x480]
mov dword [ebp - 0x18], eax
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
mov dword [eax + 0x480], 0
lea ecx, [ebp - 0xd8]
call sub.MFC42u.DLL_CDialog::DoModal
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x480], ecx
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4c8], 0
je 0x4ed402
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0xa4], 0
call dword [sym.imp.DataMgr.dll_class_CDataMgr____cdecl_gf_GetDataMgr_void_]
mov ecx, eax
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CDataMgr::BeginPick_void_]
call dword [sym.imp.DataMgr.dll_class_CDataMgr____cdecl_gf_GetDataMgr_void_]
mov ecx, eax
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CDataMgr::EndPick_void_]
push 1
call dword [sym.imp.DataMgr.dll_class_CWnd____cdecl_gf_GetActiveWnd_void_]
mov ecx, eax
call fcn.0043c4f0
call dword [sym.imp.DataMgr.dll_class_CUndoMgr____cdecl_gf_GetUndoMgr_void_]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x94]
cmp dword [ecx + 0x13e3c], 0
je 0x4ed480
cmp dword [ebp - 0x14], 0
je 0x4ed480
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x94]
mov dword [eax + 0x13e3c], 0
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CUndoMgr::Destory_void_]
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x94]
cmp dword [edx + 0x134a0], 0
je 0x4ed4ac
push 0
push 0x427f
push 0x111
mov ecx, dword [ebp - 0x10c]
call fcn.0048c830
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x94]
call dword [sym.imp.Lmc1.dll_public:_int___thiscall_CLmcDev::IsMustDestroyDog_void_]
test eax, eax
je 0x4ed4fa
push 0
push 1
push 1
call fcn.00500118
add esp, 0xc
push 0
push 2
push 1
call fcn.00500118
add esp, 0xc
push 0
push 0xb
push 1
call fcn.00500118
add esp, 0xc
push 0
push 0xc
push 1
call fcn.00500118
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd8]
call fcn.00478310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0051c506
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret