Function at 0x14005337c
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 [0x1400e5470]
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 + 0xd0], 0
jb 0x140053676
lea rcx, [rbp - 1]
call fcn.140052de8
nop
lea r9d, [r13 + 9]
lea r8, str..pipe_
mov rcx, rax
call fcn.140021188
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.140004584
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 0x140053477
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 0x14005347a
mov ebx, r13d
test ebx, ebx
js 0x140053652
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 0x1400534b5
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 0x1400534b8
mov ebx, r13d
test ebx, ebx
js 0x140053638
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 0x14005351d
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 0x1400535ff
mov ebx, 0x20
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x49]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp - 0x49], ebx
mov dword [rbp - 0x45], 0x80
mov dword [rbp - 0x41], 0x40000000
lea rax, [0x1400a3238]
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 0x140053598
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 0x14005359b
mov ebx, r13d
test ebx, ebx
js 0x1400535e5
lea r14, [rdi + 0x50]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
lea rcx, [rdi + 0xe0]
lea rdx, [rdi + 0x58]
lea r8, [rbp - 0x59]
call fcn.1400542fc
mov ebx, eax
test r14, r14
je 0x1400535d0
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 0x1400535e9
mov rdx, qword [rbp - 0x69]
test r14, r14
je 0x140053603
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14005369f
mov rdx, qword [rbp - 0x69]
test rdx, rdx
je 0x140053632
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
je 0x1400536b9
mov r14d, 0x80070000
test rsi, rsi
je 0x14005364e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400536d3
test ebx, ebx
jns 0x14005365b
mov eax, r13d
xchg dword [rdi + 0xd0], eax
test r15, r15
je 0x14005366d
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400536ea
lea rcx, [rbp - 0x21]
call fcn.140004584
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14009ae70
mov rbx, qword [rsp + 0x128]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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.14000b984
int3
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.14000b984
int3
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.14000b984
int3
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.14000b984
int3