Function at 0x10005601c
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
mov r13, r8
mov r15, rcx
mov r12d, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdi + 0x28]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r14d, edi
mov dword [rsp + 0x30], edi
call sub.msvcrt.dll_memset
cmp r15, rdi
je 0x10005632c
lea ebx, [rdi + 2]
cmp r12d, 4
je 0x100056095
cmp r12d, 3
je 0x100056095
cmp r12d, ebx
jne 0x10005632c
cmp r13, rdi
je 0x10005632c
mov qword [r13], rdi
cmp dword [0x10008252c], edi
jne 0x1000560b7
call fcn.1000569dc
cmp eax, edi
jne 0x100056331
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.100056bfc
cmp eax, edi
jne 0x1000560d7
mov eax, 0x6e
jmp 0x100056331
lea r9, [0x1000025c8]
lea rax, [rsp + 0x60]
mov edx, 0x104
lea rcx, [rsp + 0x60]
mov r10d, edi
sub r9, rax
mov r8, rdx
lea rax, [r8 + 0x7ffffefa]
cmp rax, rdi
je 0x100056118
movzx eax, word [r9 + rcx]
cmp ax, di
je 0x100056118
mov word [rcx], ax
add rcx, rbx
sub r8, 1
jne 0x1000560f6
mov r11d, 0x8007007a
cmp r8, rdi
jne 0x100056129
sub rcx, rbx
mov r10d, r11d
cmp r10d, edi
mov word [rcx], di
jl 0x1000560cd
mov rcx, rdx
lea rax, [rsp + 0x60]
cmp word [rax], di
je 0x100056147
add rax, rbx
sub rcx, 1
jne 0x100056139
cmp rcx, rdi
je 0x1000560cd
mov rax, rdx
mov r10d, 0x103
sub rax, rcx
lea rcx, [rsp + 0x60]
sub r10, rax
mov rax, rdx
cmp word [rcx], di
je 0x100056171
add rcx, rbx
sub rax, 1
jne 0x100056163
cmp rax, rdi
je 0x1000560cd
mov r8, rdx
sub r8, rax
cmp r10, 0x7ffffffe
ja 0x1000560cd
sub rdx, r8
lea rcx, [rsp + r8*2 + 0x60]
mov r9d, edi
je 0x1000561d1
lea rax, [rdx + r8]
lea r8, [rax + r10 - 0x104]
mov r10, r15
sub r10, rcx
cmp r8, rdi
je 0x1000561cc
movzx eax, word [r10 + rcx]
cmp ax, di
je 0x1000561cc
dec rdx
mov word [rcx], ax
dec r8
add rcx, rbx
cmp rdx, rdi
jne 0x1000561ac
cmp rdx, rdi
jne 0x1000561d7
sub rcx, rbx
mov r9d, r11d
cmp r9d, edi
mov word [rcx], di
jl 0x1000560cd
lea rcx, [rsp + 0x30]
call fcn.100057130
cmp eax, edi
jne 0x100056331
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbp, rax
cmp rax, rdi
jne 0x10005623e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.1000572dc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
jmp 0x100056331
lea rcx, [rsp + 0x30]
call fcn.1000572dc
mov edx, 0x3e8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsp + 0x28]
test eax, eax
je 0x10005627b
cmp eax, 0x80
je 0x10005627b
cmp eax, 0x102
jne 0x100056313
mov ebx, 0x20
jmp 0x10005631b
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.100056dd4
cmp eax, ebx
jne 0x100056294
cmp r12d, 3
jne 0x1000562af
jmp 0x100056306
mov ecx, 0xb7
cmp eax, ecx
jne 0x100056301
cmp r12d, ebx
jne 0x1000562c8
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.100056ffc
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.100056eb8
test eax, eax
jne 0x100056301
xor ebx, ebx
lea r14d, [rax + 1]
jmp 0x1000562ca
mov ebx, ecx
mov r8, qword [rsp + 0x20]
mov r9, rbp
mov rdx, rdi
mov rcx, r15
call fcn.100057058
test rax, rax
je 0x1000562e8
mov qword [r13], rax
jmp 0x100056324
mov ebx, 0xe
test r14d, r14d
je 0x100056306
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.100056ffc
jmp 0x100056306
mov ebx, 0x6e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x10005631b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
jmp 0x100056226
mov eax, 0x57
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10005cbe0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret