Function at 0x1400039b0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
xor eax, eax
mov rdi, rcx
mov ecx, 0x104
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x38], 0
call qword [sym.imp.msvcrt.dll_malloc]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, str._Global
lea r8d, [r9 + 1]
xor edx, edx
mov dword [rsp + 0x28], 0x80
mov rbx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 2
lea rbp, [0x140006502]
lea rax, str.Global_
sete dl
xor ecx, ecx
cmp rsi, 0xffffffffffffffff
sete cl
test ecx, edx
cmove rbp, rax
cmp rsi, 0xffffffffffffffff
je 0x140003a5f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
jne 0x140003a83
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.Memory_allocation_failed:__m_n
add rcx, 0x60
call section..text
or eax, 0xffffffff
jmp 0x140003da1
lea rcx, str.Shared_memory_operation.
call qword [sym.imp.msvcrt.dll_puts]
lea r8, str._s_s
mov r9, rbp
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.msvcrt.dll__snprintf]
mov byte [rbx + 0x103], 0
mov eax, dword [0x140008324]
add eax, 0x1000
xor edx, edx
mov r8d, 0x8000004
mov r9, rax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbx
shr r9, 0x20
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
jne 0x140003b08
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.CreateFileMapping___failed:__m_n
add rcx, 0x60
call section..text
lea eax, [rsi + 2]
jmp 0x140003da1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140003b36
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.A_service_with_this_name_is_already_running._n
add rcx, 0x60
call section..text
mov eax, 2
jmp 0x140003da1
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 2]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov qword [0x140008928], rax
test rax, rax
jne 0x140003b82
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.MapViewOfFile___failed:__m_n
add rcx, 0x60
call section..text
mov eax, 2
jmp 0x140003da1
add rax, 0x1000
lea rdx, [rsp + 0x40]
mov r8d, 0x30
mov qword [0x140008930], rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140003bc6
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.VirtualQuery___failed:__m_n
add rcx, 0x60
call section..text
mov eax, 2
jmp 0x140003da1
mov eax, dword [rsp + 0x58]
add eax, 0xfffff000
cmp dword [0x140008324], eax
je 0x140003c28
mov rcx, qword [0x140008938]
mov dword [0x140008324], eax
test rcx, rcx
je 0x140003c28
call qword [sym.imp.msvcrt.dll_free]
mov ecx, dword [0x140008324]
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [0x140008938], rax
test rax, rax
jne 0x140003c28
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.malloc___failed:__m_n
add rcx, 0x60
call section..text
mov eax, 2
jmp 0x140003da1
lea r8, str._s_s_Server
mov r9, rbp
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.msvcrt.dll__snprintf]
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov byte [rbx + 0x103], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x1400088f0], rax
test rax, rax
jne 0x140003c86
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.CreateMutex___failed:__m_n
add rcx, 0x60
call section..text
mov eax, 2
jmp 0x140003da1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140003b15
lea r8, str._s_s_Request
mov r9, rbp
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.msvcrt.dll__snprintf]
mov r9, rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov byte [rbx + 0x103], 0
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400088f8], rax
test rax, rax
jne 0x140003cfa
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.CreateEvent___failed:__m_n
add rcx, 0x60
call section..text
mov eax, 2
jmp 0x140003da1
lea r8, str._s_s_Response
mov r9, rbp
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.msvcrt.dll__snprintf]
mov r9, rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov byte [rbx + 0x103], 0
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140008900], rax
test rax, rax
je 0x140003cd9
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
lea rcx, str.Waiting_for_connection_on_object__s._Press_CtrlC_to_cancel._n
mov rdx, rdi
mov dword [0x140008910], 1
call qword [sym.imp.msvcrt.dll_printf]
mov rcx, qword [0x1400088f8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140003d8f
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.Wait_failed:__m._n
add rcx, 0x60
call section..text
mov eax, 2
jmp 0x140003da1
lea rcx, str.Connection_on_object__s._n
mov rdx, rdi
call qword [sym.imp.msvcrt.dll_printf]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret