Interplay of resonant states and Landau levels in functionalized graphene