Function at 0x10007e080
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x388
mov qword [rsp + 0x350], 0xfffffffffffffffe
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x378], rax
mov dword [rsp + 0xf0], 0
lea rcx, [rsp + 0xc0]
call fcn.1000141d0
nop
lea rcx, [rsp + 0xb8]
call fcn.100014450
nop
lea rcx, [rsp + 0x38]
call fcn.1000141d0
nop
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0xf4], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x9c], 0
mov rax, qword [rsp + 0x3a0]
mov dword [rax], 0
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0xc0]
mov edx, 4
mov rcx, qword [rsp + 0x390]
call fcn.100054a90
test eax, eax
jne 0x10007e177
lea rdx, [0x10000fd30]
mov ecx, 3
call fcn.100053cc0
mov dword [rsp + 0xa8], 0x65b
jmp 0x10007e49d
lea rcx, [rsp + 0xc0]
call fcn.100064e40
mov dword [rsp + 0xf0], eax
cmp dword [rsp + 0xf0], 1
jbe 0x10007e1b8
lea rdx, [0x100012410]
mov ecx, 3
call fcn.100053cc0
mov dword [rsp + 0xa8], 0xd
jmp 0x10007e49d
cmp dword [rsp + 0xf0], 0
jne 0x10007e1e3
lea rdx, [0x10000fc30]
mov ecx, 3
call fcn.100053cc0
mov dword [rsp + 0xa8], 0xd
jmp 0x10007e49d
lea rcx, [rsp + 0xc0]
call fcn.100064030
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.100015fc0
mov r8, qword [0x1000a8818]
mov edx, 0x104
lea rcx, [rsp + 0x100]
call fcn.10001fc80
test eax, eax
jge 0x10007e22d
mov dword [rsp + 0xa8], 0x65b
jmp 0x10007e49d
lea rcx, [rsp + 0xb8]
call fcn.100013ee0
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x100]
call fcn.10004ce90
test eax, eax
jge 0x10007e263
mov dword [rsp + 0xa8], 0x65b
jmp 0x10007e49d
lea rcx, [rsp + 0x68]
call fcn.1000786c0
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
je 0x10007e283
jmp 0x10007e49d
lea r8, [rsp + 0x100]
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x10007e2bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa8], eax
jmp 0x10007e49d
mov edx, 0x3e8
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0x80
je 0x10007e2ee
cmp dword [rsp + 0xa8], 0
jne 0x10007e2fb
mov dword [rsp + 0x9c], 1
jmp 0x10007e32c
cmp dword [rsp + 0xa8], 0x102
jne 0x10007e31a
mov dword [rsp + 0xa8], 0x20
jmp 0x10007e49d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa8], eax
jmp 0x10007e49d
mov dword [rsp + 0x98], 0
lea rax, [rsp + 0x320]
mov qword [rsp + 0x328], rax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x328]
call fcn.1000148e0
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x360], rax
lea rax, [rsp + 0xf4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x360]
mov rcx, qword [rsp + 0x390]
call fcn.10007e700
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
je 0x10007e3e7
mov r9, qword [rsp + 0xb8]
mov r8d, dword [rsp + 0xa8]
lea rdx, [0x100010c70]
mov ecx, 3
call fcn.100053cc0
jmp 0x10007e49d
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x10007e49d
lea rax, [rsp + 0x330]
mov qword [rsp + 0x338], rax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x338]
call fcn.1000148e0
mov qword [rsp + 0x368], rax
mov rax, qword [rsp + 0x368]
mov qword [rsp + 0x370], rax
lea r9, [rsp + 0xac]
lea r8, [rsp + 0x38]
mov edx, dword [rsp + 0x398]
mov rcx, qword [rsp + 0x370]
call fcn.10007c680
test eax, eax
jne 0x10007e485
mov dword [rsp + 0xa8], 0x643
mov r8, qword [rsp + 0xb8]
lea rdx, [0x100010b70]
mov ecx, 3
call fcn.100053cc0
jmp 0x10007e49d
cmp dword [rsp + 0xac], 0
je 0x10007e49d
mov rax, qword [rsp + 0x3a0]
mov dword [rax], 1
cmp dword [rsp + 0xa8], 0
je 0x10007e559
lea r8, [0x10000ef60]
mov edx, dword [rsp + 0xa8]
mov ecx, 3
call fcn.100053dc0
cmp dword [rsp + 0x9c], 0
je 0x10007e557
cmp dword [rsp + 0x30], 0
je 0x10007e4e5
mov dword [rsp + 0x314], 1
jmp 0x10007e4f0
mov dword [rsp + 0x314], 0
mov rax, qword [rsp + 0x3a0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x314]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xf4]
mov r8, qword [rsp + 0xb0]
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x390]
call fcn.10007db00
mov dword [rsp + 0x310], eax
cmp dword [rsp + 0x310], 0
je 0x10007e557
mov r8d, dword [rsp + 0x310]
lea rdx, [0x100010ad0]
mov ecx, 3
call fcn.100053cc0
jmp 0x10007e590
lea rcx, [rsp + 0xb8]
call fcn.10007aca0
mov dword [rsp + 0x318], eax
cmp dword [rsp + 0x318], 0
je 0x10007e590
mov r8d, dword [rsp + 0x318]
lea rdx, [0x100012390]
mov ecx, 3
call fcn.100053cc0
cmp dword [rsp + 0x9c], 0
je 0x10007e5a8
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp qword [rsp + 0xa0], 0
je 0x10007e5c1
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x68]
call fcn.100078980
cmp qword [rsp + 0xb0], 0
je 0x10007e5f3
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x340], rax
mov rcx, qword [rsp + 0x340]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x348], eax
lea rcx, [rsp + 0x38]
call fcn.100014300
nop
lea rcx, [rsp + 0xb8]
call fcn.1000144b0
nop
lea rcx, [rsp + 0xc0]
call fcn.100014300
mov eax, dword [rsp + 0x348]
mov rcx, qword [rsp + 0x378]
call fcn.100087ed0
add rsp, 0x388
ret