Function at 0x140001170
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x1c0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1f0], rbx
mov r14, rcx
lea r8, str.AsOpenFileDlg_ExecuteMutex_25199
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001414
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140001414
mov edi, 8
mov dword [rsp + 0x200], edi
mov dword [rsp + 0x204], 0xff
lea rcx, [rsp + 0x200]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, r14
call qword [sym.imp.mfc140u.dll_COleDispatchImpl::GetTypeInfoCount]
lea rdx, str.Local_AppWizard_Generated_Applications
mov rcx, r14
call qword [sym.imp.mfc140u.dll_COleControlSite::XOleIPSite::SetFocus]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CColorDialog::CColorDialog]
nop
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCPrintPreviewToolBar::OnToolHitTest]
lea rcx, [rsp + 0x208]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x1f8]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea ebp, [rdi - 7]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebp
jle 0x140001316
mov r15d, 0xfffd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov rcx, qword [rax]
mov rbx, qword [rdi + rcx]
xor esi, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
inc ebp
xor r9d, r9d
cmp ebp, dword [rax]
sete r9b
movzx eax, word [rbx]
sub ax, 0x2d
test r15w, ax
jne 0x14000128a
mov esi, 1
add rbx, 2
mov r8d, esi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCImageEditorDialog::OnToolLine]
mov r8, rbx
lea rdx, [0x140003b48]
lea rcx, [rsp + 0x208]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov r8, rbx
lea rdx, [0x140003b48]
lea rcx, [rsp + 0x1f8]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x1f8]
call qword [sym.imp.mfc140u.dll_CHtmlView::LoadFromResource]
test esi, esi
je 0x1400012f9
xor r8d, r8d
lea rdx, [0x140003a28]
lea rcx, [rsp + 0x1f8]
call qword [sym.imp.mfc140u.dll_CDocObjectServer::XOleObject::EnumAdvise]
test eax, eax
je 0x14000130c
add rdi, 8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebp, dword [rax]
jge 0x140001316
jmp 0x140001254
mov dword [0x140006840], 1
lea rcx, [rsp + 0x1f8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x208]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CAnimationVariable::CAnimationVariable]
cmp dword [0x140006840], 0
je 0x140001422
lea rdx, str.ARMOURY_CRATE
lea rcx, str.ApplicationFrameWindow
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CMFCRibbonComboBox::FindItem]
mov rbx, rax
test rax, rax
jne 0x140001391
lea rdx, str.ARMOURY_CRATE_TEST
lea rcx, str.ApplicationFrameWindow
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CMFCRibbonComboBox::FindItem]
mov rbx, rax
mov r8, rbx
mov edx, 0x66
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_CDataRecoveryHandler::CDataRecoveryHandler]
nop
lea rax, vtable.CAsOpenFileDlg.0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x1b8], rbx
call qword [sym.imp.mfc140u.dll_AfxFieldText]
mov edx, 0xe
lea ecx, [rdx + 0x73]
call qword [sym.imp.mfc140u.dll_AfxCriticalNewHandler]
mov rcx, rax
mov edx, 0x81
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0x1b0], rax
lea rax, [rsp + 0x80]
mov qword [r14 + 0x40], rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_CD2DPathGeometry::Detach]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_CD2DResource::CD2DResource]
jmp 0x140001422
test rbx, rbx
je 0x140001422
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret