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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x100523d5
mov eax, dword [ebp - 4]
add esp, 0xfffffcec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x8314], ebx
mov dword [ebp - 0x8318], ebx
mov dword [ebp - 0x8310], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x10052630
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.10004524
mov dword [ebp - 0x830c], 0x94
lea eax, [ebp - 0x830c]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x82fc], 2
jne 0x1005245e
mov dword [ebp - 0x74], 0xc
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0xffffffff
push 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
jmp 0x10052472
push 0x400
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x1005260b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.10003054
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], 0
mov dword [ebp - 0x2c], 1
or dword [ebp - 0x2c], 0x100
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x8310]
mov ecx, ebx
mov edx, 0x10052648
call fcn.1000484c
mov edx, dword [ebp - 0x8310]
lea eax, [ebp - 0x8275]
call fcn.1004b454
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x8275]
push eax
push 0
mov eax, dword [0x1005c6a4]
mov eax, dword [eax]
call eax
test eax, eax
je 0x100525eb
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100525cc
push 0x3e8
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x8000
lea eax, [ebp - 0x8074]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x100525b3
cmp dword [ebp - 0x10], 0
jbe 0x100525b3
lea eax, [ebp - 0x8074]
xor ecx, ecx
mov edx, 0x8000
call fcn.10003054
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x8074]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0x8314]
push eax
lea eax, [ebp - 0x8318]
lea edx, [ebp - 0x8074]
mov ecx, 0x8000
call fcn.10004794
mov eax, dword [ebp - 0x8318]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.10004a60
mov edx, dword [ebp - 0x8314]
mov eax, esi
call fcn.10004808
cmp ebx, 0x102
je 0x100525c2
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
je 0x10052516
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10052612
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret