Function at 0x50303b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a283
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov dword [ebp - 0x1d8], 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 0x503079
jmp 0x503891
mov eax, dword [ebp - 0x1d8]
cmp dword [eax + 0xa0], 0
jne 0x50308d
jmp 0x503891
mov ecx, dword [ebp - 0x1d8]
cmp dword [ecx + 0xb0], 0
je 0x5030a1
jmp 0x503891
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 0xb0], 1
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 1
test eax, eax
jne 0x5030c0
jmp 0x503123
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 0x5030fe
cmp dword [ebp - 0x138], 0
je 0x503100
jmp 0x503123
push 0
push 0
push str.Mark_disable
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [ebp - 0x1d8]
mov dword [eax + 0xb0], 0
jmp 0x503891
push 1
mov ecx, dword [ebp - 0x1d8]
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, dword [ebp - 0x1d8]
cmp dword [ecx + 0xcc], 0
je 0x50314a
mov ecx, dword [ebp - 0x1d8]
call fcn.00505e7f
mov edx, dword [ebp - 0x1d8]
cmp dword [edx + 0xe8], 0
jne 0x503245
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x1344c], 0
je 0x503245
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [edx + 0xf0]
cmp ecx, dword [eax + 0xec]
jl 0x503245
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1b4], esp
push 0x5addf4
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1dc], eax
mov edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1b8], esp
push 0x5ade50
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1e4], eax
lea eax, [ebp - 0x1bc]
push eax
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 - 0x1e8], eax
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x1ec]
call fcn.0040e8b0
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1bc]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 0xb0], 0
jmp 0x503891
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetDogClientId_void_]
cmp eax, 0xc3c
jne 0x5032c1
push 0
lea ecx, [ebp - 0x1a4]
call fcn.004ec6e1
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x1a4]
call sub.MFC42u.DLL_CDialog::DoModal
cmp eax, 2
jne 0x5032af
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 0xb0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004ecbf0
jmp 0x503891
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004ecbf0
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x134b4], 0
je 0x5033f1
push ecx
mov esi, esp
mov dword [ebp - 0x1c0], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x1c4], esp
push 0x5ade7c
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1f0], eax
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
push 0x5adeac
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1f8], 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 - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], eax
mov dword [ebp - 4], 4
push ecx
mov esi, esp
mov dword [ebp - 0x1cc], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x1d0], esp
push 0x5adec4
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x208], ecx
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x1d4], esp
push 0x5aded4
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x20c], eax
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.DataMgr.dll_class_CString___cdecl_gf_Str_class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x214], edx
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 - 0x218], eax
cmp dword [ebp - 0x218], 2
jne 0x5033f1
mov eax, dword [ebp - 0x1d8]
mov dword [eax + 0xb0], 0
jmp 0x503891
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4e8], 0
je 0x50343e
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
test eax, eax
jne 0x50342f
push 0x5adee4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
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_3
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x134c0], 0
je 0x503486
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x134bc], 0
jne 0x503486
push 1
push 0
mov ecx, dword [ebp - 0x1d8]
call fcn.005029aa
mov eax, dword [ebp - 0x1d8]
cmp dword [eax + 0x94], 0
jne 0x503501
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x10de4], 0
jl 0x503501
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x10de4], 0x10
jge 0x503501
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 0x94], 1
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0x94]
push ecx
mov ecx, dword [ebp - 0x1d8]
call fcn.00502717
mov ecx, dword [ebp - 0x1d8]
call fcn.005024c4
push 1
mov ecx, dword [ebp - 0x1d8]
call fcn.005021ec
jmp 0x503547
mov edx, dword [ebp - 0x1d8]
cmp dword [edx + 0xb4], 0
jne 0x503547
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x13544], 0
jl 0x503547
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x13544], 0x10
jge 0x503547
push 1
mov ecx, dword [ebp - 0x1d8]
call fcn.005021ec
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xf0]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x134]
call fcn.004ee8ae
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa4]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa8]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xf0]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xec]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xe8]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0xc8], 2
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xf4]
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xc8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x70]
mov edx, dword [eax + 0x10d78]
mov dword [ecx + 0x10b40], edx
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x10
test eax, eax
jne 0x503635
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x400
test eax, eax
jne 0x503635
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x10b40], 0
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x10b48], 0
mov dword [ecx + 0x10b4c], 0
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
mov edx, dword [eax + 0x4a0]
mov dword [ebp - 0x1c], edx
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 ecx, dword [ebp - 0x1c]
mov dword [eax + 0x4a0], ecx
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4e8], 0
je 0x5036a1
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x134c0], 0
je 0x5036da
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x134bc], 0
jne 0x5036da
push 1
push 1
mov ecx, dword [ebp - 0x1d8]
call fcn.005029aa
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetDogClientId_void_]
cmp eax, 0xc3c
jne 0x503731
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
mov edx, dword [ecx + 0x13470]
add edx, 1
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
mov dword [ecx + 0x13470], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x134]
call fcn.004f82a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
jmp 0x50314a
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 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.0043c510
call dword [sym.imp.DataMgr.dll_class_CUndoMgr____cdecl_gf_GetUndoMgr_void_]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x143a0], 0
je 0x503801
cmp dword [ebp - 0x18], 0
je 0x503801
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 - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
call fcn.004412a0
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1ac], 0
je 0x5037e2
cmp dword [ebp - 0x1b0], 0
je 0x5037e2
push 1
mov edx, dword [ebp - 0x1b0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1b0]
call dword [eax + 0x64]
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
mov dword [edx + 0x143a0], 0
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CUndoMgr::Destory_void_]
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x134bc], 0
je 0x50382d
push 0
push 0x427f
push 0x111
mov ecx, dword [ebp - 0x1d8]
call fcn.0049d7e0
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xf0]
cmp eax, dword [ebp - 0x14]
jle 0x503873
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xf0]
sub ecx, dword [ebp - 0x14]
mov edx, dword [edx + 0x13470]
add edx, ecx
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
mov dword [ecx + 0x13470], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x134]
call fcn.004f82a0
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