Function at 0x4f16bd
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c483
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push esi
mov dword [ebp - 0x100], ecx
mov eax, dword [ebp - 0x100]
cmp dword [eax + 0xb0], 0
jne 0x4f16f6
jmp 0x4f1c7d
mov ecx, dword [ebp - 0x100]
cmp dword [ecx + 0x90], 0
jne 0x4f170a
jmp 0x4f1c7d
mov edx, dword [ebp - 0x100]
cmp dword [edx + 0xa0], 0
je 0x4f171e
jmp 0x4f1c7d
mov eax, dword [ebp - 0x100]
mov dword [eax + 0xa0], 1
push 1
mov ecx, dword [ebp - 0x100]
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, dword [ebp - 0x100]
cmp dword [ecx + 0xd8], 0
jne 0x4f1836
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0x90]
cmp dword [eax + 0x13430], 0
je 0x4f1836
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0x100]
mov eax, dword [ecx + 0xe0]
cmp eax, dword [edx + 0xdc]
jl 0x4f1836
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0xdc], esp
push str.Current_mark_count_already_great_total_count_
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0xe0], esp
push str.CURNUMGREATETOTALNUM
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x10c], eax
lea edx, [ebp - 0xe4]
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 - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x114]
call fcn.0040e3d0
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.0051c506
mov ecx, dword [ebp - 0x100]
mov dword [ecx + 0xa0], 0
jmp 0x4f1c7d
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0x90]
cmp dword [eax + 0x13498], 0
je 0x4f1966
push ecx
mov esi, esp
mov dword [ebp - 0xe8], esp
push ecx
mov ecx, esp
mov dword [ebp - 0xec], esp
push str.Is_Realy_start_marking_
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0xf0], esp
push str.ISREALYMARK
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x120], 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 - 0x124], eax
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], 3
push ecx
mov esi, esp
mov dword [ebp - 0xf4], esp
push ecx
mov ecx, esp
mov dword [ebp - 0xf8], esp
push str.Prompt
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0xfc], esp
push str.PROMPT
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x134], 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 - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], 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 - 0x140], eax
cmp dword [ebp - 0x140], 2
jne 0x4f1966
mov edx, dword [ebp - 0x100]
mov dword [edx + 0xa0], 0
jmp 0x4f1c7d
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 0x90]
mov edx, dword [ecx + 0x13454]
add edx, 1
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 0x90]
mov dword [ecx + 0x13454], edx
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4c8], 0
je 0x4f19da
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
test eax, eax
jne 0x4f19cb
push str.EZCAD2MUTEX_MARKING
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd8]
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 - 0x100]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004dc035
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 0x94]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0xe0]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 0xdc]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x68], 2
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0xe4]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 0x90]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 0x90]
mov edx, dword [ebp - 0x64]
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 0x4f1ab3
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x400
test eax, eax
jne 0x4f1ab3
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x10b38], 0
mov edx, dword [ebp - 0x64]
mov dword [edx + 0x10b40], 0
mov dword [edx + 0x10b44], 0
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 0xa4]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0xb8]
mov dword [ebp - 0x34], eax
mov ecx, dword [edx + 0xbc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0xc0]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edx + 0xc4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0xc8]
mov dword [ebp - 0x24], eax
mov ecx, dword [edx + 0xcc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0xd0]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edx + 0xd4]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xd4]
call sub.MFC42u.DLL_CDialog::DoModal
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4c8], 0
je 0x4f1b67
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x100]
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.0043c4f0
call dword [sym.imp.DataMgr.dll_class_CUndoMgr____cdecl_gf_GetUndoMgr_void_]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 0x90]
cmp dword [ecx + 0x13e3c], 0
je 0x4f1be5
cmp dword [ebp - 0x14], 0
je 0x4f1be5
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0x90]
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 - 0x100]
mov edx, dword [ecx + 0x90]
cmp dword [edx + 0x134a0], 0
je 0x4f1c11
push 0
push 0x427f
push 0x111
mov ecx, dword [ebp - 0x100]
call fcn.0048c830
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 0x90]
call dword [sym.imp.Lmc1.dll_public:_int___thiscall_CLmcDev::IsMustDestroyDog_void_]
test eax, eax
je 0x4f1c5f
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 - 0xd4]
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