Solution by P2nisic.
Let P(x,y) denote the assertion
f((x+f(x))f(y))=yf(x)+f(xy).
For any real a,b, applying P(a,b) gives
f((a+f(a))f(b))=bf(a)+f(ab).(1)
Now set
u=(a+f(a))f(b).
Applying P(u,x) and using (1), the left-hand side becomes
f((u+f(u))f(x))=f((af(b)+f(a)f(b)+bf(a)+f(ab))f(x)).
The expression inside f is symmetric in a and b. Therefore the corresponding right-hand side of P(u,x) is also symmetric, so
xf((a+f(a))f(b))+f(x(a+f(a))f(b))=xf((b+f(b))f(a))+f(x(b+f(b))f(a)).
Putting x=1 gives
2f((a+f(a))f(b))=2f((b+f(b))f(a)).
Using (1) on both sides,
2bf(a)+2f(ab)=2af(b)+2f(ab),
and hence
bf(a)=af(b)
for all real a,b. Taking b=1, we obtain
f(a)=af(1)
for all real a. Thus f(x)=cx for some constant c.
Substituting f(x)=cx into the original equation gives
c2(1+c)xy=2cxy
for all real x,y. Hence
c(c+2)(c−1)=0,
so c∈{0,1,−2}.
Therefore the solutions are
f(x)=0,f(x)=x,f(x)=−2x.
Direct substitution verifies that all three functions work.