Function at 0x421a20
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b51d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4825c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x421c79
lea eax, [esi + 0x80]
mov dword [eax + 0x10], 0
mov ecx, eax
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 0x5c], eax
jbe 0x421a72
mov ecx, dword [eax]
mov byte [ecx], 0
mov edi, dword [esi + 0x7c]
lea eax, [ebp - 0x60]
push 0
push eax
push 0
push 0x7fff
push edi
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x60], 0
je 0x421ae8
push 0
lea eax, [ebp - 0x60]
push eax
push 0x7fff
push edi
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421ae8
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x421ae8
mov eax, dword [esi + 0x7c]
mov byte [ecx + eax], 0
mov edx, dword [esi + 0x7c]
mov eax, edx
lea edi, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421ad0
sub eax, edi
lea ecx, [esi + 0x80]
push eax
push edx
call fcn.00407760
jmp 0x421a75
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.00404f90
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test eax, eax
je 0x421c47
mov edi, dword [ebp - 0x28]
xor esi, esi
mov edx, dword [ebp - 0x64]
test eax, eax
je 0x421b41
mov ecx, dword [edx + 0x84]
test ecx, ecx
jle 0x421b41
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, edi
cmp byte [eax + esi], 0x20
jne 0x421b3e
lea eax, [ecx - 1]
inc esi
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 0x18]
cmp esi, eax
jb 0x421b11
jmp 0x421b41
mov eax, dword [ebp - 0x18]
cmp esi, eax
je 0x421c4a
mov ecx, edx
mov byte [edx + 0x80], 0
call fcn.0043ee40
mov dword [ebp - 0x5c], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
cmp eax, esi
jb 0x421c96
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, edi
push ecx
add eax, esi
lea ecx, [ebp - 0x40]
push eax
call fcn.004042c0
mov edi, dword [ebp - 0x64]
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x14]
mov esi, dword [eax]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0043e420
add esp, 8
push esi
push eax
push 0
push dword [ebp - 0x5c]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00444420
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 7
jbe 0x421c07
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421bfd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421c9b
push ecx
push edx
call fcn.00448427
add esp, 8
mov ecx, edi
call fcn.0043ee40
mov edx, dword [edi]
mov ecx, edi
push eax
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x421c47
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421c3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ca0
push ecx
push edx
call fcn.00448427
add esp, 8
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x421c79
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x421c6f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ca5
push ecx
push edi
call fcn.00448427
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448686
mov esp, ebp
pop ebp
ret 4
call fcn.00401e60
call fcn.0044d0af
call fcn.0044d0af
call fcn.0044d0af
int3