Function at 0x180027050
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, 0x90
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rbp - 0x39], r13d
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x19], xmm1
mov word [rbp - 0x29], r13w
mov r15d, 1
mov dword [rbp - 0x39], r15d
lea r12, [rdx + 0x10]
mov rdx, qword [r12]
add rdx, 0x11
lea rcx, [rbp - 0x29]
call fcn.18000b590
mov rcx, qword [rbp - 0x19]
mov rdx, qword [rbp - 0x11]
mov rax, rdx
sub rax, rcx
cmp rax, 0x11
jb 0x180027129
lea rdi, [rcx + 0x11]
mov qword [rbp - 0x19], rdi
lea rbx, [rbp - 0x29]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x29]
lea rcx, [rbx + rcx*2]
lea r8d, [r13 + 0x22]
lea rdx, str.RCArchiveSession_
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x180027149
mov qword [rsp + 0x20], 0x11
lea r9, str.RCArchiveSession_
xor r8d, r8d
lea edx, [r8 + 0x11]
lea rcx, [rbp - 0x29]
call fcn.180009e00
cmp qword [r14 + 0x18], 8
jb 0x180027153
mov r14, qword [r14]
mov rdx, qword [r12]
mov rcx, qword [rbp - 0x19]
mov r8, qword [rbp - 0x11]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180027196
lea rdi, [rcx + rdx]
mov qword [rbp - 0x19], rdi
lea rbx, [rbp - 0x29]
cmp r8, 8
cmovae rbx, qword [rbp - 0x29]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r14
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x1800271aa
mov qword [rsp + 0x20], rdx
mov r9, r14
xor r8d, r8d
lea rcx, [rbp - 0x29]
call fcn.180009e00
lea rcx, [rbp - 9]
call fcn.180004df0
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rbp + 7], xmm1
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r13w
and r15d, 0xfffffffe
mov dword [rbp - 0x39], r15d
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r13w
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x180027200
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x80], r13
mov word [rsi + 0x88], 0
cmp qword [rbp + 7], 0
je 0x180027220
lea r8, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae r8, qword [rbp - 9]
jmp 0x180027223
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 0x80], rax
test rax, rax
je 0x18002724d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18002724d
mov byte [rsi + 0x89], 1
cmp qword [rsi + 0x80], 0
je 0x180027264
cmp byte [rsi + 0x89], 0
je 0x180027264
mov bl, 1
jmp 0x180027266
xor bl, bl
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x1800272a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800272a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800272a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r13w
movzx eax, bl
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret