Function at 0x1401a1c10
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp], rax
lea rax, [rcx + 0x20]
mov rbx, rcx
mov rcx, rax
mov qword [rsp + 0x70], rax
mov r14, r9
mov r13d, r8d
mov r12d, edx
mov edi, 4
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x10], 0
je 0x1401a1c65
xor esi, esi
mov edi, esi
jmp 0x1401a1c98
mov qword [rsp + 0x118], r15
mov r15d, dword [rbp + 0x80]
and r15d, 1
je 0x1401a1cc3
cmp r14, 0x100000
jbe 0x1401a1cc3
mov edi, 0xa
mov rcx, rbx
call fcn.1401a1ba0
mov r15, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x120
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor esi, esi
mov dword [rsp + 0x30], r13d
lea rax, str.Global_
mov dword [rsp + 0x28], r12d
lea r9, str._sNODCOMM_08XTo_08XBroadcastMutex
mov dword [rsp + 0x58], 0x18
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x68], esi
lea edx, [rsi + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsi - 1]
call fcn.1400138a0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x4c], rsi
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x40], 0x10000000
mov byte [rsp + 0x44], 1
mov dword [rsp + 0x48], 0x120001
call fcn.1401a5bf0
lea r8, [rbp - 0x80]
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, qword [rsp + 0x60]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rbx], rsi
je 0x1401a1c88
mov dword [rsp + 0x30], r13d
lea rax, str.Global_
mov dword [rsp + 0x28], r12d
lea r9, str._sNODCOMM_08XTo_08XBroadcast
lea edx, [rsi + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsi - 1]
lea rcx, [rbp - 0x80]
call fcn.1400138a0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x4c], rsi
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x40], 0x10000000
mov byte [rsp + 0x44], 1
mov dword [rsp + 0x48], 0x20004
call fcn.1401a5bf0
xor r9d, r9d
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x58]
test r15d, r15d
je 0x1401a1dd3
lea rax, [rbp - 0x80]
mov r8d, 0x4000004
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100020
jmp 0x1401a1de7
lea rcx, [rbp - 0x80]
mov r8d, edi
lea eax, [r14 + 0x20]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov rcx, 0xffffffffffffffff
call qword [case.0x1401ba071.160]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
cmp eax, 0xb7
sete r12b
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401a1c88
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
test r15d, r15d
je 0x1401a1e67
mov qword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x1401a1e76
lea rdx, [r14 + 0x20]
mov r9d, edi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1401a1c88
jmp 0x1401a1e76
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1401a1c88
test r12b, r12b
jne 0x1401a1ef7
lea r8, [r14 + 0x20]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x10]
lea ecx, [r14 + 0x20]
mov edi, esi
mov dword [rax], 0x20
mov rax, qword [rbx + 0x10]
mov dword [rax + 4], ecx
mov rax, qword [rbx + 0x10]
mov ecx, dword [rbp + 0x80]
mov dword [rax + 8], 0x43646f4e
mov rax, qword [rbx + 0x10]
mov dword [rax + 0xc], 0x206d6d6f
mov rax, qword [rbx + 0x10]
mov dword [rax + 0x10], 2
mov rax, qword [rbx + 0x10]
mov dword [rax + 0x14], ecx
mov rax, qword [rbx + 0x10]
mov dword [rax + 0x18], 0x20
mov rax, qword [rbx + 0x10]
mov dword [rax + 0x1c], r14d
mov byte [rbx + 0x18], 1
jmp 0x1401a1c90
cmp dword [rax], 0x20
jne 0x1401a1c88
cmp dword [rax + 8], 0x43646f4e
jne 0x1401a1c88
cmp dword [rax + 0xc], 0x206d6d6f
jne 0x1401a1c88
cmp dword [rax + 0x10], 2
jne 0x1401a1c88
test r15d, r15d
je 0x1401a1f47
mov rdx, r14
mov rcx, rbx
call fcn.1401a1f60
test eax, eax
jne 0x1401a1c88
mov byte [rbx + 0x18], 1
mov edi, esi
jmp 0x1401a1c90
mov eax, dword [rax + 0x1c]
cmp rax, r14
jb 0x1401a1c88
mov byte [rbx + 0x18], 1
mov edi, esi
jmp 0x1401a1c90