If things have been getting done right, you either get your earnest money back or you can try to renegotiate to the appraisal price. You should have an appraisal contigency in your offer, be within timelines for using it as a basis for cancellation and cancel or offer an addendum for a price change. Alternately you put up more of a downpayment if you want to proceed, which I doubt.