\(\left(\frac{x-y}{2y-x}-\frac{x^2+y^2+y-2}{x^2-xy-2y^2}\right):\frac{4x^4+4x^2y+y^2-4}{x^2+y+xy+x}:\frac{1}{2x^2+y+2}\)
\(=\left(\frac{x-y}{2y-x}+\frac{x^2+y^2+y-2}{\left(x+y\right)\left(2y-x\right)}\right):\frac{\left(y+2x^2+2\right)\left(y+2x^2-2\right)}{\left(x+1\right)\left(x+y\right)}:\frac{1}{2x^2+y+2}\)
\(=\frac{y+2x^2-2}{\left(x+y\right)\left(2y-x\right)}.\frac{\left(x+1\right)\left(x+y\right)}{\left(y+2x^2+2\right)\left(y+2x^2-2\right)}.\left(2x^2+y+2\right)\)
\(=\frac{\left(x+1\right)}{\left(2y-x\right)}\)