Function at 0x180022740
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rsp + 0x118], rbx
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r8
mov r12, rdx
mov r14, rcx
mov qword [rbp - 0x61], rcx
xor esi, esi
mov dword [rbp - 0x79], esi
call fcn.1800038c0
nop
mov byte [r14], sil
lea ecx, [rsi + 8]
call fcn.1800d8074
mov rbx, rax
mov qword [rbp - 0x31], rax
mov rcx, rax
call fcn.1800038c0
nop
lea ecx, [rsi + 8]
call fcn.1800d8074
mov qword [rbp - 0x71], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbx], rax
mov qword [r14 + 8], rbx
lea rbx, [r14 + 0x30]
mov qword [rbp - 0x31], rbx
mov rcx, rbx
call fcn.1800038c0
nop
mov qword [rbx], rsi
mov word [rbx + 8], si
mov qword [r14 + 0x40], rsi
mov qword [r14 + 0x48], rsi
mov qword [r14 + 0x50], rsi
lea rcx, [r14 + 0x58]
call fcn.180003c60
nop
mov rcx, r12
call fcn.180005c00
test al, al
jne 0x180022805
mov rcx, r15
call fcn.180005c00
lea rcx, [r14 + 0x40]
call fcn.180003800
mov rdx, qword [r14 + 0x48]
mov rcx, qword [r14 + 0x40]
call fcn.180024e30
mov rax, qword [r14 + 0x40]
mov qword [r14 + 0x48], rax
xor eax, eax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x20], rax
mov qword [r14 + 0x28], rax
mov r8, r15
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.180099c60
nop
mov rdx, rax
lea rcx, [r14 + 0x58]
call fcn.180005c40
nop
lea rcx, [rbp - 0x29]
call fcn.180003b80
lea rdx, str.RC_SAFE_140D511E_F5F7_419D_95B8_F66D4E2333D5
lea rcx, [rbp - 9]
call fcn.180003bb0
nop
mov rdx, r15
lea rcx, [rbp - 0x29]
call fcn.1800998d0
mov r12, rax
mov r15d, 1
mov dword [rbp - 0x79], r15d
lea rcx, [rbp - 0x29]
call fcn.1800038c0
mov ecx, 0x2e
mov word [rbp - 0x39], cx
mov qword [rbp - 0x31], 0xffffffffffffffff
mov r13, qword [rax + 0x10]
mov rcx, rax
call fcn.180003ef0
mov rdi, rax
test r13, r13
je 0x18002292c
lea rax, [r13 - 1]
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x31]
call fcn.180004d90
mov rcx, qword [rax]
lea rcx, [rdi + rcx*2]
lea rdx, [rbp - 0x39]
call fcn.18001c620
test al, al
jne 0x1800228f6
nop dword [rax]
cmp rcx, rdi
je 0x18002292c
sub rcx, 2
lea rdx, [rbp - 0x39]
call fcn.18001c620
test al, al
je 0x1800228e0
sub rcx, rdi
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x18002292c
mov r9, rcx
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.18001c030
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.180005c40
nop
lea rcx, [rbp - 0x59]
call fcn.180003b80
mov rdx, r12
lea rcx, [rbp - 9]
call fcn.180012d20
and r15d, 0xfffffffe
mov dword [rbp - 0x79], r15d
lea rcx, [rbp - 0x29]
call fcn.180003b80
mov rcx, qword [rbx]
test rcx, rcx
je 0x18002295a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov word [rbx + 8], 0
lea rcx, [rbp - 9]
call fcn.180005c00
test al, al
jne 0x180022979
lea rcx, [rbp - 9]
call fcn.180003a80
mov rsi, rax
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x18002299f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18002299f
mov byte [rbx + 9], 1
lea rcx, [rbp - 9]
call fcn.180003b80
nop
mov rax, r14
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret