Function at 0x50cb4d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559681
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
push esi
mov dword [ebp - 0x1a8], 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 0x50cb8b
jmp 0x50d303
mov eax, dword [ebp - 0x1a8]
cmp dword [eax + 0xc0], 0
jne 0x50cbae
mov ecx, dword [ebp - 0x1a8]
cmp dword [ecx + 0xb0], 0xffffffff
je 0x50cbae
jmp 0x50d303
mov edx, dword [ebp - 0x1a8]
cmp dword [edx + 0x9c], 0
jne 0x50cbc2
jmp 0x50d303
push 0xd43
mov ecx, dword [ebp - 0x1a8]
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ecx, eax
call fcn.0043f740
mov ecx, dword [ebp - 0x1a8]
mov dword [ecx + 0x130], eax
mov edx, dword [ebp - 0x1a8]
cmp dword [edx + 0x148], 0
je 0x50cd58
mov eax, dword [ebp - 0x1a8]
cmp dword [eax + 0x130], 0
je 0x50cd58
lea ecx, [ebp - 0x168]
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CQIniFile::constructor_void_]
mov dword [ebp - 4], 0
push 0x5ae188
lea ecx, [ebp - 0x174]
call sub.MFC42u.DLL_CString::CString_4
mov byte [ebp - 4], 1
push ecx
mov esi, esp
mov dword [ebp - 0x170], esp
lea ecx, [ebp - 0x174]
push ecx
lea edx, [ebp - 0x178]
push edx
call dword [sym.imp.DataMgr.dll_class_CString___cdecl_gf_GetWorkPath_void_]
add esp, 4
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1b0]
push ecx
push esi
call sub.MFC42u.DLL_operator_1
mov dword [ebp - 0x1b4], eax
lea ecx, [ebp - 0x168]
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CQIniFile::SetPath_class_CString_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x168]
call dword [sym.imp.DataMgr.dll_public:_int___thiscall_CQIniFile::ReadFile_void_]
push 1
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0x130]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x17c], esp
push 0x5ae194
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x180], esp
push 0x5ae1b4
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1c0], eax
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0
call dword [sym.imp.DataMgr.dll_public:_int___thiscall_CQIniFile::SetValueI_class_CString__class_CString__int__int_]
lea ecx, [ebp - 0x168]
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CQIniFile::WriteFile_void_]
mov ecx, dword [ebp - 0x1a8]
call fcn.00511bdc
test eax, eax
jne 0x50cd45
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call dword [sym.imp.DataMgr.dll_public_virtual:_void___thiscall_CQIniFile::destructor_void_]
jmp 0x50d303
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call dword [sym.imp.DataMgr.dll_public_virtual:_void___thiscall_CQIniFile::destructor_void_]
mov edx, dword [ebp - 0x1a8]
cmp dword [edx + 0xac], 0
je 0x50cd6c
jmp 0x50d303
mov eax, dword [ebp - 0x1a8]
mov dword [eax + 0xac], 1
push 1
mov ecx, dword [ebp - 0x1a8]
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, dword [ebp - 0x1a8]
cmp dword [ecx + 0x168], 0
jne 0x50ce84
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0x9c]
cmp dword [eax + 0x1344c], 0
je 0x50ce84
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ecx + 0x170]
cmp eax, dword [edx + 0x16c]
jl 0x50ce84
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x184], esp
push str.Current_mark_count_already_great_total_count_
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x188], esp
push str.CURNUMGREATETOTALNUM
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1cc], eax
lea edx, [ebp - 0x18c]
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 - 0x1d0], eax
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x1d4]
call fcn.0040e8c0
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0x1a8]
mov dword [ecx + 0xac], 0
jmp 0x50d303
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0x9c]
cmp dword [eax + 0x134b4], 0
je 0x50cfb4
push ecx
mov esi, esp
mov dword [ebp - 0x190], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x194], esp
push str.Is_Realy_start_marking_
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x198], esp
push str.ISREALYMARK
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1e0], 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 - 0x1e4], eax
mov edx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 4], 7
push ecx
mov esi, esp
mov dword [ebp - 0x19c], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x1a0], esp
push 0x5ae2a0
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x1a4], esp
push str.PROMPT
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x1f4], eax
push esi
mov byte [ebp - 4], 7
call dword [sym.imp.DataMgr.dll_class_CString___cdecl_gf_Str_class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], 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 - 0x200], eax
cmp dword [ebp - 0x200], 2
jne 0x50cfb4
mov edx, dword [ebp - 0x1a8]
mov dword [edx + 0xac], 0
jmp 0x50d303
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0x9c]
mov edx, dword [ecx + 0x13470]
add edx, 1
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0x9c]
mov dword [ecx + 0x13470], edx
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4e8], 0
je 0x50d028
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
test eax, eax
jne 0x50d019
push str.EZCAD2MUTEX_MARKING
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
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_3
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0x9c]
cmp dword [ecx + 0x134c0], 0
je 0x50d070
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0x9c]
cmp dword [eax + 0x134bc], 0
jne 0x50d070
push 1
push 0
mov ecx, dword [ebp - 0x1a8]
call fcn.0050c3a4
mov ecx, dword [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x134]
call fcn.004ef84e
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0xa0]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0xa4]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0x170]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0x16c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0x168]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0xc8], 2
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0x174]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0x9c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0x9c]
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 0x50d140
call dword [sym.imp.DataMgr.dll_int___cdecl_gf_GetSoftFunCode_void_]
and eax, 0x400
test eax, eax
jne 0x50d140
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
mov ecx, dword [ebp - 0x1a8]
xor edx, edx
cmp dword [ecx + 0xb0], 0xffffffff
setne dl
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xb0]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0xc8]
mov dword [ebp - 0x34], eax
mov ecx, dword [edx + 0xcc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0xd0]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edx + 0xd4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0xd8]
mov dword [ebp - 0x24], eax
mov ecx, dword [edx + 0xdc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0xe0]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edx + 0xe4]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x134]
call sub.MFC42u.DLL_CDialog::DoModal
call dword [sym.imp.DataMgr.dll_class_CEzcadCfg____cdecl_gf_GetCfg_void_]
cmp dword [eax + 0x4e8], 0
je 0x50d202
call dword [sym.imp.DataMgr.dll_void____cdecl_gf_GetMarkMutex_void_]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0x9c]
cmp dword [eax + 0x134c0], 0
je 0x50d23b
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0x9c]
cmp dword [edx + 0x134bc], 0
jne 0x50d23b
push 1
push 1
mov ecx, dword [ebp - 0x1a8]
call fcn.0050c3a4
mov eax, dword [ebp - 0x1a8]
mov dword [eax + 0xac], 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 - 0x14], eax
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0x9c]
cmp dword [edx + 0x143a0], 0
je 0x50d2b9
cmp dword [ebp - 0x14], 0
je 0x50d2b9
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0x9c]
mov dword [ecx + 0x143a0], 0
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.DataMgr.dll_public:_void___thiscall_CUndoMgr::Destory_void_]
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx + 0x9c]
cmp dword [eax + 0x134bc], 0
je 0x50d2e5
push 0
push 0x427f
push 0x111
mov ecx, dword [ebp - 0x1a8]
call fcn.0049edd0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x134]
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