New Attractor, Entropy Function and Black Hole Partition Function