While there is no" guaranteed cure " there is healing  .  Certain deep wounds involve addiction and require intensive psychological counseling.   All this involves time and truthfulness with oneself .  Pedophilia was called by St. Peter Damian "soul murder" .
The mentality needed to do these things to  children is rarely changed because the perpetrator does not want to change !  This is documented .  We need not sit in judgment of such persons .  But we have a responsibility toward the vulnerable .