Function at 0x10007f350
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x40], 0x6e
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x280], 0
lea rax, [rsp + 0x288]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
cmp qword [rsp + 0x2d0], 0
je 0x10007f41d
cmp dword [rsp + 0x2d8], 4
je 0x10007f412
cmp dword [rsp + 0x2d8], 3
je 0x10007f412
cmp dword [rsp + 0x2d8], 2
jne 0x10007f41d
cmp qword [rsp + 0x2e0], 0
jne 0x10007f427
mov eax, 0x57
jmp 0x10007f798
mov rax, qword [rsp + 0x2e0]
mov qword [rax], 0
cmp dword [0x1000a9638], 0
jne 0x10007f458
call fcn.100080310
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x10007f458
mov eax, dword [rsp + 0x30]
jmp 0x10007f798
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x2d0]
call fcn.1000805a0
test eax, eax
jne 0x10007f484
mov dword [rsp + 0x40], 0x6e
mov eax, dword [rsp + 0x40]
jmp 0x10007f798
lea r8, [0x100012548]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.10001fc80
test eax, eax
jge 0x10007f4af
mov dword [rsp + 0x40], 0x6e
mov eax, dword [rsp + 0x40]
jmp 0x10007f798
lea r8, [rsp + 0x28]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1000462c0
test eax, eax
jge 0x10007f4d8
mov dword [rsp + 0x40], 0x6e
mov eax, dword [rsp + 0x40]
jmp 0x10007f798
mov rax, qword [rsp + 0x28]
inc rax
mov ecx, 0x104
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x2d0]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.100081370
test eax, eax
jge 0x10007f521
mov dword [rsp + 0x40], 0x6e
mov eax, dword [rsp + 0x40]
jmp 0x10007f798
lea rcx, [rsp + 0x280]
call fcn.100080f20
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x10007f542
mov eax, dword [rsp + 0x30]
jmp 0x10007f798
lea r8, [rsp + 0x70]
xor edx, edx
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x10007f59a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x280]
call fcn.1000812a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_free]
mov eax, dword [rsp + 0x40]
jmp 0x10007f798
lea rcx, [rsp + 0x280]
call fcn.1000812a0
mov edx, 0x3e8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x10007f5cc
cmp dword [rsp + 0x30], 0x80
jne 0x10007f5d6
mov dword [rsp + 0x34], 1
jmp 0x10007f608
cmp dword [rsp + 0x30], 0x102
jne 0x10007f5f4
mov dword [rsp + 0x40], 0x20
jmp 0x10007f71d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x10007f71d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call fcn.100080950
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 2
jne 0x10007f640
cmp dword [rsp + 0x2d8], 3
jne 0x10007f636
mov dword [rsp + 0x40], 2
jmp 0x10007f63e
mov dword [rsp + 0x50], 1
jmp 0x10007f687
cmp dword [rsp + 0x30], 0xb7
jne 0x10007f67f
cmp dword [rsp + 0x2d8], 2
jne 0x10007f66d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call fcn.100080c60
mov dword [rsp + 0x50], 1
jmp 0x10007f67d
mov dword [rsp + 0x40], 0xb7
mov dword [rsp + 0x20], 1
jmp 0x10007f687
mov dword [rsp + 0x40], 0x6e
cmp dword [rsp + 0x50], 0
je 0x10007f6cb
mov dword [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call fcn.100080aa0
test eax, eax
jne 0x10007f6c3
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x20], 1
jmp 0x10007f6cb
mov dword [rsp + 0x40], 0x6e
cmp dword [rsp + 0x20], 0
je 0x10007f71d
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x2d0]
call fcn.100080cf0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x10007f70d
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
jmp 0x10007f71d
mov dword [rsp + 0x40], 0xe
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x10007f77e
cmp dword [rsp + 0x44], 0
je 0x10007f73a
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call fcn.100080c60
cmp dword [rsp + 0x34], 0
je 0x10007f762
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x10007f75a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x38], 0
je 0x10007f77e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_free]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x2b0]
call fcn.100087ed0
add rsp, 0x2c0
pop rdi
ret