I found a similar question about getting just the rotation, but as I understand scaling and rotating work different in the transform matrix.
Matrixes are not my strength
That is an old question, but I still add more information in case someone needs.
For me, the good answer and sample code for getting scale, rotation of transformation and for reproducing it are from article:
http://www.informit.com/articles/article.aspx?p=1951182