Function at 0x1001736e
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push 0x9c
mov eax, 0x1003e523
call fcn.1001d244
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x94], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 4], ebx
call fcn.100156e1
push 0x44
pop edi
push edi
lea eax, [ebp - 0x90]
mov dword [ebp - 0x14], ebx
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call fcn.1001e5b0
mov dword [ebp - 0x90], edi
xor eax, eax
lea edi, [ebp - 0x30]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test esi, esi
je 0x10017459
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], 0xc
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 1
push eax
mov dword [ebp - 0x38], ebx
call esi
test eax, eax
je 0x100175ae
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x100175ae
push ebx
push 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x100175ae
mov eax, dword [ebp - 0x1c]
or dword [ebp - 0x64], 0x100
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x28]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001c95c
cmp dword [ebp + 0x2c], 7
mov esi, eax
mov eax, dword [ebp + 0x28]
pop ecx
lea ecx, [ebp + 0x18]
cmova ecx, dword [ebp + 0x18]
lea eax, [eax*2 + 2]
push eax
push ecx
push esi
call fcn.1001e010
mov edi, dword [ebp - 0xa8]
lea eax, [ebp - 0x30]
add esp, 0xc
xor edx, edx
inc edx
push eax
lea eax, [ebp - 0x90]
push eax
push ecx
push ecx
push edi
push esi
push ecx
mov ecx, dword [ebp - 0x94]
call fcn.10014efd
add esp, 0x1c
test eax, eax
jne 0x10017602
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
push ecx
push ecx
push edi
push esi
push ecx
mov ecx, dword [ebp - 0x94]
push 2
pop edx
call fcn.10014efd
add esp, 0x1c
test eax, eax
jne 0x10017602
lea eax, [ebp - 0x30]
xor edx, edx
push eax
lea eax, [ebp - 0x90]
push eax
push ecx
push ecx
push edi
push esi
push ecx
mov ecx, dword [ebp - 0x94]
call fcn.10014efd
add esp, 0x1c
test eax, eax
jne 0x10017602
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x94]
push edi
sub esp, 0xc
push esi
call fcn.1001503e
add esp, 0x24
test eax, eax
jne 0x10017602
push esi
call fcn.1001c957
pop ecx
lea ecx, [ebp - 0x48]
call fcn.10017057
lea ecx, [ebp - 0x48]
mov esi, dword [eax + 0x10]
call fcn.1000200e
call fcn.10011775
test esi, esi
je 0x10017660
sub esp, 0x18
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.10002cf6
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x94], esp
call fcn.10017057
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x34], esi
cmp dword [0x10052894], 0
jne 0x100175b8
push 0x10047010
mov ecx, esi
call fcn.10002cb9
jmp 0x100175d6
call fcn.10011775
jmp 0x10017660
push 0x10052894
lea eax, [ebp - 0x38]
push eax
call fcn.100046f4
mov ecx, esi
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
add eax, 0x20
push eax
call fcn.10002cf6
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x98]
push ecx
mov ecx, dword [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0x9c]
push ecx
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.10017670
add esp, 0x54
mov bl, al
jmp 0x10017660
push esi
call fcn.1001c957
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x10017620
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
jmp 0x10017625
push dword [ebp - 0x30]
call esi
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x10017636
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x1001763b
push dword [ebp - 0x2c]
call esi
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x1001764a
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x10017659
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
call fcn.10011775
mov bl, 1
lea ecx, [ebp + 0x18]
call fcn.1000200e
mov al, bl
call fcn.1001d1f3
ret