Function at 0x140051c0c
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1400e1300]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12, r8
mov esi, edx
mov rdi, rcx
xor r13d, r13d
mov qword [r8], r13
mov ebx, 0x8000000a
lock bts dword [rcx + 0xd8], 0
jb 0x140051f5c
lea rcx, [rbp - 1]
call fcn.140051690
nop
lea r9d, [r13 + 9]
lea r8, str..pipe_
mov rcx, rax
call fcn.140053218
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x11], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rcx, [rbp - 1]
call fcn.1400045b4
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rcx, qword [rbp - 0x21]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov eax, 0x200000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9d, [r13 + 2]
xor r8d, r8d
mov edx, 0x40000003
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreateNamedPipeW]
mov r15, rax
mov r14d, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x140051d07
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x140051d0a
mov ebx, r13d
test ebx, ebx
js 0x140051f21
mov r8d, esi
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140051d45
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
mov eax, 0x80004005
cmovns ebx, eax
jmp 0x140051d48
mov ebx, r13d
test ebx, ebx
js 0x140051ef4
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], rsi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x69]
mov r8, rsi
mov rdx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x140051dad
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
mov eax, 0x80004005
cmovns ebx, eax
test ebx, ebx
js 0x140051ea5
mov ebx, 0x20
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x49]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
mov dword [rbp - 0x49], ebx
mov dword [rbp - 0x45], 0x80
mov dword [rbp - 0x41], 0x40000000
lea rax, [0x1400a14f0]
mov qword [rbp - 0x59], rax
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9d, [rbx - 0x1d]
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_CreateFile2]
mov r14, rax
mov qword [rbp - 0x51], rax
cmp rax, 0xffffffffffffffff
jne 0x140051e28
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140051e2b
mov ebx, r13d
test ebx, ebx
js 0x140051e75
lea r14, [rdi + 0x58]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
lea rcx, [rdi + 0xe8]
lea rdx, [rdi + 0x60]
lea r8, [rbp - 0x59]
call fcn.140052ab0
mov ebx, eax
test r14, r14
je 0x140051e60
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rbp - 0x69]
mov rdx, r13
mov qword [rbp - 0x69], rdx
mov qword [r12], rcx
mov r14, qword [rbp - 0x51]
jmp 0x140051e79
mov rdx, qword [rbp - 0x69]
test r14, r14
je 0x140051ea9
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x140051ea5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000b684
int3
mov rdx, qword [rbp - 0x69]
test rdx, rdx
je 0x140051eee
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x140051eee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000b684
int3
mov r14d, 0x80070000
test rsi, rsi
je 0x140051f1d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x140051f1d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
call fcn.14000b684
int3
test ebx, ebx
jns 0x140051f2a
mov eax, r13d
xchg dword [rdi + 0xd8], eax
test r15, r15
je 0x140051f53
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x140051f53
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
call fcn.14000b684
int3
lea rcx, [rbp - 0x21]
call fcn.1400045b4
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140098120
mov rbx, qword [rsp + 0x128]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret