Function at 0x140047030
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 [0x1400ad368]
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 0x140047085
xor esi, esi
mov edi, esi
jmp 0x1400470b8
mov qword [rsp + 0x118], r15
mov r15d, dword [rbp + 0x80]
and r15d, 1
je 0x1400470e3
cmp r14, 0x100000
jbe 0x1400470e3
mov edi, 0xa
mov rcx, rbx
call fcn.140046fc0
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.140050ca0
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.140025180
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.140027c50
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 0x1400470a8
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.140025180
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.140027c50
xor r9d, r9d
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x58]
test r15d, r15d
je 0x1400471f3
lea rax, [rbp - 0x80]
mov r8d, 0x4000004
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100020
jmp 0x140047207
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 [0x1400ad128]
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 0x1400470a8
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
test r15d, r15d
je 0x140047287
mov qword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x140047296
lea rdx, [r14 + 0x20]
mov r9d, edi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400470a8
jmp 0x140047296
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 0x1400470a8
test r12b, r12b
jne 0x140047317
lea r8, [r14 + 0x20]
xor edx, edx
mov rcx, rax
call fcn.1400538a0
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 0x1400470b0
cmp dword [rax], 0x20
jne 0x1400470a8
cmp dword [rax + 8], 0x43646f4e
jne 0x1400470a8
cmp dword [rax + 0xc], 0x206d6d6f
jne 0x1400470a8
cmp dword [rax + 0x10], 2
jne 0x1400470a8
test r15d, r15d
je 0x140047367
mov rdx, r14
mov rcx, rbx
call fcn.140047380
test eax, eax
jne 0x1400470a8
mov byte [rbx + 0x18], 1
mov edi, esi
jmp 0x1400470b0
mov eax, dword [rax + 0x1c]
cmp rax, r14
jb 0x1400470a8
mov byte [rbx + 0x18], 1
mov edi, esi
jmp 0x1400470b0