Function at 0x1400066e0
Capabilities:
Check mutex on windows

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0xb8
mov qword [rsp + 0x80], 0xfffffffffffffffe
lea rcx, [rsp + 0x40]
call fcn.140008370
lea rcx, [rsp + 0x30]
call fcn.1400084e0
nop
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x48]
call fcn.140008340
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
lea r8, str._H:_M:_S
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400083b0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.1400085e0
nop
lea rcx, [rsp + 0x50]
call fcn.1400085c0
cmp dword [rsp + 0xc0], 1
je 0x14000679b
mov r9, qword [rsp + 0x30]
lea r8, str.____Test_for_Mutex..._____s_
mov edx, 9
lea rcx, [0x14007f0e0]
call fcn.140021a10
lea r8, str.Global_MSIExecute
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400067f9
cmp dword [rsp + 0xc0], 1
je 0x1400067de
lea r8, str._tNo_MSI_active__no_Mutex_existing_
mov edx, 9
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x30]
call fcn.1400085c0
mov eax, dword [rsp + 0x58]
jmp 0x140006a5e
cmp dword [rsp + 0xc0], 0
jne 0x140006815
mov dword [rsp + 0x38], 0x7d0
mov dword [rsp + 0x24], 2
jmp 0x140006826
mov eax, dword [rsp + 0xc0]
imul eax, eax, 0x3e8
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0xc0], 1
je 0x14000684d
mov r9d, dword [rsp + 0x24]
lea r8, str.____Waiting_for_Mutex_to_release...___maxwait_d_sec_
mov edx, 9
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x60]
call fcn.140008340
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
lea r8, str._H:_M:_S
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400083b0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.1400085e0
nop
lea rcx, [rsp + 0x68]
call fcn.1400085c0
cmp dword [rsp + 0xc0], 1
je 0x1400068e4
mov r9, qword [rsp + 0x30]
lea r8, str.____Wait_end_for_Mutex____s_
mov edx, 9
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
je 0x14000691c
cmp dword [rsp + 0xa8], 0x80
je 0x1400069db
cmp dword [rsp + 0xa8], 0x102
je 0x140006991
jmp 0x140006a18
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x140006943
lea r8, str.Mutex:_Error_while_releasing
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, str.Mutex:_MSI_not_no_longer_active.
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x30]
call fcn.1400085c0
mov eax, dword [rsp + 0x70]
jmp 0x140006a5e
cmp dword [rsp + 0xc0], 1
je 0x1400069b3
lea r8, str.Mutex:_WAIT_TIMEOUT
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x74], 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400085c0
mov eax, dword [rsp + 0x74]
jmp 0x140006a5e
lea r8, str.Mutex:_WAIT_ABANDONED
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x78], 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400085c0
mov eax, dword [rsp + 0x78]
jmp 0x140006a5e
lea r8, str.Error_Mutex:_Default_case_not_specified.
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x7c], 0xfffffffd
lea rcx, [rsp + 0x30]
call fcn.1400085c0
mov eax, dword [rsp + 0x7c]
jmp 0x140006a5e
add rsp, 0xb8
ret