Function at 0x14004d0b0
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rcx
call qword [sym.imp.mfc110u.dll_Ordinal_2186]
xor edi, edi
lea r8, str.Veriworks_for_AOI
mov r15d, 1
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edi
cmp eax, 0xb7
cmove ebx, r15d
test r14, r14
je 0x14004d130
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, [rsi + 0x20bf0]
call fcn.140153460
mov edx, dword [0x14034e77c]
mov rcx, rsi
call fcn.14004daf0
cmp ebx, r15d
jne 0x14004d1e2
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, str.AOI_Verifier_is_already_in_process.
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rdx, str.ALREADY_IN_PROCESS
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
mov rbx, rax
lea rdx, str.USERLOGIN
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x60]
mov r8, rbx
mov rdx, rax
lea rcx, [0x14034ef60]
call qword [sym.imp.MultiLang_x64.dll_public:_int___cdecl_CMultiLangManager::GetCaptionDef_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64____ptr64]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_2217]
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
xor eax, eax
jmp 0x14004d74b
call fcn.14004cf50
test al, al
jne 0x14004d27e
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, str.Please_register_TeeChart201464.ocx.
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rdx, str.REGISTER_TEECHART_MSG
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
mov rbx, rax
lea rdx, str.USERLOGIN
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x60]
mov r8, rbx
mov rdx, rax
lea rcx, [0x14034ef60]
call qword [sym.imp.MultiLang_x64.dll_public:_int___cdecl_CMultiLangManager::GetCaptionDef_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64____ptr64]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_2217]
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
xor eax, eax
jmp 0x14004d74b
call fcn.14004cdd0
test al, al
jne 0x14004d31a
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, str.Please_register_AOIObjectX.dll.
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rdx, str.REGISTER_AOIOBJECTX_MSG
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
mov rbx, rax
lea rdx, str.USERLOGIN
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x60]
mov r8, rbx
mov rdx, rax
lea rcx, [0x14034ef60]
call qword [sym.imp.MultiLang_x64.dll_public:_int___cdecl_CMultiLangManager::GetCaptionDef_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64____ptr64]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_2217]
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
xor eax, eax
jmp 0x14004d74b
lea rcx, [fcn.140001030]
call qword [sym.imp.MSVCR110.dll__set_purecall_handler]
mov dword [rbp - 0x50], 8
mov dword [rbp - 0x4c], 0xff
lea rcx, [rbp - 0x50]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_7563]
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
lea rcx, [rsi + 0x10cc0]
xor r8d, r8d
lea rdx, [rbp - 0x48]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
call qword [sym.imp.mfc110u.dll_Ordinal_2220]
test eax, eax
jne 0x14004d388
or r8d, 0xffffffff
xor edx, edx
lea ecx, [rax + 0x64]
call qword [sym.imp.mfc110u.dll_Ordinal_2216]
xor eax, eax
jmp 0x14004d74b
xor ecx, ecx
call qword [sym.imp.mfc110u.dll_Ordinal_2127]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_4256]
lea rdx, str.Local_AppWizard_Generated_Applications
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_13366]
mov r12d, 4
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_8003]
mov rax, qword [sym.imp.MSVCR110.dll___argc]
cmp dword [rax], 6
jne 0x14004d49f
cmp byte [rsi + 0x2104e], dil
jne 0x14004d49f
lea rbx, [rsi + 0x46eb0]
mov rax, qword [sym.imp.MSVCR110.dll___wargv]
mov rdx, qword [rax]
mov rdx, qword [rdx + 8]
mov rcx, rbx
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rax, qword [sym.imp.MSVCR110.dll___wargv]
mov rdx, qword [rax]
lea rcx, [rsi + 0x46eb8]
mov rdx, qword [rdx + 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rax, qword [sym.imp.MSVCR110.dll___wargv]
mov rdx, qword [rax]
lea rcx, [rsi + 0x46ec0]
mov rdx, qword [rdx + 0x18]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rax, qword [sym.imp.MSVCR110.dll___wargv]
mov rdx, qword [rax]
lea rcx, [rsi + 0x46ec8]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rax, qword [sym.imp.MSVCR110.dll___wargv]
mov rdx, qword [rax]
lea rcx, [rsi + 0x46ed0]
mov rdx, qword [rdx + 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea r14, [rbx + 0x28]
cmp rbx, r14
je 0x14004d489
nop dword [rax]
lea rdx, [0x140229930]
mov rcx, rbx
call qword [sym.imp.mfc110u.dll_Ordinal_13847]
add rbx, 8
cmp rbx, r14
jne 0x14004d470
mov word [rsi + 0x20ea2], di
mov byte [rsi + 0x20e98], dil
mov word [rsi + 0x20dd0], r12w
lea rcx, [rbp - 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, str.____________________________________________________________
lea rcx, [rbp - 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rdx, rax
lea rcx, [rsi + 0x218a0]
call qword [sym.imp.LogMsgInterface.dll_public:_void___cdecl_CLogMsgInterface::writeLogData_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64]
mov r9, qword [0x14034e340]
mov r8, qword [0x14034e320]
lea rdx, str.PROGRAM_START____s_v_s
lea rcx, [rbp - 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rdx, rax
lea rcx, [rsi + 0x218a0]
call qword [sym.imp.LogMsgInterface.dll_public:_void___cdecl_CLogMsgInterface::writeLogData_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64]
lea rcx, [0x14032d720]
call fcn.14004c490
cmp byte [rsi + 0x20c71], 1
jne 0x14004d53a
call fcn.14004d7b0
test al, al
je 0x14004d73f
mov ecx, 0xf8
call qword [sym.imp.MSVCR110.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14004d5e2
mov qword [rax + 0x10], rdi
mov qword [rax + 0x38], rdi
mov qword [rax + 0x48], rdi
mov qword [rax + 0x68], rdi
mov qword [rax + 0x70], rdi
mov qword [rax + 0x78], rdi
mov qword [rax + 0x80], rdi
mov qword [rax + 0x88], rdi
mov qword [rax + 0x90], rdi
mov qword [rax + 0xb0], rdi
mov qword [rax + 0xb8], rdi
mov qword [rax + 0xc0], rdi
mov qword [rax + 0xc8], rdi
mov qword [rax + 0xd0], rdi
mov qword [rax + 0xd8], rdi
mov qword [rax + 0xe0], rdi
mov qword [rax + 0xf0], rdi
lea rcx, str.CGerberDrawForm
mov qword [rsp + 0x20], rcx
lea r9, str.CMainFrame
lea r8, str.CAOIVerifierDoc
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.mfc110u.dll_Ordinal_935]
jmp 0x14004d5e5
mov rax, rdi
test rax, rax
je 0x14004d73f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_1795]
call qword [sym.imp.mfc110u.dll_Ordinal_2160]
lea r8, [rsp + 0x50]
lea rdx, str.32770
mov rcx, qword [rax + 0x10]
call qword [sym.imp.USER32.dll_GetClassInfoW]
lea rax, [0x1402299f0]
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc110u.dll_Ordinal_2258]
call qword [sym.imp.mfc110u.dll_Ordinal_2186]
mov word [rbp - 0x30], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x2e]
call sub.MSVCR110.dll_memset
mov r8d, 0x208
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [0x140229a08]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
mov rdi, rax
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea rdx, [0x140223734]
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_2361]
mov rdx, rdi
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_2360]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, rdi
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov qword [rsi + 0x46ee0], rbx
test rbx, rbx
jne 0x14004d708
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, str.PROCESS_:_Can_not_found_ExternalFileViewer.dll.
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_9680]
mov edx, 3
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.mfc110u.dll_Ordinal_13685]
mov rcx, qword [rsi + 0x40]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [rsi + 0x2105c]
mov rcx, rsi
call fcn.14004daf0
mov edi, r15d
lea rcx, [rbp - 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov eax, edi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1401e3980
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret