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

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
push 0xfffffffffffffff5
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
or edi, 0xffffffff
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x418bb9
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edi
call esi
mov edx, dword [esp + 0x24]
push eax
push edx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x418bc5
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x418baa
cmp eax, edi
je 0x418baa
push eax
call esi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418bb9
cmp eax, edi
je 0x418bb9
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x418bda
cmp eax, edi
je 0x418bda
push eax
call ebx
mov dword [esp + 0x14], edi
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x418bb9
push 2
push 0
push 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], edi
call esi
mov ecx, dword [esp + 0x30]
push eax
push ecx
call esi
push eax
call ebp
test eax, eax
jne 0x418c71
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418c30
cmp eax, edi
je 0x418c30
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418c43
cmp eax, edi
je 0x418c43
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418c56
cmp eax, edi
je 0x418c56
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x418c65
cmp eax, edi
je 0x418c65
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x418c84
cmp eax, edi
je 0x418c84
push eax
call ebx
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x418ca2
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00418d50
test eax, eax
jne 0x418ce4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418cb9
cmp eax, edi
je 0x418cb9
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x418cc8
cmp ecx, edi
je 0x418cc8
push ecx
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418cdb
cmp eax, edi
je 0x418cdb
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x24]
jmp 0x418c5a
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00418e40
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418d0c
cmp eax, edi
je 0x418d0c
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418d1f
cmp eax, edi
je 0x418d1f
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418d32
cmp eax, edi
je 0x418d32
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x418d41
cmp eax, edi
je 0x418d41
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4