Function at 0x14007553c
Capabilities:
Create pipe

Disassembly:
jmp 0x140126440
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp qword [rsp + 0x90], 0
je 0x14012646a
mov dword [rsp + 0x38], 1
jmp 0x140126472
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x1401264bb
lea rax, str.phandles___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x14016e618]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x16
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.1400755a0
cmp eax, 1
jne 0x1401264bb
int3
cmp dword [rsp + 0x3c], 0
jne 0x14012650b
call fcn.140077030
mov dword [rax], 0
call fcn.140076289
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.140077b02
mov eax, 0xffffffff
jmp 0x140126b53
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 0x140126555
mov dword [rsp + 0x40], 1
jmp 0x14012655d
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1401265a6
lea rax, str._textmode____O_NOINHERIT___O_BINARY___O_TEXT____0
mov qword [rsp + 0x28], rax
lea rax, [0x14016e618]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x19
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.1400755a0
cmp eax, 1
jne 0x1401265a6
int3
cmp dword [rsp + 0x44], 0
jne 0x1401265f6
call fcn.140077030
mov dword [rax], 0
call fcn.140076289
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.140077b02
mov eax, 0xffffffff
jmp 0x140126b53
mov eax, dword [rsp + 0xa0]
and eax, 0xc000
cmp eax, 0xc000
je 0x140126613
mov dword [rsp + 0x48], 1
jmp 0x14012661b
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x140126664
lea rax, str._textmode____O_BINARY___O_TEXT_______O_BINARY___O_TEXT_
mov qword [rsp + 0x28], rax
lea rax, [0x14016e618]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1a
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtconiopipe.cpp
mov ecx, 2
call fcn.1400755a0
cmp eax, 1
jne 0x140126664
int3
cmp dword [rsp + 0x4c], 0
jne 0x1401266b4
call fcn.140077030
mov dword [rax], 0
call fcn.140076289
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.140077b02
mov eax, 0xffffffff
jmp 0x140126b53
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], 0
mov eax, dword [rsp + 0xa0]
and eax, 0x80
test eax, eax
jne 0x1401266df
mov dword [rsp + 0x50], 1
jmp 0x1401266e7
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 0x140126727
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075ef6
mov eax, 0xffffffff
jmp 0x140126b53
call fcn.14007718e
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14012676d
call fcn.140076289
mov dword [rax], 0x18
call fcn.140077030
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 0x140126b53
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401a2a60]
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, [0x1401a2a60]
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, [0x1401a2a60]
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, [0x1401a2a60]
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.140077a6c
call fcn.14007718e
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x140126884
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401a2a60]
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.140076289
mov dword [rax], 0x18
call fcn.140077030
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 0x140126b53
mov eax, dword [rsp + 0x34]
sar eax, 6
cdqe
lea rcx, [0x1401a2a60]
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, [0x1401a2a60]
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, [0x1401a2a60]
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, [0x1401a2a60]
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.140077a6c
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x54]
call fcn.140076f4f
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.1400763b5
mov eax, dword [rsp + 0xa0]
and eax, 0x8000
test eax, eax
jne 0x14012699f
mov eax, dword [rsp + 0xa0]
and eax, 0x4000
test eax, eax
jne 0x140126a49
cmp dword [rsp + 0x54], 0x8000
jne 0x140126a49
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401a2a60]
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, [0x1401a2a60]
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, [0x1401a2a60]
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, [0x1401a2a60]
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 0x140126b05
mov eax, dword [rsp + 0x30]
sar eax, 6
cdqe
lea rcx, [0x1401a2a60]
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, [0x1401a2a60]
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, [0x1401a2a60]
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, [0x1401a2a60]
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.140077d73
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x34]
call fcn.140077d73
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