Function at 0x46f7f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2d50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x518f00], 0
jne 0x46fb96
push ecx
mov ecx, dword [0x518f0c]
mov eax, esp
mov dword [ebp - 0x10], esp
push ecx
push str.Matrix_Init:_AppID_s
push eax
call fcn.00464a80
add esp, 0xc
call fcn.0046dfb0
mov edx, dword [0x518f0c]
add esp, 4
push edx
lea eax, [ebp - 0x10]
push str.Cameyo.MatrixDiskMutex._s
push eax
mov dword [0x518f00], 1
call fcn.00464a80
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push ecx
mov dword [0x518bf8], eax
mov dword [ebp - 0x14], esp
test eax, eax
jne 0x46f8e3
mov ecx, esp
push str.Matrix_Init:_Creating_new_MatrixDiskMutex
call fcn.00423607
call fcn.0046dfb0
mov edx, dword [ebp - 0x10]
add esp, 4
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x518bf8], eax
test eax, eax
je 0x46f8c2
push eax
call fcn.00477a70
jmp 0x46f8f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
push edx
push str.Matrix_Init:_error_creating_MatrixDiskMutex__s__LE_d
push ecx
call fcn.00464a80
add esp, 0x10
jmp 0x46f8f3
mov eax, esp
push str.Matrix_Init:_using_existing_MatrixDiskMutex
push eax
call fcn.00464a80
add esp, 8
call fcn.0046dfb0
mov ecx, dword [0x518c00]
add esp, 4
push 1
push ecx
push ecx
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], esp
push 0
push 0
push 0
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
mov ebx, 0x51876c
mov dword [ebp - 0x18], esi
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46f939
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.VirtFiles.db
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x46f972
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a6e27
test eax, eax
je 0x46f98c
push edi
push eax
mov ecx, esi
call fcn.00423ccc
jmp 0x46f98c
push str.VirtFiles.db
call fcn.004ad5da
add esp, 4
push eax
push str.VirtFiles.db
mov ecx, esi
call fcn.0042424f
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push 1
push eax
call fcn.004752b0
add esp, 0x18
mov ecx, ebx
call fcn.0046fc30
add esp, 8
mov esi, esp
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x18], esi
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46f9cc
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.VirtReg_Unused.db
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x46fa05
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a6e27
test eax, eax
je 0x46fa1f
push edi
push eax
mov ecx, esi
call fcn.00423ccc
jmp 0x46fa1f
push str.VirtReg_Unused.db
call fcn.004ad5da
add esp, 4
push eax
push str.VirtReg_Unused.db
mov ecx, esi
call fcn.0042424f
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.004755b0
mov esi, dword [eax]
add esp, 8
mov edi, 0x518788
call fcn.00480310
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fa5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x518f80]
push ecx
push ecx
mov dword [ebp - 0x18], esp
mov ebx, esp
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x18], esi
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46fa8c
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.SandboxCfg.db
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x46fac5
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a6e27
test eax, eax
je 0x46fadf
push edi
push eax
mov ecx, esi
call fcn.00423ccc
jmp 0x46fadf
push str.SandboxCfg.db
call fcn.004ad5da
add esp, 4
push eax
push str.SandboxCfg.db
mov ecx, esi
call fcn.0042424f
push ebx
xor ecx, ecx
mov byte [ebp - 4], 0
call fcn.004755b0
add esp, 8
mov ecx, 0x518750
call fcn.0046f600
mov eax, dword [0x518760]
add esp, 8
push 0xffffffffffffffff
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x518758]
push esi
push esi
lea ecx, [ebp - 0x14]
push ecx
push str.FILES_RemovableDrives_
push esi
push esi
push edx
push esi
push eax
push str.FILES_RemovableDrives_
push 0x518750
mov dword [ebp - 0x14], esi
call fcn.004804a0
mov ecx, dword [0x518760]
mov edi, eax
xor eax, eax
add esp, 0x2c
cmp dword [ebp - 0x14], eax
push ecx
setne al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x46fb66
mov dword [0x518c08], 1
test edi, edi
jne 0x46fb70
mov dword [0x518c08], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46fb96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret