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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rbx, rdx
lea r8, [rsp + 0x40]
xor ebp, ebp
xor edi, edi
and qword [rsp + 0x20], rdi
mov r9d, 0x100
xor r15d, r15d
xor r14d, r14d
xor r12d, r12d
lea esi, [rbp + 2]
mov edx, esi
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x180018b37
mov eax, dword [rsp + 0x44]
lea r13d, [r15 + 1]
mov r9d, r13d
mov dword [rsp + 0x30], eax
xor r8d, r8d
lea rdx, str.Local_
lea rcx, [rsp + 0x30]
call fcn.180017e6c
mov r15, rax
test rax, rax
je 0x180018b37
mov r9d, r13d
lea rdx, str.Local_
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.180017e6c
mov rbp, rax
test rax, rax
je 0x180018b37
mov r9d, r13d
lea rdx, str.Local_
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.180017e6c
mov r14, rax
test rax, rax
je 0x180018b37
mov r9d, r13d
lea rdx, str.Local_
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.180017e6c
mov r13, rax
test rax, rax
je 0x180018b37
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.Local_
lea rcx, [rsp + 0x30]
call fcn.180017e6c
mov r12, rax
test rax, rax
je 0x180018b37
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, str.Local_
lea rcx, [rsp + 0x30]
call fcn.180017e6c
mov rdi, rax
test rax, rax
je 0x180018b37
mov r9, r14
lea edx, [rsi - 1]
xor r8d, r8d
lea rcx, [0x1800356c8]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 8], rax
test rax, rax
je 0x180018b37
mov r9, r13
lea edx, [rsi - 1]
xor r8d, r8d
lea rcx, [0x1800356c8]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180018b37
mov r8, rbp
lea rcx, [0x1800356c8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx], rax
test rax, rax
je 0x180018b37
mov r13d, dword [rsp + 0x198]
test r13d, r13d
jne 0x180018a57
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180018b43
xor r9d, r9d
mov qword [rsp + 0x28], r15
mov esi, 0x298
lea rdx, [0x1800356c8]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x180018b37
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rax
lea esi, [r9 + 6]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x180018b37
test r13d, r13d
je 0x180018bdb
lea rdx, [rax + 0x170]
lea rcx, [rsp + 0x30]
call fcn.180017dbc
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x40]
add rcx, 0x198
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [rsp + 0x190]
lea rdx, [0x1800356c8]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x180018b37
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x180018c20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
je 0x180018b62
mov rcx, rbx
call fcn.180018c54
test rdi, rdi
je 0x180018b62
mov rcx, qword [0x180035658]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x180018b79
mov rcx, qword [0x180035658]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbp, rbp
je 0x180018b90
mov rcx, qword [0x180035658]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
je 0x180018ba7
mov rcx, qword [0x180035658]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r15, r15
je 0x180018bbe
mov rcx, qword [0x180035658]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, rdi
xor edx, edx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x180018b37
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x40], rax
test rax, rax
je 0x180018b37
mov esi, dword [rsp + 0x190]
mov dword [rbx + 0x48], esi
xor esi, esi
mov qword [rbx + 0x30], rdi
jmp 0x180018b62