Function at 0x2101349d0
Capabilities:
Map section object

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
mov esi, ecx
mov rbp, rdx
mov edi, r8d
test byte [0x210273880], 1
jne 0x210134dc8
lea r14, str.shm_guard
lea r12, [0x21025fe60]
mov rdx, r14
mov rcx, r12
call method.muto.init_char_const_
mov edx, 0xffffffff
mov rcx, rax
call method.muto.acquire_unsigned_int_
mov rbx, qword [0x210319988]
test rbx, rbx
jne 0x210134a3c
jmp 0x210134d70
mov rbx, qword [rbx]
test rbx, rbx
je 0x210134d70
cmp dword [rbx + 8], esi
jne 0x210134a30
add dword [rbx + 0x20], 1
mov rcx, r12
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 8]
sub rdx, 0x3200
call method.muto.release__cygtls_
test rbp, rbp
je 0x210134a92
mov ecx, dword [0x21034b048]
test dil, 2
je 0x210134a81
mov rax, rcx
neg rax
and rbp, rax
je 0x210134d20
mov rax, rbp
xor edx, edx
div rcx
test rdx, rdx
jne 0x210134d20
mov ecx, 0x20
call sym.operator_new_unsigned_long_
mov r8, qword [rbx + 0x18]
xor r9d, r9d
xor edx, edx
lea rcx, [0x2103186c0]
mov r13, rax
mov qword [rsp + 0x70], r8
call method.mmap_allocator.alloc_void__unsigned_long_long__bool_
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x78], rax
test dil, 1
jne 0x210134c90
lea rax, [rsp + 0x70]
xor r9d, r9d
lea r8, [rsp + 0x78]
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0x100000
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call sym.NtMapViewOfSection
test eax, eax
js 0x210134ce8
mov dword [rsp + 0x5c], 4
and edi, 0xfffffffd
lea r15, [rsp + 0x80]
mov r9d, 0xc0
mov edx, 6
lea r8, [rsp + 0xa8]
mov rcx, r15
mov dword [rsp + 0x58], edi
lea rdi, method.client_request_shm.client_request_shm__
mov rbp, qword [rsp + 0x78]
call method.client_request.client_request_client_request::request_code_t__void__unsigned_long_
mov qword [rsp + 0x80], rdi
mov dword [rsp + 0xa8], 0
call sym.msys_2.0.dll_getpid
mov dword [rsp + 0xb0], eax
call sym.GetCurrentProcessId
mov dword [rsp + 0xb4], eax
call sym.msys_2.0.dll_geteuid
mov dword [rsp + 0xb8], eax
call sym.msys_2.0.dll_getegid
mov byte [rsp + 0xd0], 0
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xbc], eax
mov rax, qword gs:[0x30]
mov dword [rsp + 0xc0], 0
mov r11, qword [rax + 8]
mov rax, qword [r11 - 0x21c8]
test rax, rax
je 0x210134f30
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0x58]
mov rcx, r15
mov dword [rsp + 0xe8], esi
mov qword [rsp + 0xf0], rbp
mov dword [rsp + 0xf8], eax
mov qword [rsp + 0x88], 0xc0
call method.client_request.make_request__
cmp eax, 0xffffffff
je 0x210134c23
cmp qword [rsp + 0xa8], 0
jne 0x210134e00
test byte [0x210273880], 1
jne 0x210134ea8
mov rcx, qword [rsp + 0x78]
call sym.UnmapViewOfFile
mov edx, 0x20
mov rcx, r13
call sym.operator_delete_void__unsigned_long_
mov ebp, dword [rsp + 0x90]
test byte [0x210273880], 1
jne 0x210134e68
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r12, 0xffffffffffffffff
mov dword [rax], ebp
call sym.msys_2.0.dll___errno
mov dword [rax], ebp
sub dword [rbx + 0x20], 1
mov rcx, r15
mov qword [rsp + 0x80], rdi
call method.client_request.client_request__
jmp 0x210134d50
lea rax, [rsp + 0x70]
xor r9d, r9d
lea r8, [rsp + 0x78]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0x100000
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call sym.NtMapViewOfSection
mov dword [rsp + 0x5c], 2
test eax, eax
jns 0x210134b24
mov r8d, eax
mov edx, 0xed
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_shm.cc
mov r12, 0xffffffffffffffff
call sym.seterrno_from_nt_status_char_const__int__int_
mov edx, 0x20
mov rcx, r13
call sym.operator_delete_void__unsigned_long_
sub dword [rbx + 0x20], 1
jmp 0x210134d50
test byte [0x210273880], 1
jne 0x210134f80
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r12, 0xffffffffffffffff
mov dword [rax], 0x16
call sym.msys_2.0.dll___errno
mov dword [rax], 0x16
sub dword [rbx + 0x20], 1
mov rax, r12
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test esi, esi
jne 0x210134ee0
test byte [0x210273880], 1
jne 0x210134ff0
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov dword [rax], 0x16
call sym.msys_2.0.dll___errno
mov rcx, r12
mov r12, 0xffffffffffffffff
mov dword [rax], 0x16
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 8]
sub rdx, 0x3200
call method.muto.release__cygtls_
jmp 0x210134d50
mov dword [rsp + 0x30], r8d
lea r9, str.shmat__shmid___d__shmaddr___p__shmflg___y_
lea r8, str.void_shmat_int__const_void__int_
mov qword [rsp + 0x28], rdx
mov edx, 0x10
mov dword [rsp + 0x20], ecx
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2101349f8
mov rax, qword [rsp + 0x78]
mov rcx, r12
mov rdx, r14
mov qword [r13 + 0x10], rbx
mov qword [r13 + 8], rax
mov eax, dword [rsp + 0x5c]
mov dword [r13 + 0x18], eax
call method.muto.init_char_const_
mov edx, 0xffffffff
mov rcx, rax
call method.muto.acquire_unsigned_int_
mov rax, qword [0x210319980]
mov rcx, r12
mov qword [0x210319980], r13
mov qword [r13], rax
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 8]
sub rdx, 0x3200
call method.muto.release__cygtls_
mov r12, qword [rsp + 0x78]
jmp 0x210134c76
lea rax, str.void_shmat_int__const_void__int_
mov dword [rsp + 0x30], ebp
lea r9, [0x2102a78df]
mov edx, 0x40
mov dword [rsp + 0x28], 0xfa
lea r8, [0x2102a78f8]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x210134c5b
mov eax, dword [rsp + 0x90]
lea r9, str._1___d___shmat___
lea r8, str.void_shmat_int__const_void__int_
mov edx, 0x10
lea rcx, [0x210273880]
mov dword [rsp + 0x20], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x210134c30
xor edx, edx
movsxd rcx, esi
mov r8d, 0x1000
call sym.shmget_1
cmp eax, 0xffffffff
je 0x210134d78
mov rbx, qword [0x210319988]
test rbx, rbx
jne 0x210134f1c
jmp 0x210134d78
mov rbx, qword [rbx]
test rbx, rbx
je 0x210134d78
cmp dword [rbx + 8], esi
jne 0x210134f10
jmp 0x210134a41
lea r10, [r11 - 0x3200]
mov qword [rsp + 0x68], r11
mov rcx, r10
mov qword [rsp + 0x60], r10
call method._cygtls.lock__
mov r11, qword [rsp + 0x68]
mov r10, qword [rsp + 0x60]
cmp qword [r11 - 0x21c8], 0
je 0x210134fc0
mov rcx, r10
mov qword [rsp + 0x60], r11
call method._cygtls.unlock__
mov r11, qword [rsp + 0x60]
mov rax, qword [r11 - 0x21c8]
jmp 0x210134bd9
lea rax, str.void_shmat_int__const_void__int_
mov dword [rsp + 0x30], 0x16
lea r9, [0x2102a78df]
mov edx, 0x40
mov dword [rsp + 0x28], 0xd2
lea r8, [0x2102a78f8]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x210134d2d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x68], r10
mov qword [rsp + 0x60], r11
call sym.CreateEventA
mov r11, qword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
mov qword [r11 - 0x21c8], rax
jmp 0x210134f5d
lea rax, str.void_shmat_int__const_void__int_
mov dword [rsp + 0x30], 0x16
lea r9, [0x2102a78df]
mov edx, 0x40
mov dword [rsp + 0x28], 0xbc
lea r8, [0x2102a78f8]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x210134d85