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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0xfffffffffffffff5
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 eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
or edi, 0xffffffff
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4113e1
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], edi
call esi
mov ecx, dword [esp + 0x28]
push eax
push ecx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x4113ed
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4113d2
cmp eax, edi
je 0x4113d2
push eax
call esi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4113e1
cmp eax, edi
je 0x4113e1
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 0x411402
cmp eax, edi
je 0x411402
push eax
call ebx
mov dword [esp + 0x18], edi
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4113e1
push 2
push 0
push 0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], edi
call esi
push eax
mov eax, dword [esp + 0x38]
push eax
call esi
push eax
call ebp
test eax, eax
jne 0x411499
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411458
cmp eax, edi
je 0x411458
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41146b
cmp eax, edi
je 0x41146b
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41147e
cmp eax, edi
je 0x41147e
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41148d
cmp eax, edi
je 0x41148d
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4114ac
cmp eax, edi
je 0x4114ac
push eax
call ebx
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x4114ca
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
call fcn.00411580
test eax, eax
jne 0x41150c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4114e1
cmp eax, edi
je 0x4114e1
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x4114f0
cmp ecx, edi
je 0x4114f0
push ecx
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x411503
cmp eax, edi
je 0x411503
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x28]
jmp 0x411482
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00411630
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x411534
cmp eax, edi
je 0x411534
push eax
call ebx
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411547
cmp eax, edi
je 0x411547
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41155a
cmp eax, edi
je 0x41155a
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x411569
cmp eax, edi
je 0x411569
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4