The growing penetration of RESs and the bidirectional power transfer capability in EV charging systems have led to the demand for multifunctional charging architectures with strong control and better power quality. However, the current research primarily concentrates on RE integration, multi-functional operation or advanced control strategies separately, while the combination of energy-based modelling with optimized non-linear control for multi-functional EV charging is still scarce. In this paper, energy-based modelling and control of a solar roof integrated multifunctional EV charger is presented using GAO-SMC. The proposed charger supports G2V, V2G, H2L and HP2L operation modes with the same power conversion architecture. The novelty of the proposed work is the integration of energy based mathematical model, GAO-SMC and Lyapunov stability analysis with the proposed unified multifunctional charging system. The energy-based model describes the power flow interactions between the utility grid, rooftop PV source, HVB and LVB through a common DC-link. The design of the proposed controller is used for robust DC-link voltage regulation and better dynamic performance. The Lyapunov stability analysis is used to verify the asymptotic stability of control strategy. The proposed system has been verified with MATLAB/Simulink simulations in all operation modes. Simulation results show the stable regulation of the DC link voltage at 400 V, the efficiency of the bidirectional power transfer, the reliability of the auxiliary battery charging and the effective exploitation of the rooftop PV energy. The proposed GAO-SMC reduces voltage THD from 3.80% to 1.97% and current THD from 4.44% to 2.08% in G2V mode, compared to a conventional PI controller. Likewise, the voltage THD is decreased from 4.76% to 2.05% in V2G mode, and the current THD is decreased from 5.18% to 2.28%. These results show that the proposed GAO-SMC has a significant improvement on voltage regulation, harmonic performance and operational flexibility, indicating its potential for future multifunctional EV charging applications.