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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
push ebx
and al, 3
push esi
neg al
sbb eax, eax
xor ebx, ebx
neg eax
test byte [ebp + 0xc], 2
push edi
mov dword [ebp - 0x14], eax
jne 0x42914b
cmp eax, ebx
mov dword [ebp - 0x10], ebx
jne 0x429152
mov dword [ebp - 0x10], 1
mov eax, 0x8000
test dword [ebp + 0xc], eax
je 0x429168
mov dword [ebp - 0x20], eax
mov byte [ebp + 0xd], 0x62
mov byte [ebp + 0xe], bl
jmp 0x429172
mov dword [ebp - 0x20], 0x4000
mov byte [ebp + 0xd], bl
or dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call sym.ruby187g.exc_rb_w32_enter_critical
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [ebp - 0x10], ebx
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
je 0x4291eb
lea eax, [ebp - 0x38]
push 0x800
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4292ed
push 2
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp - 4]
push dword [ebp - 0x24]
push dword [ebp - 4]
call edi
test eax, eax
je 0x429309
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x14], ebx
je 0x42922f
lea eax, [ebp - 0x38]
push 0x800
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x429335
push 2
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 4]
push dword [ebp - 0x28]
push dword [ebp - 4]
call edi
test eax, eax
je 0x42934e
push dword [ebp - 0x28]
call esi
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0x38]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
push ebx
push dword [ebp + 8]
call fcn.0042969c
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x429383
cmp dword [ebp - 0x10], ebx
mov edi, dword [sym.imp.MSVCRT.dll__fdopen]
je 0x42929c
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.0042a5e9
pop ecx
mov dword [ebp + 8], eax
pop ecx
push dword [ebp - 8]
call esi
cmp dword [ebp + 8], 0xffffffff
je 0x4293a3
lea eax, [ebp + 0xc]
mov byte [ebp + 0xc], 0x72
push eax
push dword [ebp + 8]
call edi
pop ecx
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x4293aa
cmp dword [ebp - 0x14], ebx
je 0x4292df
mov eax, dword [ebp - 0x20]
or al, 1
push eax
push dword [ebp - 0x1c]
call fcn.0042a5e9
pop ecx
mov dword [ebp + 8], eax
pop ecx
push dword [ebp - 0xc]
call esi
cmp dword [ebp + 8], 0xffffffff
je 0x4293c5
lea eax, [ebp + 0xc]
mov byte [ebp + 0xc], 0x77
push eax
push dword [ebp + 8]
call edi
pop ecx
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x4293cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
jmp 0x4293f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.ruby187g.exc_rb_w32_map_errno
pop ecx
mov esi, eax
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], esi
jmp 0x4293f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.ruby187g.exc_rb_w32_map_errno
pop ecx
mov esi, eax
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], esi
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
jmp 0x42939f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.ruby187g.exc_rb_w32_map_errno
pop ecx
mov edi, eax
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], edi
jmp 0x429374
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.ruby187g.exc_rb_w32_map_errno
pop ecx
mov edi, eax
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], edi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x10], ebx
je 0x4293f0
push dword [ebp - 0x18]
call esi
push dword [ebp - 8]
jmp 0x42939f
cmp dword [ebp - 0x10], ebx
je 0x429392
push dword [ebp - 8]
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], ebx
je 0x4293f0
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x1c]
call esi
jmp 0x4293f0
push dword [ebp - 0x18]
call esi
jmp 0x4293b4
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__close]
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x4293e7
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x1c]
call esi
jmp 0x4293e7
push dword [ebp - 0x1c]
call esi
jmp 0x4293d6
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__close]
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x4293e7
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp - 4]
call fcn.004293fd
pop ecx
call sym.ruby187g.exc_rb_w32_leave_critical
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret