Function at 0x1400f6bbd
Capabilities:
Create pipe

Disassembly:
jmp 0x1402b4ca0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp qword [rsp + 0x90], 0
je 0x1402b4cca
mov dword [rsp + 0x38], 1
jmp 0x1402b4cd2
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x1402b4d1b
lea rax, str.phandles___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x14030f2c8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x16
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.1400f6d2f
cmp eax, 1
jne 0x1402b4d1b
int3
cmp dword [rsp + 0x3c], 0
jne 0x1402b4d6b
call fcn.1400fa9d4
mov dword [rax], 0
call fcn.1400f894f
mov dword [rax], 0x16
mov qword [rsp + 0x20], 0
mov r9d, 0x16
lea r8, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
lea rdx, str._pipe
lea rcx, str.phandles___nullptr
call fcn.1400fc284
mov eax, 0xffffffff
jmp 0x1402b53b3
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 0x1402b4db5
mov dword [rsp + 0x40], 1
jmp 0x1402b4dbd
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1402b4e06
lea rax, str._textmode____O_NOINHERIT___O_BINARY___O_TEXT____0
mov qword [rsp + 0x28], rax
lea rax, [0x14030f2c8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x19
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.1400f6d2f
cmp eax, 1
jne 0x1402b4e06
int3
cmp dword [rsp + 0x44], 0
jne 0x1402b4e56
call fcn.1400fa9d4
mov dword [rax], 0
call fcn.1400f894f
mov dword [rax], 0x16
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.1400fc284
mov eax, 0xffffffff
jmp 0x1402b53b3
mov eax, dword [rsp + 0xa0]
and eax, 0xc000
cmp eax, 0xc000
je 0x1402b4e73
mov dword [rsp + 0x48], 1
jmp 0x1402b4e7b
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x1402b4ec4
lea rax, str._textmode____O_BINARY___O_TEXT_______O_BINARY___O_TEXT_
mov qword [rsp + 0x28], rax
lea rax, [0x14030f2c8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1a
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.1400f6d2f
cmp eax, 1
jne 0x1402b4ec4
int3
cmp dword [rsp + 0x4c], 0
jne 0x1402b4f14
call fcn.1400fa9d4
mov dword [rax], 0
call fcn.1400f894f
mov dword [rax], 0x16
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.1400fc284
mov eax, 0xffffffff
jmp 0x1402b53b3
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], 0
mov eax, dword [rsp + 0xa0]
and eax, 0x80
test eax, eax
jne 0x1402b4f3f
mov dword [rsp + 0x50], 1
jmp 0x1402b4f47
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 0x1402b4f87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8175
mov eax, 0xffffffff
jmp 0x1402b53b3
call fcn.1400faccc
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x1402b4fcd
call fcn.1400f894f
mov dword [rax], 0x18
call fcn.1400fa9d4
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 0x1402b53b3
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x14120b230]
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, [0x14120b230]
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, [0x14120b230]
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, [0x14120b230]
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.1400fc144
call fcn.1400faccc
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x1402b50e4
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x14120b230]
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.1400f894f
mov dword [rax], 0x18
call fcn.1400fa9d4
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 0x1402b53b3
mov eax, dword [rsp + 0x34]
sar eax, 6
cdqe
lea rcx, [0x14120b230]
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, [0x14120b230]
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, [0x14120b230]
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, [0x14120b230]
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.1400fc144
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x54]
call fcn.1400fa7db
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.1400f8c42
mov eax, dword [rsp + 0xa0]
and eax, 0x8000
test eax, eax
jne 0x1402b51ff
mov eax, dword [rsp + 0xa0]
and eax, 0x4000
test eax, eax
jne 0x1402b52a9
cmp dword [rsp + 0x54], 0x8000
jne 0x1402b52a9
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x14120b230]
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, [0x14120b230]
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, [0x14120b230]
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, [0x14120b230]
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 0x1402b5365
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x14120b230]
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, [0x14120b230]
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, [0x14120b230]
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, [0x14120b230]
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.1400fc7c0
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x34]
call fcn.1400fc7c0
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