Function at 0x50292b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558ed2
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 0x502969
jmp 0x50315a
mov eax, dword [ebp - 0x1d8]
cmp dword [eax + 0xa0], 0
jne 0x50297d
jmp 0x50315a
mov ecx, dword [ebp - 0x1d8]
cmp dword [ecx + 0xb0], 0
je 0x502991
jmp 0x50315a
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 0x5029b0
jmp 0x502a13
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 0x5029ee
cmp dword [ebp - 0x138], 0
je 0x5029f0
jmp 0x502a13
push 0
push 0
push str.Mark_disable
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [ebp - 0x1d8]
mov dword [eax + 0xb0], 0
jmp 0x50315a
push 1
mov ecx, dword [ebp - 0x1d8]
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, dword [ebp - 0x1d8]
cmp dword [ecx + 0xcc], 0
je 0x502a3a
mov ecx, dword [ebp - 0x1d8]
call fcn.0050562f
mov edx, dword [ebp - 0x1d8]
cmp dword [edx + 0xe8], 0
jne 0x502b35
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x1344c], 0
je 0x502b35
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [edx + 0xf0]
cmp ecx, dword [eax + 0xec]
jl 0x502b35
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1b4], esp
push 0x5acd84
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 0x5acde0
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.0040e8c0
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 0x50315a
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetDogClientId_void_]
cmp eax, 0xc3c
jne 0x502bb1
push 0
lea ecx, [ebp - 0x1a4]
call fcn.004ec241
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 0x502b9f
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 0xb0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004ec750
jmp 0x50315a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004ec750
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x134b4], 0
je 0x502ce1
push ecx
mov esi, esp
mov dword [ebp - 0x1c0], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x1c4], esp
push 0x5ace0c
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 0x5ace3c
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 0x5ace54
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 0x5ace64
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 0x502ce1
mov eax, dword [ebp - 0x1d8]
mov dword [eax + 0xb0], 0
jmp 0x50315a
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4e8], 0
je 0x502d2e
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
test eax, eax
jne 0x502d1f
push 0x5ace74
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 0x502d76
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x134bc], 0
jne 0x502d76
push 1
push 0
mov ecx, dword [ebp - 0x1d8]
call fcn.0050229a
mov eax, dword [ebp - 0x1d8]
cmp dword [eax + 0x94], 0
jne 0x502df1
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x10de4], 0
jl 0x502df1
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x10de4], 0x10
jge 0x502df1
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.00502007
mov ecx, dword [ebp - 0x1d8]
call fcn.00501db4
push 1
mov ecx, dword [ebp - 0x1d8]
call fcn.00501adc
jmp 0x502e37
mov edx, dword [ebp - 0x1d8]
cmp dword [edx + 0xb4], 0
jne 0x502e37
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x13544], 0
jl 0x502e37
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x13544], 0x10
jge 0x502e37
push 1
mov ecx, dword [ebp - 0x1d8]
call fcn.00501adc
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.004ee40e
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 0x502f25
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x400
test eax, eax
jne 0x502f25
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 0x502f91
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 0x502fca
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x134bc], 0
jne 0x502fca
push 1
push 1
mov ecx, dword [ebp - 0x1d8]
call fcn.0050229a
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetDogClientId_void_]
cmp eax, 0xc3c
jne 0x502ffa
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x134]
call fcn.004f7de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
jmp 0x502b35
mov eax, dword [ebp - 0x1d8]
mov dword [eax + 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.0043c540
call dword [sym.imp.DataMgr.dll_class_CUndoMgr____cdecl_gf_GetUndoMgr_void_]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x143a0], 0
je 0x5030ca
cmp dword [ebp - 0x18], 0
je 0x5030ca
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.00441210
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1ac], 0
je 0x5030ab
cmp dword [ebp - 0x1b0], 0
je 0x5030ab
push 1
mov eax, dword [ebp - 0x1b0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1b0]
call dword [edx + 0x64]
mov eax, dword [ebp - 0x1d8]
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 - 0x1d8]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x134bc], 0
je 0x5030f6
push 0
push 0x427f
push 0x111
mov ecx, dword [ebp - 0x1d8]
call fcn.0049d390
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0xf0]
cmp edx, dword [ebp - 0x14]
jle 0x50313c
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0xa0]
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xf0]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x13470]
add ecx, eax
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0xa0]
mov dword [eax + 0x13470], ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x134]
call fcn.004f7de0
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