Function at 0x1400895ff
Capabilities:
Create pipe

Disassembly:
jmp 0x14015a980
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp qword [rsp + 0x90], 0
je 0x14015a9aa
mov dword [rsp + 0x38], 1
jmp 0x14015a9b2
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14015a9fb
lea rax, str.phandles___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x1401aea98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, socket
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.14008967c
cmp eax, 1
jne 0x14015a9fb
int3
cmp dword [rsp + 0x3c], 0
jne 0x14015aa4b
call fcn.14008b71a
mov dword [rax], 0
call fcn.14008a65d
mov dword [rax], socket
mov qword [rsp + 0x20], 0
mov r9d, socket
lea r8, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
lea rdx, str._pipe
lea rcx, str.phandles___nullptr
call fcn.14008c3f9
mov eax, 0xffffffff
jmp 0x14015b093
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x90]
mov dword [rcx + rax], 0xffffffff
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x90]
mov dword [rcx + rax], 0xffffffff
mov eax, dword [rsp + 0xa0]
and eax, 0xffff3f7f
test eax, eax
jne 0x14015aa95
mov dword [rsp + 0x40], 1
jmp 0x14015aa9d
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14015aae6
lea rax, str._textmode____O_NOINHERIT___O_BINARY___O_TEXT____0
mov qword [rsp + 0x28], rax
lea rax, [0x1401aea98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x19
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.14008967c
cmp eax, 1
jne 0x14015aae6
int3
cmp dword [rsp + 0x44], 0
jne 0x14015ab36
call fcn.14008b71a
mov dword [rax], 0
call fcn.14008a65d
mov dword [rax], socket
mov qword [rsp + 0x20], 0
mov r9d, 0x19
lea r8, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
lea rdx, str._pipe
lea rcx, str._textmode____O_NOINHERIT___O_BINARY___O_TEXT____0
call fcn.14008c3f9
mov eax, 0xffffffff
jmp 0x14015b093
mov eax, dword [rsp + 0xa0]
and eax, 0xc000
cmp eax, 0xc000
je 0x14015ab53
mov dword [rsp + 0x48], 1
jmp 0x14015ab5b
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x14015aba4
lea rax, str._textmode____O_BINARY___O_TEXT_______O_BINARY___O_TEXT_
mov qword [rsp + 0x28], rax
lea rax, [0x1401aea98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1a
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.14008967c
cmp eax, 1
jne 0x14015aba4
int3
cmp dword [rsp + 0x4c], 0
jne 0x14015abf4
call fcn.14008b71a
mov dword [rax], 0
call fcn.14008a65d
mov dword [rax], socket
mov qword [rsp + 0x20], 0
mov r9d, 0x1a
lea r8, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
lea rdx, str._pipe
lea rcx, str._textmode____O_BINARY___O_TEXT_______O_BINARY___O_TEXT_
call fcn.14008c3f9
mov eax, 0xffffffff
jmp 0x14015b093
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], 0
mov eax, dword [rsp + 0xa0]
and eax, 0x80
test eax, eax
jne 0x14015ac1f
mov dword [rsp + 0x50], 1
jmp 0x14015ac27
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x78], eax
mov r9d, dword [rsp + 0x98]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14015ac67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008a1ee
mov eax, 0xffffffff
jmp 0x14015b093
call fcn.14008b8c8
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14015acad
call fcn.14008a65d
mov dword [rax], 0x18
call fcn.14008b71a
mov dword [rax], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x14015b093
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x30]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov byte [rax + rdx + 0x38], 0x89
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x30]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov byte [rax + rdx + 0x39], 0
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x30]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x3d]
and al, 0xfe
mov ecx, dword [rsp + 0x30]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401e91e0]
mov r8d, dword [rsp + 0x30]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x3d], al
mov ecx, dword [rsp + 0x30]
call fcn.14008c354
call fcn.14008b8c8
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x14015adc4
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x30]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov byte [rax + rdx + 0x38], 0
call fcn.14008a65d
mov dword [rax], 0x18
call fcn.14008b71a
mov dword [rax], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x14015b093
mov eax, dword [rsp + 0x34]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x34]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov byte [rax + rdx + 0x38], 0x89
mov eax, dword [rsp + 0x34]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x34]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov byte [rax + rdx + 0x39], 0
mov eax, dword [rsp + 0x34]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x34]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x3d]
and al, 0xfe
mov ecx, dword [rsp + 0x34]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401e91e0]
mov r8d, dword [rsp + 0x34]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x3d], al
mov ecx, dword [rsp + 0x34]
call fcn.14008c354
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x54]
call fcn.14008b60c
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x5a
lea r9, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
lea r8, str._pipe
lea rdx, str._get_fmode_fmode_
mov ecx, eax
call fcn.14008a7cf
mov eax, dword [rsp + 0xa0]
and eax, 0x8000
test eax, eax
jne 0x14015aedf
mov eax, dword [rsp + 0xa0]
and eax, 0x4000
test eax, eax
jne 0x14015af89
cmp dword [rsp + 0x54], 0x8000
jne 0x14015af89
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x30]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
btr eax, 7
mov ecx, dword [rsp + 0x30]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401e91e0]
mov r8d, dword [rsp + 0x30]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
mov eax, dword [rsp + 0x34]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x34]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
btr eax, 7
mov ecx, dword [rsp + 0x34]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401e91e0]
mov r8d, dword [rsp + 0x34]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
mov eax, dword [rsp + 0xa0]
and eax, 0x80
test eax, eax
je 0x14015b045
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x30]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
or eax, 0x10
mov ecx, dword [rsp + 0x30]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401e91e0]
mov r8d, dword [rsp + 0x30]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
mov eax, dword [rsp + 0x34]
sar eax, 6
cdqe
lea rcx, [0x1401e91e0]
mov edx, dword [rsp + 0x34]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
or eax, 0x10
mov ecx, dword [rsp + 0x34]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401e91e0]
mov r8d, dword [rsp + 0x34]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x30]
call fcn.14008c6fb
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x34]
call fcn.14008c6fb
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0x30]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0x34]
mov dword [rcx + rax], edx
xor eax, eax
add rsp, 0x88
ret