i think opamp TL074 connected to A is a buffering amp just to buffer the ref point A of the human body
AMP02 connected to B and C seems to be an instrumentation amp that hv a large gain to amplify the small ECG signal with respect to the ref point/signal of A
Then, the last stage is a second amplifier stage and filtering stage before get the ECG signal
the separate opamp should be used to stabilize the virtual ground
I am not sure my explanation is correct or not
Maybe there is someone else can help u out more
My advise is to get the opamp datasheet to understand all the pins description

AMP02 connected to B and C seems to be an instrumentation amp that hv a large gain to amplify the small ECG signal with respect to the ref point/signal of A
Then, the last stage is a second amplifier stage and filtering stage before get the ECG signal
the separate opamp should be used to stabilize the virtual ground
I am not sure my explanation is correct or not
Maybe there is someone else can help u out more
My advise is to get the opamp datasheet to understand all the pins description