Function at 0x4fff40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555306
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push esi
mov dword [ebp - 0x170], ecx
call dword [sym.imp.DataMgr.dll_class_QUserMgr____cdecl_gf_GetUserMgr_void_]
mov ecx, eax
call dword [sym.imp.DataMgr.dll_public:_class_QUser____thiscall_QUserMgr::GetCurUser_void_]
cmp dword [eax + 0x24], 0
jne 0x4fff7e
jmp 0x5006a9
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0xa0], 0
jne 0x4fff92
jmp 0x5006a9
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0xb0], 0
je 0x4fffa6
jmp 0x5006a9
mov edx, dword [ebp - 0x170]
mov dword [edx + 0xb0], 1
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 1
test eax, eax
jne 0x4fffc5
jmp 0x500028
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x13c], 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 - 0x138], eax
cmp dword [ebp - 0x13c], 0
jne 0x500003
cmp dword [ebp - 0x138], 0
je 0x500005
jmp 0x500028
push 0
push 0
push str.Mark_disable
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [ebp - 0x170]
mov dword [eax + 0xb0], 0
jmp 0x5006a9
push 1
mov ecx, dword [ebp - 0x170]
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0xcc], 0
jne 0x500130
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x1344c], 0
je 0x500130
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp - 0x170]
mov eax, dword [ecx + 0xd4]
cmp eax, dword [edx + 0xd0]
jl 0x500130
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14c], esp
push 0x5a88e0
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x178], ecx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x5a893c
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x17c], eax
lea edx, [ebp - 0x154]
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 - 0x180], eax
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x184], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x184]
call fcn.0040e860
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0x170]
mov dword [ecx + 0xb0], 0
jmp 0x5006a9
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x134b4], 0
je 0x500260
push ecx
mov esi, esp
mov dword [ebp - 0x158], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x15c], esp
push 0x5a8968
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x160], esp
push 0x5a8998
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x190], 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 - 0x194], eax
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
mov dword [ebp - 4], 3
push ecx
mov esi, esp
mov dword [ebp - 0x164], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x168], esp
push 0x5a89b0
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x16c], esp
push 0x5a89c0
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1a4], 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 - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], 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 - 0x1b0], eax
cmp dword [ebp - 0x1b0], 2
jne 0x500260
mov edx, dword [ebp - 0x170]
mov dword [edx + 0xb0], 0
jmp 0x5006a9
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4e8], 0
je 0x5002ad
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
test eax, eax
jne 0x50029e
push 0x5a89d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
push eax
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_3
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x134c0], 0
je 0x5002f5
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x134bc], 0
jne 0x5002f5
push 1
push 0
mov ecx, dword [ebp - 0x170]
call fcn.004ff8af
mov edx, dword [ebp - 0x170]
cmp dword [edx + 0x94], 0
jne 0x500370
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x10de4], 0
jl 0x500370
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x10de4], 0x10
jge 0x500370
mov ecx, dword [ebp - 0x170]
mov dword [ecx + 0x94], 1
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0x94]
push eax
mov ecx, dword [ebp - 0x170]
call fcn.004ff61c
mov ecx, dword [ebp - 0x170]
call fcn.004ff3c9
push 1
mov ecx, dword [ebp - 0x170]
call fcn.004ff16d
jmp 0x5003b6
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0xb4], 0
jne 0x5003b6
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x13544], 0
jl 0x5003b6
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x13544], 0x10
jge 0x5003b6
push 1
mov ecx, dword [ebp - 0x170]
call fcn.004ff16d
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xd4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x170]
push edx
lea ecx, [ebp - 0x134]
call fcn.004ec35e
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xa4]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0xd4]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xd0]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xcc]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xc8], 2
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0xd8]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xc8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0xa0]
mov eax, dword [ebp - 0x70]
mov ecx, dword [edx + 0x10d78]
mov dword [eax + 0x10b40], ecx
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x10
test eax, eax
jne 0x5004a4
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x400
test eax, eax
jne 0x5004a4
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x10b40], 0
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x10b48], 0
mov dword [eax + 0x10b4c], 0
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
mov ecx, dword [eax + 0x4a0]
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
mov dword [eax + 0x4a0], 0
lea ecx, [ebp - 0x134]
call sub.MFC42u.DLL_CDialog::DoModal
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x4a0], edx
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4e8], 0
je 0x500510
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x134c0], 0
je 0x500549
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x134bc], 0
jne 0x500549
push 1
push 1
mov ecx, dword [ebp - 0x170]
call fcn.004ff8af
mov ecx, dword [ebp - 0x170]
mov dword [ecx + 0xb0], 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.0043c530
call dword [sym.imp.DataMgr.dll_class_CUndoMgr____cdecl_gf_GetUndoMgr_void_]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x143a0], 0
je 0x500619
cmp dword [ebp - 0x18], 0
je 0x500619
push 1
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::SetModifyFlag_int_]
call dword [sym.imp.DataMgr.dll_class_CWnd____cdecl_gf_GetActiveWnd_void_]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
call fcn.004411e0
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x144], 0
je 0x5005fa
cmp dword [ebp - 0x148], 0
je 0x5005fa
push 1
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x148]
call dword [edx + 0x64]
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xa0]
mov dword [ecx + 0x143a0], 0
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CUndoMgr::Destory_void_]
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x134bc], 0
je 0x500645
push 0
push 0x427f
push 0x111
mov ecx, dword [ebp - 0x170]
call fcn.0049cd40
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0xd4]
cmp edx, dword [ebp - 0x14]
jle 0x50068b
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0xa0]
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xd4]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x13470]
add ecx, eax
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa0]
mov dword [eax + 0x13470], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x134]
call fcn.004f59d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret