Function at 0x6500c660
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1c0
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x65043120]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov r12, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [0x65047d30]
test rax, rax
jne 0x6500c6c1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x65047d30], rax
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x6500c6d9
mov rax, rbp
jmp 0x6500cd2c
mov edx, 7
mov qword [rsp + 0x188], rdx
xor r13d, r13d
mov r8, r13
mov qword [rsp + 0x180], r13
mov word [rsp + 0x170], r8w
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
jbe 0x6500c721
call fcn.6501d150
mov rdx, qword [rsp + 0x188]
mov r8, qword [rsp + 0x180]
cmp rdx, rdi
jae 0x6500c740
mov rdx, rdi
lea rcx, [rsp + 0x168]
call fcn.650100b0
mov rdx, qword [rsp + 0x188]
jmp 0x6500c768
test rdi, rdi
jne 0x6500c768
mov qword [rsp + 0x180], r13
lea rax, [rsp + 0x170]
cmp rdx, 8
cmovae rax, qword [rsp + 0x170]
mov word [rax], r13w
jmp 0x6500c7bb
test rdi, rdi
je 0x6500c7bb
lea rcx, [rsp + 0x170]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x170]
lea rbx, [rdi + rdi]
add rdx, rdx
mov r9, rbx
mov r8, rbp
call fcn.6501d7b0
mov qword [rsp + 0x180], rdi
lea rax, [rsp + 0x170]
cmp qword [rsp + 0x188], 8
cmovae rax, qword [rsp + 0x170]
mov word [rax + rbx], r13w
mov eax, dword [0x65047e28]
lea r14, [0x65047e10]
test al, 1
jne 0x6500c81c
or eax, 1
mov dword [0x65047e28], eax
mov rcx, r14
call fcn.65011210
mov qword [0x65047e18], rax
mov byte [rax + 0x69], 1
mov rax, qword [0x65047e18]
mov qword [rax + 8], rax
mov rax, qword [0x65047e18]
mov qword [rax], rax
mov rax, qword [0x65047e18]
mov qword [rax + 0x10], rax
mov qword [0x65047e20], r13
lea rcx, [0x65033540]
call fcn.6501e7f0
nop
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.6500e670
mov r11d, dword [0x65047e28]
test r11b, 1
jne 0x6500c897
or r11d, 1
mov dword [0x65047e28], r11d
mov rcx, r14
call fcn.65011210
mov qword [0x65047e18], rax
mov byte [rax + 0x69], 1
mov rax, qword [0x65047e18]
mov qword [rax + 8], rax
mov rax, qword [0x65047e18]
mov qword [rax], rax
mov rax, qword [0x65047e18]
mov qword [rax + 0x10], rax
mov qword [0x65047e20], r13
lea rcx, [0x65033540]
call fcn.6501e7f0
nop
mov r11d, dword [0x65047e28]
mov rbx, qword [0x65047e18]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x6500c8ad
cmp rsi, r14
je 0x6500c8b9
call fcn.6501dad0
mov r11d, dword [0x65047e28]
mov rdi, qword [rsp + 0x28]
cmp rdi, rbx
jne 0x6500cb79
mov qword [rsp + 0x120], 7
mov qword [rsp + 0x118], r13
mov word [rsp + 0x108], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x100]
call fcn.6500f550
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x190]
call fcn.6500d6c0
nop
lea rax, [rsp + 0x80]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], r13
mov word [rsp + 0x88], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x80]
call fcn.6500f550
nop
mov qword [rsp + 0x148], 7
mov qword [rsp + 0x140], r13
mov word [rsp + 0x130], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x128]
call fcn.6500f550
nop
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0xa8]
call fcn.65011620
mov rbx, rax
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.6500f550
nop
lea rdx, [rbx + 0x28]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r13
mov word [rsp + 0x60], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.6500f550
nop
mov eax, dword [0x65047e28]
test al, 1
jne 0x6500ca6c
or eax, 1
mov dword [0x65047e28], eax
mov rcx, r14
call fcn.65011210
mov qword [0x65047e18], rax
mov byte [rax + 0x69], 1
mov rax, qword [0x65047e18]
mov qword [rax + 8], rax
mov rax, qword [0x65047e18]
mov qword [rax], rax
mov rax, qword [0x65047e18]
mov qword [rax + 0x10], rax
mov qword [0x65047e20], r13
lea rcx, [0x65033540]
call fcn.6501e7f0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x150]
mov rcx, r14
call fcn.6500e3c0
nop
cmp qword [rsp + 0x78], 8
jb 0x6500ca94
mov rcx, qword [rsp + 0x60]
call fcn.6501d300
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r13
mov word [rsp + 0x60], 0
cmp qword [rsp + 0x50], 8
jb 0x6500cabb
mov rcx, qword [rsp + 0x38]
call fcn.6501d300
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], 0
cmp qword [rsp + 0xf0], 8
jb 0x6500cae8
mov rcx, qword [rsp + 0xd8]
call fcn.6501d300
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], r13
mov word [rsp + 0xd8], 0
cmp qword [rsp + 0xc8], 8
jb 0x6500cb1e
mov rcx, qword [rsp + 0xb0]
call fcn.6501d300
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], r13
mov word [rsp + 0xb0], 0
cmp qword [rsp + 0x1b0], 8
jb 0x6500cb54
mov rcx, qword [rsp + 0x198]
call fcn.6501d300
mov qword [rsp + 0x1b0], 7
mov qword [rsp + 0x1a8], r13
mov word [rsp + 0x198], 0
mov r11d, dword [0x65047e28]
movzx eax, byte [r12]
cmp eax, 0x100
jge 0x6500cc1d
test r11b, 1
jne 0x6500cbe1
or r11d, 1
mov dword [0x65047e28], r11d
mov rcx, r14
call fcn.65011210
mov qword [0x65047e18], rax
mov byte [rax + 0x69], 1
mov rax, qword [0x65047e18]
mov qword [rax + 8], rax
mov rax, qword [0x65047e18]
mov qword [rax], rax
mov rax, qword [0x65047e18]
mov qword [rax + 0x10], rax
mov qword [0x65047e20], r13
lea rcx, [0x65033540]
call fcn.6501e7f0
nop
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x150]
mov rcx, r14
call fcn.6500e670
lea rdx, [rsp + 0x20]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
mov r11d, dword [0x65047e28]
test r11b, 1
jne 0x6500cc75
or r11d, 1
mov dword [0x65047e28], r11d
mov rcx, r14
call fcn.65011210
mov qword [0x65047e18], rax
mov byte [rax + 0x69], 1
mov rax, qword [0x65047e18]
mov qword [rax + 8], rax
mov rax, qword [0x65047e18]
mov qword [rax], rax
mov rax, qword [0x65047e18]
mov qword [rax + 0x10], rax
mov qword [0x65047e20], r13
lea rcx, [0x65033540]
call fcn.6501e7f0
nop
mov rbx, qword [0x65047e18]
test rsi, rsi
je 0x6500cc86
cmp rsi, r14
je 0x6500cc8b
call fcn.6501dad0
cmp rdi, rbx
je 0x6500ccb6
test rsi, rsi
jne 0x6500cc9a
call fcn.6501dad0
cmp rdi, qword [rsi + 8]
jne 0x6500cca5
call fcn.6501dad0
cmp qword [rdi + 0x60], 8
jb 0x6500ccb2
mov rbp, qword [rdi + 0x48]
jmp 0x6500ccb6
lea rbp, [rdi + 0x48]
mov rax, qword [0x65045b00]
test rax, rax
jne 0x6500cce6
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.ReleaseMutex
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x65045b00], rax
mov rcx, qword [0x65047d30]
test rcx, rcx
jne 0x6500cd0e
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, rax
mov qword [0x65047d30], rax
mov rax, qword [0x65045b00]
call rax
nop
cmp qword [rsp + 0x188], 8
jb 0x6500cd29
mov rcx, qword [rsp + 0x170]
call fcn.6501d300
mov rax, rbp
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.6501e650
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret