Function at 0x10005ecc0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x328
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x100082138]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov r14, r8
mov r15d, edx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x98]
call fcn.100019218
nop
lea rcx, [rsp + 0x38]
call fcn.10001fee0
nop
lea rcx, [rsp + 0xd0]
call fcn.100019218
nop
xor edi, edi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x48], edi
mov r12d, edi
mov rbp, rdi
mov r13d, edi
mov dword [r14], edi
xor edx, edx
lea r8d, [rdi + 0x30]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x98]
lea esi, [rdi + 3]
cmp r11, rdi
jne 0x10005ed69
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10005ed82
lea r8, [rsp + 0x98]
mov edx, 4
mov rcx, rbx
call fcn.10004584c
cmp eax, edi
jne 0x10005ed9a
lea rdx, [0x100011430]
mov ecx, esi
call fcn.10003c3c0
mov edi, 0x65b
jmp 0x10005f038
mov rax, qword [rsp + 0xa8]
cmp eax, 1
jbe 0x10005edbf
lea rdx, [0x100013af0]
mov ecx, esi
call fcn.10003c3c0
mov edi, 0xd
jmp 0x10005f038
cmp eax, edi
jne 0x10005eddb
lea rdx, [0x100011530]
mov ecx, esi
call fcn.10003c3c0
mov edi, 0xd
jmp 0x10005f038
mov eax, edi
mov rdx, qword [rsp + 0x98]
cmp rdx, rdi
setne al
cmp eax, edi
jne 0x10005edfa
mov ecx, 0x80004005
call fcn.10001fd10
int3
add rdx, 0x10
lea rcx, [rsp + 0x38]
call fcn.10001ecdc
mov edx, 0x104
lea rcx, [rsp + 0x100]
mov r8d, edi
lea r9, [0x100012720]
lea rax, [rsp + 0x100]
sub r9, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, rdi
je 0x10005ee4d
movzx eax, word [r9 + rcx]
cmp ax, di
je 0x10005ee4d
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10005ee2a
cmp rdx, rdi
jne 0x10005ee5c
sub rcx, 2
mov r8d, 0x8007007a
mov word [rcx], di
cmp r8d, edi
jge 0x10005ee6e
mov edi, 0x65b
jmp 0x10005f038
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 8], 1
jle 0x10005ee8b
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.10001fbd0
mov rbx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x100]
call fcn.10001fd58
cmp eax, edi
jge 0x10005eeb3
mov edi, 0x65b
mov rbx, qword [rsp + 0x40]
jmp 0x10005f038
lea rcx, [rsp + 0x68]
call fcn.100057994
mov edi, eax
test eax, eax
jne 0x10005f033
lea r8, [rsp + 0x100]
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbp, rax
test rax, rax
jne 0x10005eef1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10005f007
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x10005ef2d
test eax, eax
je 0x10005ef2d
cmp eax, 0x102
jne 0x10005ef20
mov edi, 0x20
mov rbx, qword [rsp + 0x40]
jmp 0x10005f038
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10005f007
mov r13d, 1
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.10001ff10
nop
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xd0]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.10005d954
mov edi, eax
test eax, eax
je 0x10005ef9c
mov r9, rbx
mov r8d, eax
lea rdx, [0x100012460]
mov ecx, esi
call fcn.10003c3c0
jmp 0x10005f007
mov r12d, dword [rsp + 0x30]
test r12d, r12d
je 0x10005f012
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.10001ff10
nop
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xd0]
mov edx, r15d
mov rcx, rax
call fcn.10005de88
test eax, eax
jne 0x10005eff9
mov edi, 0x643
mov r8, rbx
lea rdx, [0x1000124f0]
mov ecx, esi
call fcn.10003c3c0
mov rbx, qword [rsp + 0x40]
jmp 0x10005f038
cmp dword [rsp + 0x30], 0
je 0x10005f012
mov dword [r14], 1
test edi, edi
je 0x10005f012
mov rbx, qword [rsp + 0x40]
jmp 0x10005f038
lea rcx, [rsp + 0x38]
call fcn.10005c744
test eax, eax
je 0x10005f08a
mov r8d, eax
lea rdx, [0x100013b50]
mov ecx, esi
call fcn.10003c3c0
jmp 0x10005f08a
mov rbx, qword [rsp + 0x40]
lea r8, [0x1000125f0]
mov edx, edi
mov ecx, esi
call fcn.10003c494
test r13d, r13d
je 0x10005f098
xor eax, eax
test r12d, r12d
setne al
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.10005e83c
test eax, eax
je 0x10005f08a
mov r8d, eax
lea rdx, [0x100012680]
mov ecx, esi
call fcn.10003c3c0
test r13d, r13d
je 0x10005f098
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test rbp, rbp
je 0x10005f0a6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x10005f0b9
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x10005f0cc
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x10005f0df
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x10005f0ef
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
nop
lea rcx, [rsp + 0xd0]
call fcn.10001f53c
nop
lea rcx, [rsp + 0x38]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x98]
call fcn.10001f53c
mov eax, edi
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.10006b1f0
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret