Function at 0x4d07f1
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503654
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push esi
mov dword [ebp - 0xcc], ecx
mov eax, dword [ebp - 0xcc]
cmp dword [eax + 0x90], 0
jne 0x4d082a
jmp 0x4d0cd9
mov ecx, dword [ebp - 0xcc]
cmp dword [ecx + 0xa0], 0
je 0x4d083e
jmp 0x4d0cd9
mov edx, dword [ebp - 0xcc]
mov dword [edx + 0xa0], 1
push 1
mov ecx, dword [ebp - 0xcc]
call sub.MFC42u.DLL_CWnd::UpdateData
mov eax, dword [ebp - 0xcc]
cmp dword [eax + 0xa4], 0
jne 0x4d0956
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 0x90]
cmp dword [edx + 0x133d8], 0
je 0x4d0956
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xcc]
mov edx, dword [eax + 0xac]
cmp edx, dword [ecx + 0xa8]
jl 0x4d0956
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
push str.Current_mark_count_already_great_total_count_
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0xac], esp
push str.CURNUMGREATETOTALNUM
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0xb0]
push ecx
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 - 0xdc], eax
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xe0]
call fcn.0040e380
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.004f5766
mov eax, dword [ebp - 0xcc]
mov dword [eax + 0xa0], 0
jmp 0x4d0cd9
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 0x90]
cmp dword [edx + 0x13440], 0
je 0x4d0a86
push ecx
mov esi, esp
mov dword [ebp - 0xb4], esp
push ecx
mov ecx, esp
mov dword [ebp - 0xb8], esp
push str.Is_Realy_start_marking_
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
push str.ISREALYMARK
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0xec], 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 - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 4], 3
push ecx
mov esi, esp
mov dword [ebp - 0xc0], esp
push ecx
mov ecx, esp
mov dword [ebp - 0xc4], esp
push str.Prompt
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], edx
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0xc8], esp
push str.PROMPT
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x100], 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 - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x108], eax
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 - 0x10c], eax
cmp dword [ebp - 0x10c], 2
jne 0x4d0a86
mov ecx, dword [ebp - 0xcc]
mov dword [ecx + 0xa0], 0
jmp 0x4d0cd9
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx + 0x90]
mov ecx, dword [eax + 0x133fc]
add ecx, 1
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx + 0x90]
mov dword [eax + 0x133fc], ecx
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4c8], 0
je 0x4d0afa
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
test eax, eax
jne 0x4d0aeb
push str.EZCAD2MUTEX_MARKING
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
push ecx
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 edx, dword [ebp - 0xcc]
push edx
lea ecx, [ebp - 0xa0]
call fcn.004c6305
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 0x94]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx + 0x98]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 0xac]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 0xa8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], 2
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 0xb0]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 0x90]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx + 0x90]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0x10d10]
mov dword [ecx + 0x10b08], edx
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x10
test eax, eax
jne 0x4d0bd3
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x400
test eax, eax
jne 0x4d0bd3
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x10b08], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x10b10], 0
mov dword [ecx + 0x10b14], 0
lea ecx, [ebp - 0xa0]
call sub.MFC42u.DLL_CDialog::DoModal
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4c8], 0
je 0x4d0c11
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0xcc]
mov dword [edx + 0xa0], 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.0043b3c0
call dword [sym.imp.DataMgr.dll_class_CUndoMgr____cdecl_gf_GetUndoMgr_void_]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 0x90]
cmp dword [ecx + 0x13da4], 0
je 0x4d0c8f
cmp dword [ebp - 0x14], 0
je 0x4d0c8f
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx + 0x90]
mov dword [eax + 0x13da4], 0
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CUndoMgr::Destory_void_]
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 0x90]
cmp dword [edx + 0x13448], 0
je 0x4d0cbb
push 0
push 0x427f
push 0x111
mov ecx, dword [ebp - 0xcc]
call fcn.004d2860
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.0047e450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004f5766
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret