Solution by NamelyOrange.
We claim that the only solutions are
f(x)≡0orf(x)=x.
Both clearly work. Let P(x,y) denote
f(2xf(y))=xf(y)+yf(x).
Putting x=0 gives f(0)=0. Let a=f(1). From P(x,1),
f(2ax)=ax+f(x).
If a=0, this gives f(x)=0 for all x, so assume a=0.
Comparing P(1,y) with P(f(y)/a,1) gives
f(af(y))=ay.
Hence f is surjective. It is also injective: if f(u)=f(v), then the last displayed identity gives au=av, so u=v.
Now put x=2a1 in P(x,y). Using the previous identity,
ay=2af(y)+yf(2a1).
Thus f(y) is linear in y, say f(y)=cy. Since f(1)=a, we have c=a, so f(y)=ay for all y.
Substituting f(y)=ay into the original equation gives
2a2xy=2axy
for all x,y. Since a=0, we get a=1. Therefore the nonzero solution is f(x)=x.
The complete solution set is
f(x)≡0orf(x)=x.