Function at 0x504234
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558bdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
mov dword [ebp - 0x1e0], 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 0x504272
jmp 0x504a8a
mov eax, dword [ebp - 0x1e0]
cmp dword [eax + 0xa0], 0
jne 0x504286
jmp 0x504a8a
mov ecx, dword [ebp - 0x1e0]
cmp dword [ecx + 0xb4], 0
je 0x50429a
jmp 0x504a8a
mov edx, dword [ebp - 0x1e0]
mov dword [edx + 0xb4], 1
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 1
test eax, eax
jne 0x5042b9
jmp 0x50431c
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x144], 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 - 0x140], eax
cmp dword [ebp - 0x144], 0
jne 0x5042f7
cmp dword [ebp - 0x140], 0
je 0x5042f9
jmp 0x50431c
push 0
push 0
push str.Mark_disable
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [ebp - 0x1e0]
mov dword [eax + 0xb4], 0
jmp 0x504a8a
push 1
mov ecx, dword [ebp - 0x1e0]
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, dword [ebp - 0x1e0]
cmp dword [ecx + 0xd0], 0
je 0x504343
mov ecx, dword [ebp - 0x1e0]
call fcn.00506f36
mov edx, dword [ebp - 0x1e0]
cmp dword [edx + 0xf0], 0
jne 0x50443e
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x1344c], 0
je 0x50443e
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [edx + 0xf8]
cmp ecx, dword [eax + 0xf4]
jl 0x50443e
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0x5ad234
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1e4], eax
mov edx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c0], esp
push 0x5ad290
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x1c4]
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 - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x1f4]
call fcn.0040e8c0
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c4]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [ebp - 0x1e0]
mov dword [edx + 0xb4], 0
jmp 0x504a8a
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetDogClientId_void_]
cmp eax, 0xc3c
jne 0x5044ba
push 0
lea ecx, [ebp - 0x1ac]
call fcn.004ed281
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x148], ecx
lea ecx, [ebp - 0x1ac]
call sub.MFC42u.DLL_CDialog::DoModal
cmp eax, 2
jne 0x5044a8
mov edx, dword [ebp - 0x1e0]
mov dword [edx + 0xb4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.004edb90
jmp 0x504a8a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.004edb90
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x134b4], 0
je 0x5045ea
push ecx
mov esi, esp
mov dword [ebp - 0x1c8], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x1cc], esp
push 0x5ad2bc
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1f8], eax
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], edx
mov dword [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x1d0], esp
push 0x5ad2ec
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x200], 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 - 0x204], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x208], eax
mov dword [ebp - 4], 4
push ecx
mov esi, esp
mov dword [ebp - 0x1d4], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push 0x5ad304
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x210], ecx
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push 0x5ad314
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x214], 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 - 0x218], eax
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], 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 - 0x220], eax
cmp dword [ebp - 0x220], 2
jne 0x5045ea
mov eax, dword [ebp - 0x1e0]
mov dword [eax + 0xb4], 0
jmp 0x504a8a
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4e8], 0
je 0x504637
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
test eax, eax
jne 0x504628
push 0x5ad324
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1b0]
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 - 0x1e0]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x134c0], 0
je 0x50467f
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x134bc], 0
jne 0x50467f
push 1
push 0
mov ecx, dword [ebp - 0x1e0]
call fcn.00503ba9
mov eax, dword [ebp - 0x1e0]
cmp dword [eax + 0x94], 0
jne 0x5046fa
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x10de4], 0
jl 0x5046fa
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x10de4], 0x10
jge 0x5046fa
mov edx, dword [ebp - 0x1e0]
mov dword [edx + 0x94], 1
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0x94]
push ecx
mov ecx, dword [ebp - 0x1e0]
call fcn.00503916
mov ecx, dword [ebp - 0x1e0]
call fcn.005036c3
push 1
mov ecx, dword [ebp - 0x1e0]
call fcn.005033eb
jmp 0x504740
mov edx, dword [ebp - 0x1e0]
cmp dword [edx + 0xb8], 0
jne 0x504740
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x13544], 0
jl 0x504740
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x13544], 0x10
jge 0x504740
push 1
mov ecx, dword [ebp - 0x1e0]
call fcn.005033eb
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0xf8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x13c]
call fcn.004ef84e
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0xa8]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xac]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx + 0xf8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0xf4]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xf0]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0xd0], 2
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx + 0xfc]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0xcc]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x78]
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 0x50482e
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x400
test eax, eax
jne 0x50482e
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x10b40], 0
mov ecx, dword [ebp - 0x78]
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 - 0x13c]
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 0x50489a
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x134c0], 0
je 0x5048d3
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x134bc], 0
jne 0x5048d3
push 1
push 1
mov ecx, dword [ebp - 0x1e0]
call fcn.00503ba9
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetDogClientId_void_]
cmp eax, 0xc3c
jne 0x50492a
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
mov edx, dword [ecx + 0x13470]
add edx, 1
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
mov dword [ecx + 0x13470], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x13c]
call fcn.004f9150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
jmp 0x504343
mov edx, dword [ebp - 0x1e0]
mov dword [edx + 0xb4], 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 eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x143a0], 0
je 0x5049fa
cmp dword [ebp - 0x18], 0
je 0x5049fa
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 - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
call fcn.004412d0
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b4], 0
je 0x5049db
cmp dword [ebp - 0x1b8], 0
je 0x5049db
push 1
mov edx, dword [ebp - 0x1b8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1b8]
call dword [eax + 0x64]
mov ecx, dword [ebp - 0x1e0]
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 - 0x1e0]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x134bc], 0
je 0x504a26
push 0
push 0x427f
push 0x111
mov ecx, dword [ebp - 0x1e0]
call fcn.0049edd0
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx + 0xf8]
cmp eax, dword [ebp - 0x14]
jle 0x504a6c
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx + 0xa0]
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xf8]
sub ecx, dword [ebp - 0x14]
mov edx, dword [edx + 0x13470]
add edx, ecx
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 0xa0]
mov dword [ecx + 0x13470], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x13c]
call fcn.004f9150
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