Function at 0x14001d4a0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13d, r9d
mov r14, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14001d4de
xor eax, eax
jmp 0x14001d790
lea rdx, [0x140068271]
test r14, r14
cmovne rdx, r14
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], al
mov rbp, 0xffffffffffffffff
mov r8, rbp
nop
inc r8
cmp byte [rdx + r8], al
jne 0x14001d510
lea rcx, [rsp + 0x50]
call fcn.14000d2f0
nop
lea rdi, [rbx + 0x40]
mov qword [rsp + 0x20], rdi
mov edx, 0xffffffff
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete r15b
test eax, eax
jne 0x14001d560
mov eax, dword [rdi + 0x10]
test eax, eax
jne 0x14001d55b
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rdi + 8], rax
mov eax, dword [rdi + 0x10]
inc eax
mov dword [rdi + 0x10], eax
mov byte [rsp + 0x28], r15b
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x30]
call fcn.14001dfd0
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x40]
test rsi, rsi
je 0x14001d594
mov rbx, qword [rsi]
test rbx, rbx
je 0x14001d5cb
test r15b, r15b
jmp 0x14001d72b
mov ecx, 0x20
call fcn.14002f7b0
mov rsi, rax
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], eax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x30]
call fcn.14001dfd0
mov rcx, qword [rax]
mov qword [rcx + 0x40], rsi
cmp qword [rsi + 0x10], 0
jne 0x14001d60e
mov ecx, 0x18
call fcn.14002f7b0
mov rbx, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
mov qword [rsi + 0x10], rbx
inc dword [rsi + 0x18]
test r15b, r15b
je 0x14001d63c
sub dword [rdi + 0x10], 1
jns 0x14001d625
mov dword [rdi + 0x10], 0
jmp 0x14001d62b
cmp dword [rdi + 0x10], 0
jne 0x14001d633
mov qword [rdi + 8], 0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsi + 0x10]
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete r15b
test eax, eax
jne 0x14001d678
mov eax, dword [rbx + 0x10]
test eax, eax
jne 0x14001d673
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rbx + 8], rax
mov eax, dword [rbx + 0x10]
inc eax
mov dword [rbx + 0x10], eax
mov byte [rsp + 0x28], r15b
cmp qword [rsi], 0
jne 0x14001d6c4
xor edx, edx
mov rcx, rsi
call r12
mov qword [rsi], rax
test rax, rax
je 0x14001d6c4
test r14, r14
je 0x14001d6b9
nop dword [rax + rax]
inc rbp
cmp byte [r14 + rbp], 0
jne 0x14001d6a0
lea rcx, [rax + 8]
mov r8, rbp
mov rdx, r14
call fcn.14000d2f0
mov rax, qword [rsi]
mov dword [rax + 0x28], r13d
mov qword [rsi + 8], r12
test r15b, r15b
je 0x14001d6ef
sub dword [rbx + 0x10], 1
jns 0x14001d6d8
mov dword [rbx + 0x10], 0
jmp 0x14001d6de
cmp dword [rbx + 0x10], 0
jne 0x14001d6e6
mov qword [rbx + 8], 0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsi]
mov edx, 0xffffffff
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bpl
test eax, eax
jne 0x14001d725
mov eax, dword [rdi + 0x10]
test eax, eax
jne 0x14001d720
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rdi + 8], rax
mov eax, dword [rdi + 0x10]
inc eax
mov dword [rdi + 0x10], eax
dec dword [rsi + 0x18]
test bpl, bpl
je 0x14001d754
sub dword [rdi + 0x10], 1
jns 0x14001d73c
mov dword [rdi + 0x10], 0
jmp 0x14001d742
cmp dword [rdi + 0x10], 0
jne 0x14001d74a
mov qword [rdi + 8], 0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001d78d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d788
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d7b8
call fcn.14002f77c
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002f4c0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140035b04
int3