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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xfffffffffffffff5
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
or ebx, 0xffffffff
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x421139
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], ebx
call esi
mov edx, dword [ebp - 8]
push eax
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
mov eax, dword [ebp - 8]
jne 0x421144
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42112b
cmp eax, ebx
je 0x42112b
push eax
call esi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x421139
cmp eax, ebx
je 0x421139
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x42115a
cmp eax, ebx
je 0x42115a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov dword [ebp - 8], ebx
jmp 0x421160
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x421139
push 2
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], ebx
call esi
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4211eb
mov eax, dword [ebp - 8]
test eax, eax
je 0x4211b0
cmp eax, ebx
je 0x4211b0
push eax
call edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4211c1
cmp eax, ebx
je 0x4211c1
push eax
call edi
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4211d2
cmp eax, ebx
je 0x4211d2
push eax
call edi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4211e0
cmp eax, ebx
je 0x4211e0
push eax
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4211fc
cmp eax, ebx
je 0x4211fc
push eax
call edi
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 4]
cmp ecx, ebx
je 0x421216
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 4]
call fcn.004212c0
test eax, eax
jne 0x42124e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42122a
cmp eax, ebx
je 0x42122a
push eax
call edi
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x421238
cmp ecx, ebx
je 0x421238
push ecx
call edi
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x421249
cmp eax, ebx
je 0x421249
push eax
call edi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x18]
jmp 0x4211d5
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
lea edi, [ebp - 0x10]
call fcn.00421390
mov edi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x421278
cmp eax, ebx
je 0x421278
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov dword [ebp - 0x10], ebx
jmp 0x42127e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
je 0x42128f
cmp eax, ebx
je 0x42128f
push eax
call esi
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4212a0
cmp eax, ebx
je 0x4212a0
push eax
call esi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4212ae
cmp eax, ebx
je 0x4212ae
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4