Function at 0x1800bdd60
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x4a8
mov rax, qword [0x1801c1080]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov r14d, r8d
mov r15, rdx
mov rbx, rcx
call fcn.1800be360
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.1801099b0
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.1801099b0
test rsi, rsi
je 0x1800be0bb
cmp word [rsi], 0
je 0x1800be0bb
mov r9, rsi
mov qword [rsp + 0x490], r12
lea r8, str._s_accessmutex
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.180055230
lea rax, [rsp + 0x60]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x60]
mov edx, 0x104
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1800bde27
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1800bde27
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1800bde04
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor r12d, r12d
lea rcx, [rsp + 0x60]
mov word [rax], r12w
call fcn.1800be4e0
call fcn.180052320
mov ecx, r12d
cmp dword [rax + 0x134], 1
jne 0x1800bde5c
cmp qword [rax + 8], rcx
cmovne rcx, rax
xor r8d, r8d
mov qword [rsp + 0x498], rdi
lea r9, [rsp + 0x60]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x228], rax
test rax, rax
je 0x1800be0ae
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.180052320
mov rcx, r12
cmp dword [rax + 0x134], 1
jne 0x1800bdea7
cmp qword [rax + 8], rcx
cmovne rcx, rax
lea r8, [rsp + 0x270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x1800be0ae
mov edx, 0xffffffff
mov qword [rsp + 0x4a0], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rbp, [rbx + 8]
mov r8, rsi
mov rcx, rbp
mov edx, 0x104
call fcn.18005a370
xor ecx, ecx
lea esi, [r14 + 0x50]
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.180052320
mov rdx, r12
cmp dword [rax + 0x134], 1
jne 0x1800bdf12
cmp qword [rax + 8], rdx
cmovne rdx, rax
xor r9d, r9d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], esi
lea rcx, [r9 - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, qword [rsp + 0x4a0]
mov qword [rbx + 0x210], rax
test rax, rax
jne 0x1800bdf4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800be067
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800bdf62
mov dword [rbx + 0x220], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 0x210]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x218], rax
test rax, rax
jne 0x1800bdfb4
mov rcx, qword [rbx + 0x210]
test rcx, rcx
je 0x1800be067
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x210], r12
jmp 0x1800be067
cmp dword [rbx + 0x220], r12d
jne 0x1800bdff2
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.1801099b0
mov rax, qword [rbx + 0x218]
mov r8, r14
mov rdx, r15
mov dword [rax], esi
mov rcx, qword [rbx + 0x218]
add rcx, 0x50
call fcn.180109540
mov rax, qword [rbx + 0x218]
jmp 0x1800be038
xor ecx, ecx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
lea r8d, [rcx + 0x30]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rax, qword [rbx + 0x218]
mov ecx, dword [rax]
cmp dword [rsp + 0x48], ecx
jb 0x1800be05f
cmp ecx, 0x50
jbe 0x1800be05f
test rax, rax
je 0x1800be051
mov rcx, qword [rbx + 0x228]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0x218]
test rax, rax
mov ebx, 0x80004005
cmovne ebx, r12d
jmp 0x1800be06c
mov rcx, rbx
call fcn.1800be360
mov ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x498]
mov r12, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1801027e0
add rsp, 0x4a8
pop r15
pop r14
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x1800be080
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80070057
jmp 0x1800be090