Function at 0x42c820
Capabilities:
Create pipe
Create two anonymous pipes
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x482439
push eax
mov eax, 0x2ac8
mov dword fs:[0], esp
call fcn.00431cd0
push ebx
push esi
push edi
mov edi, ecx
call fcn.0042ad30
lea eax, [ebp + 0x34]
mov ecx, edi
push eax
call fcn.00429250
cmp dword [ebp + 0x44], 0
mov dword [ebp - 4], 0
sete al
test al, al
je 0x42c8db
lea eax, [ebp + 0x1c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x42c892
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_TlUnixProcess::pipeToBuffer_____command_line_empty
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp + 0x30]
add esp, 0x1c
cmp eax, 0x10
jb 0x42cd04
inc eax
lea ecx, [ebp + 0x1c]
push eax
push dword [ebp + 0x1c]
call fcn.00404120
xor bl, bl
jmp 0x42cdbf
mov ecx, dword [ebp + 0x68]
push 0
push 0x486490
call fcn.00403ef0
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp + 0x10]
push 0
push eax
lea eax, [ebp + 0x54]
mov dword [ebp + 0x5c], 0
push eax
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x54], 0
push eax
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x10], 0xc
mov dword [ebp + 0x18], 1
mov dword [ebp + 0x14], 0
call esi
test eax, eax
jne 0x42c9cb
lea eax, [ebp + 0x1c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x42c95d
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Could_not_create_stdout_pipe_for_command_line___
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp + 0x48], 0x10
lea ecx, [ebp + 0x34]
cmovae ecx, dword [ebp + 0x34]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x489b88
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp + 0x30]
add esp, 0x34
cmp eax, 0x10
jb 0x42ca5f
inc eax
lea ecx, [ebp + 0x1c]
push eax
push dword [ebp + 0x1c]
call fcn.00404120
jmp 0x42ca5f
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x58]
push eax
call esi
test eax, eax
jne 0x42ca98
lea eax, [ebp + 0x1c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x42ca07
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Could_not_create_stdin_pipe_for_command_line___
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp + 0x48], 0x10
lea ecx, [ebp + 0x34]
cmovae ecx, dword [ebp + 0x34]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x489b88
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x34
lea ecx, [ebp + 0x1c]
call fcn.004058c0
mov eax, dword [ebp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42ca6f
push eax
call esi
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x42ca79
push eax
call esi
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x42ca83
push eax
call esi
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x42cd04
push eax
call esi
xor bl, bl
jmp 0x42cdbf
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00434830
mov eax, dword [ebp + 0x54]
add esp, 0xc
or dword [ebp - 0x24], 0x100
mov ecx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x18], eax
call fcn.0042bf10
push 0
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x2ad4]
call fcn.00411fc0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00412620
lea ecx, [ebp - 0x2ad4]
mov dword [edi + 0x12c], eax
mov byte [ebp - 4], 0
call fcn.00412230
lea eax, [edi + 0x30]
push eax
call fcn.00406de0
add esp, 4
mov dword [edi + 0x134], eax
lea eax, [edi + 0x38]
lea ecx, [ebp - 0x2ad4]
push 0
push eax
call fcn.00411fc0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00412620
lea ecx, [ebp - 0x2ad4]
mov dword [edi + 0x130], eax
mov byte [ebp - 4], 0
call fcn.00412230
cmp byte [ebp + 0x6c], 0
je 0x42cbdc
call fcn.0040c290
cmp dword [eax + 0x4a0], 2
jne 0x42cbdc
lea eax, [ebp + 0x1c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x42cb80
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.DEBUG:_pipeToBuffer_running__
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp + 0x48], 0x10
lea ecx, [ebp + 0x34]
cmovae ecx, dword [ebp + 0x34]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x486730
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x34
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x1c]
call fcn.004058c0
mov eax, dword [ebp + 0x5c]
mov dword [ebp], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0xc], eax
lea eax, [ebp]
push eax
push 4
lea eax, [edi + 0xe4]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x130]
push dword [edi + 0x134]
push 0x8000200
push 1
push 0
push 0
push dword [edi + 0x12c]
push 0
call fcn.0046d000
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x30
mov esi, eax
push dword [ebp + 0x58]
call ebx
push dword [ebp + 0x50]
call ebx
push dword [ebp + 0x54]
call ebx
test esi, esi
jne 0x42cd0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004084a0
add esp, 8
mov esi, eax
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 7
push eax
mov ecx, 0x4a9a88
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x42cc88
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Could_not_create_process_for___
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp + 0x48], 0x10
lea ecx, [ebp + 0x34]
cmovae ecx, dword [ebp + 0x34]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x489c0c
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x30
cmp dword [esi + 0x14], 0x10
jb 0x42ccda
mov esi, dword [esi]
push esi
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x10
lea ecx, [ebp + 0x1c]
call fcn.004058c0
lea ecx, [ebp - 0x68]
call fcn.004058c0
push dword [ebp + 0x5c]
call ebx
xor bl, bl
jmp 0x42cdbf
push 0x1400
lea ecx, [ebp - 0x16a0]
call fcn.00412080
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 0x4c]
push 0
push eax
push 0x200
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 9
push eax
push dword [ebp + 0x5c]
call esi
test eax, eax
je 0x42cd7c
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x42cd7c
mov byte [ebp + eax - 0x26c], 0
lea ecx, [ebp - 0x16a0]
lea eax, [ebp - 0x26c]
push eax
call fcn.00412360
push 0
lea eax, [ebp + 0x4c]
push eax
push 0x200
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 0x5c]
call esi
test eax, eax
jne 0x42cd40
push dword [ebp + 0x5c]
call ebx
mov edx, dword [ebp - 0x16a0]
cmp byte [edx], 0
jne 0x42cd90
xor ecx, ecx
jmp 0x42cd9e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42cd95
sub ecx, esi
push ecx
mov ecx, dword [ebp + 0x68]
push edx
call fcn.00403ef0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
test eax, eax
lea ecx, [ebp - 0x16a0]
sete bl
call fcn.00412230
mov ecx, dword [ebp + 0x48]
cmp ecx, 0x10
jb 0x42cdd4
inc ecx
push ecx
push dword [ebp + 0x34]
lea ecx, [ebp + 0x34]
call fcn.00404120
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x60]
pop ebp
ret 8