Pathwise Identification of the Memory Function of the Multifractional Brownian Motion with Application to Finance