Starting at the op-amp, this has a gain of 23. The output is rectified and smoothed to give a positive feedback voltage.
The feed back voltage is fed to the second fet which is turned on when the gate is less negative. This shorts the signal to ground. So, the larger the signal, the more the attenuation. giving a more constant output.
The first fet is there to adjust the effectiveness of fet2