Function at 0x14000183e
Capabilities:
Create pipe

Disassembly:
jmp 0x140137f2c
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov edi, r8d
mov r14, rcx
xor r15d, r15d
test rcx, rcx
jne 0x140137f86
call fcn.140004525
mov dword [rax], r15d
call fcn.140002da1
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400017a3
or eax, 0xffffffff
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
or ebx, 0xffffffff
mov dword [rcx + 4], ebx
mov dword [rcx], ebx
test edi, 0xffff3f7f
je 0x140137fb2
call fcn.140004525
mov dword [rax], r15d
call fcn.140002da1
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400017a3
mov eax, ebx
jmp 0x140137f6c
mov eax, edi
mov ecx, 0xc000
and eax, ecx
cmp eax, ecx
je 0x140137f96
mov r12d, 0x18
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r15
mov eax, edi
shr eax, 7
not eax
and eax, 1
mov dword [rsp + 0x58], eax
mov r9d, edx
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140138008
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400027f2
jmp 0x140137fae
call fcn.140004778
movsxd rsi, eax
mov dword [rsp + 0xa8], esi
cmp esi, ebx
jne 0x140138046
call fcn.140002da1
mov dword [rax], r12d
call fcn.140004525
mov dword [rax], r15d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140137fae
mov r12, rsi
mov r13, rsi
sar r13, 6
lea rdx, [0x1401af8e0]
mov rax, rsi
and eax, 0x3f
lea rcx, [rax + rax*8]
mov qword [rsp + 0x40], rcx
mov rax, qword [rdx + r13*8]
mov byte [rax + rcx*8 + 0x38], 0x89
mov rax, qword [rdx + r13*8]
mov byte [rax + rcx*8 + 0x39], r15b
mov rax, qword [rdx + r13*8]
and byte [rax + rcx*8 + 0x3d], 0xfe
mov ecx, esi
call fcn.140005619
call fcn.140004778
movsxd r15, eax
mov dword [rsp + 0xa8], r15d
cmp r15d, ebx
jne 0x1401380ca
lea rcx, [0x1401af8e0]
mov rax, qword [rcx + r13*8]
mov rcx, qword [rsp + 0x40]
mov byte [rax + rcx*8 + 0x38], 0
call fcn.140002da1
mov dword [rax], 0x18
call fcn.140004525
and dword [rax], 0
jmp 0x14013802b
mov rax, r15
mov r13, r15
sar r13, 6
and eax, 0x3f
lea rbx, [rax + rax*8]
lea rcx, [0x1401af8e0]
mov rax, qword [rcx + r13*8]
mov byte [rax + rbx*8 + 0x38], 0x89
mov rax, qword [rcx + r13*8]
mov byte [rax + rbx*8 + 0x39], 0
mov rax, qword [rcx + r13*8]
and byte [rax + rbx*8 + 0x3d], 0xfe
mov ecx, r15d
call fcn.140005619
and dword [rsp + 0x90], 0
lea rcx, [rsp + 0x90]
call fcn.1400043a9
test eax, eax
jne 0x1401381ba
mov eax, 0x8000
test eax, edi
jne 0x14013813a
bt edi, 0xe
jb 0x140138166
cmp dword [rsp + 0x90], eax
jne 0x140138166
mov rdx, r12
sar rdx, 6
mov rax, r12
and eax, 0x3f
lea rcx, [rax + rax*8]
lea r8, [0x1401af8e0]
mov rax, qword [r8 + rdx*8]
and byte [rax + rcx*8 + 0x38], 0x7f
mov rax, qword [r8 + r13*8]
and byte [rax + rbx*8 + 0x38], 0x7f
jmp 0x14013816d
lea r8, [0x1401af8e0]
test dil, dil
jns 0x140138193
mov rax, r12
sar rax, 6
and r12d, 0x3f
lea rcx, [r12 + r12*8]
mov rax, qword [r8 + rax*8]
or byte [rax + rcx*8 + 0x38], 0x10
mov rax, qword [r8 + r13*8]
or byte [rax + rbx*8 + 0x38], 0x10
mov rdx, qword [rsp + 0x30]
mov ecx, esi
call fcn.140005b05
mov rdx, qword [rsp + 0x38]
mov ecx, r15d
call fcn.140005b05
mov dword [r14], esi
mov dword [r14 + 4], r15d
xor eax, eax
jmp 0x140137f6c
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000510a
nop
int3