Function at 0x140057230
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1400cc0b8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rsi, rcx
xor edi, edi
cmp qword [rcx + 0x38], rdi
jg 0x140057342
mov rcx, qword [rcx + 0x28]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 9
jb 0x140057537
lea rax, [rsi + 0x18]
cmp qword [rsi + 0x30], 8
jb 0x140057292
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str..pipe_
lea rcx, [rbp - 0x21]
call fcn.14001de74
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rcx, qword [rbp - 0x21]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov edx, 3
lea r9d, [rdx - 2]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
mov rcx, qword [rsi + 0x38]
cmp rax, rcx
je 0x140057302
test rcx, rcx
jle 0x1400572fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], rbx
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x140057342
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005733d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005753d
call fcn.14006c550
call fcn.1400147cc
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
xor r8d, r8d
lea rdx, [0x1400b8c44]
lea rcx, [rbp - 0x21]
call fcn.140009374
nop
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.140028ea0
nop
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x1400573ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400573b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140057531
call fcn.14006c550
call fcn.1400147cc
mov rcx, qword [rax]
mov rax, qword [rsi]
mov edx, dword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov dword [rbp - 0x29], edi
cmp rcx, 0xffffffffffffffff
jne 0x1400573e6
mov edi, 0xc00000c0
jmp 0x14005750c
mov dword [rbp - 0x19], edx
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x15], 1
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp - 0x21]
mov edx, 0x8005e01c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140057443
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x1250]
test edi, edi
js 0x14005750c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
lea ecx, [rax + 0x38]
call fcn.14006c558
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp + 0x17], rax
call fcn.1400147cc
mov rcx, rax
mov rax, qword [rsi]
lea rdx, [rbp - 1]
mov qword [rsp + 0x20], rdx
lea r8, [rsi + 0x18]
mov edx, dword [rax + 8]
call fcn.140029510
test eax, eax
js 0x1400574c6
lea rdx, [rsi + 8]
lea rax, [rbp + 0x17]
cmp rdx, rax
je 0x1400574c6
mov r8, qword [rdx]
mov rax, qword [rbp + 0x17]
mov qword [rdx], rax
mov qword [rbp + 0x17], r8
mov rcx, qword [rdx + 8]
mov rax, qword [rbp + 0x1f]
mov qword [rdx + 8], rax
mov qword [rbp + 0x1f], rcx
jmp 0x1400574ca
mov r8, qword [rbp + 0x17]
mov rbx, qword [r8 + 8]
cmp byte [rbx + 0x19], 0
jne 0x1400574ff
mov r8, qword [rbx + 0x10]
lea rdx, [rbp + 0x17]
lea rcx, [rbp + 0x17]
call fcn.140057b40
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x38
call fcn.14006c550
cmp byte [rbx + 0x19], 0
je 0x1400574d4
mov r8, qword [rbp + 0x17]
mov edx, 0x38
mov rcx, r8
call fcn.14006c550
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14006c530
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14007d788
int3
call fcn.1400012b0
int3
call fcn.14007d788
int3