Function at 0x140054390
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400f4080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
cmp qword [rcx + 0x38], r12
jg 0x14005457c
lea rsi, [rcx + 0x18]
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x69], 7
mov word [rsp + 0x48], r12w
mov dword [rsp + 0x40], 1
mov r14, qword [rsi + 0x10]
add r14, 9
cmp r14, 8
jb 0x1400544b7
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x140054837
mov rax, r14
or rax, 7
cmp rax, rbx
ja 0x14005443a
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x14005445d
mov rdx, r8
jmp 0x140054466
cmp rdx, 0x1000
jb 0x14005448d
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.14006967c
test rax, rax
je 0x14005483d
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x1400544a2
test rdx, rdx
je 0x14005449f
mov rcx, rdx
call fcn.14006967c
mov rcx, rax
jmp 0x1400544a2
mov rcx, r12
mov qword [rbp - 0x69], rbx
movzx eax, word [rsp + 0x48]
mov word [rcx], ax
mov qword [rsp + 0x48], rcx
mov qword [rbp - 0x71], r12
mov r8d, 9
lea rdx, str..pipe_
lea rcx, [rsp + 0x48]
call fcn.1400080f4
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x1400544dc
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400080f4
lea rcx, [rsp + 0x48]
cmp qword [rbp - 0x69], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov edx, 3
lea r9d, [rdx - 2]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
mov rcx, qword [rdi + 0x38]
cmp rax, rcx
je 0x14005453b
test rcx, rcx
jle 0x140054537
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x38], rbx
mov rdx, qword [rbp - 0x69]
cmp rdx, 8
jb 0x14005457c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054577
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054843
call fcn.140069674
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x1400f9c14], eax
jle 0x1400545dc
lea rcx, [0x1400f9c14]
call fcn.14006990c
cmp dword [0x1400f9c14], 0xffffffff
jne 0x1400545dc
mov dword [0x1400f9c24], r12d
mov qword [0x1400f9c18], r12
mov dword [0x1400f9c20], 0xc0000225
lea rcx, [0x1400b45d0]
call fcn.140069cd8
lea rcx, [0x1400f9c14]
call fcn.1400698ac
movdqa xmm0, xmmword [0x1400d6210]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], r12w
lea rdx, [0x1400d3bd8]
lea rcx, [rbp - 0x61]
call fcn.140003dc0
nop
lea rdx, [rbp - 0x61]
lea rcx, [0x1400f9c18]
call fcn.140023500
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x140054650
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005464b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054831
call fcn.140069674
mov eax, dword [rsi]
cmp dword [0x1400f9c14], eax
jle 0x14005469f
lea rcx, [0x1400f9c14]
call fcn.14006990c
cmp dword [0x1400f9c14], 0xffffffff
jne 0x14005469f
mov dword [0x1400f9c24], r12d
mov qword [0x1400f9c18], r12
mov dword [0x1400f9c20], 0xc0000225
lea rcx, [0x1400b45d0]
call fcn.140069cd8
lea rcx, [0x1400f9c14]
call fcn.1400698ac
mov rax, qword [rdi]
mov edx, dword [rax + 8]
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov dword [rbp - 0x39], r12d
mov rcx, qword [0x1400f9c18]
cmp rcx, 0xffffffffffffffff
jne 0x1400546d2
mov ebx, 0xc00000c0
jmp 0x140054807
mov dword [rbp - 1], edx
mov qword [rbp - 9], r15
mov dword [rbp + 3], 1
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp - 9]
mov edx, 0x8005e01c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14005471d
mov ebx, r12d
jmp 0x140054734
mov rax, qword gs:[0x30]
mov ebx, dword [rax + 0x1250]
test ebx, ebx
js 0x140054807
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
call fcn.140011970
mov qword [rbp - 0x19], rax
mov eax, dword [rsi]
cmp dword [0x1400f9c14], eax
jle 0x1400547a2
lea rcx, [0x1400f9c14]
call fcn.14006990c
cmp dword [0x1400f9c14], 0xffffffff
jne 0x1400547a2
mov dword [0x1400f9c24], r12d
mov qword [0x1400f9c18], r12
mov dword [0x1400f9c20], 0xc0000225
lea rcx, [0x1400b45d0]
call fcn.140069cd8
lea rcx, [0x1400f9c14]
call fcn.1400698ac
mov rax, qword [rdi]
lea r8, [rdi + 0x18]
lea rdx, [rbp - 0x31]
mov qword [rsp + 0x20], rdx
mov edx, dword [rax + 8]
lea rcx, [0x1400f9c18]
call fcn.140023b90
test eax, eax
js 0x1400547f0
lea r8, [rdi + 8]
lea rax, [rbp - 0x19]
cmp r8, rax
je 0x1400547f0
mov rcx, qword [r8]
mov rax, qword [rbp - 0x19]
mov qword [r8], rax
mov qword [rbp - 0x19], rcx
mov rdx, qword [r8 + 8]
mov rcx, qword [rbp - 0x11]
mov qword [r8 + 8], rcx
mov qword [rbp - 0x11], rdx
lea rcx, [rbp - 0x19]
call fcn.140054e00
mov edx, 0x38
mov rcx, qword [rbp - 0x19]
call fcn.140069674
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140069650
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400927c0
nop
call fcn.1400080e0
nop
call fcn.1400927c0
nop
call fcn.1400927c0
int3