There is something gloriously perverse about making a 69-year-old Anil Kapoor an instrument of barely contained rage. Here is a man who has spent decades being one of Hindi cinema's most irrepressibly kinetic presences, all nervous energy, infectious grin and permanently overclocked metabolism, now playing a retired soldier whose chief remaining talent is looking at the world as though he would dearly love to put his fist through it. The grin has gone AWOL. The fury has reported for duty.

In Subedaar, directed by Suresh Triveni, Kapoor plays Arjun Maurya, a decorated army veteran returning to civilian life after the death of his wife. He lives with Shyama (Radhikka Madan), his estranged daughter, in a town where illegal sand mining has become the local economic model and intimidation the preferred form of public administration. The outfit running this racket is headed by the grotesquely entitled Prince (Aditya Rawal), under the larger shadow of his sister Babli Didi (Mona Singh). Arjun wants a little peace, perhaps a semblance of domestic normality, and the opportunity to figure out what a man does when the uniform comes off and the orders stop coming.

The town, unfortunately, has other ideas.

The delicious central conceit of Subedaar is that Arjun has spent his professional life defending the nation from enemies who were supposed to be on the other side of a border, only to discover that the enemy has established a thriving franchise right in his own backyard. The country he served has become a place where the powerful behave like feudal landlords, the police appear to have misplaced their spines, and ordinary people have learned that keeping their heads down is a perfectly reasonable survival strategy. His disillusionment is not merely the grumbling of an old soldier who misses the good old days. It is the disorientation of a man discovering that the ideals for which he sacrificed his family have become rather difficult to locate in the country he has returned to.

There is a potentially magnificent film lurking inside that premise.

And then the film starts getting in its own way. Triveni, working from a screenplay co-written with Prajwal Chandrashekar, has assembled a collection of provocative ideas and stuffed them into a rather conventional revenge vehicle. The machinery is familiar: the monstrous local bully, the corrupt power structure, the increasingly intolerable provocations, the inevitable explosion of righteous violence. Prince is the sort of spoiled sociopath who seems to have been raised by a combination of gangster movies and an especially unpleasant social-media algorithm. Rawal commits to the part with considerable gusto, but the character is so insistently vile that he occasionally threatens to become a cartoon. Mona Singh, meanwhile, brings a deliciously calculating authority to Babli Didi, a criminal matriarch whose potential menace deserves considerably more screen time.

The problem is that the film keeps confusing escalation with development. Prince humiliates somebody, Arjun absorbs the insult, Prince does something even more outrageous, Arjun's jaw tightens. Repeat until the audience starts wondering whether anybody in this town has considered calling a lawyer. The 142-minute running time doesn't help. There are stretches when the narrative seems to be circling the same drain, waiting for somebody to finally pull the plug. The early atmosphere promises a slow-burning portrait of a decaying social order, but the screenplay repeatedly retreats into the comfortable business of setting up another confrontation.

Kapoor, however, is an entirely different proposition. He is magnificent at inhabiting the physical discomfort of a man whose body remembers the army even as his mind struggles to accommodate retirement. Watch the way he occupies a room, the way he measures an adversary, the way his face registers an entire history of disappointment before his mouth gets around to saying anything. There is an almost frightening economy to his anger. This is not the youthful, combustible Kapoor of the old commercial hits. His Arjun is a man carrying decades of accumulated frustration, grief and regret in a body that has become a permanent storage facility for unresolved business.

The late wife's red Gypsy is particularly important to this emotional architecture. It is a tangible piece of a life that has disappeared, a little mechanical monument to a marriage whose failures Arjun can no longer repair. When the vehicle becomes a casualty of Prince's arrogance, the personal and political fuse finally burns down. The ensuing violence has a certain satisfying old-school muscle, although the film sometimes mistakes the spectacle of a man hitting people for the more difficult business of showing us what that violence costs him.

There is also the matter of Shyama, played by Radhikka Madan. Her relationship with her father is the film's most interesting emotional complication. She has her own grievances, her own bruises, and her own reasons for refusing to accept paternal protection as a substitute for genuine affection. Arjun has spent much of his life serving an abstract national ideal while the intimate obligations of fatherhood went unattended. Now he has returned expecting, perhaps unconsciously, that the authority of his uniform will translate into authority at home. It doesn't. Shyama has no intention of becoming another subordinate in his command structure.

Madan gives her a prickly independence and a convincing sense of someone trying to reclaim control over her own life. Her encounters with predatory young men also establish an uncomfortable parallel between the small-scale tyrannies of everyday misogyny and the larger criminal ecosystem surrounding the town. The screenplay deserves credit for allowing Shyama to resist becoming simply the vulnerable daughter whose distress provides Dad with a fresh excuse to start breaking furniture. Yet her storyline remains frustratingly underdeveloped. We get glimpses of a much richer film about generational anger, female self-defense and the emotional wreckage left by absent fathers, but those glimpses are never given sufficient room to breathe.

Saurabh Shukla brings welcome humanity and comic oxygen as Prabhakar, Arjun's old friend, while Faisal Malik gives the criminal enterprise some welcome texture as Softy, a subordinate who seems increasingly exhausted by the lunatics he works for. The supporting cast is populated with capable performers, although the script doesn't always know what to do with them. Even the music and soundscape, which help establish the film's dusty, oppressive atmosphere, occasionally seem to be doing more imaginative work than the screenplay.

What makes Subedaar worth arguing about is its uneasy relationship with patriotism. Arjun's anger isn't simply the wounded pride of a soldier who discovers that civilian life doesn't salute him anymore. It is something more uncomfortable: the dawning suspicion that the country he devoted his life to defending has failed to defend the people living in it. The film toys with the idea that the real battlefield was never exclusively at the border. It was here, in the towns where musclemen dictate the law, where institutions have become ornamental, and where ordinary citizens are expected to regard their own powerlessness as a civic virtue.

That is a genuinely interesting political proposition, particularly in a popular action film. Unfortunately, Triveni doesn't entirely trust it. The more the story progresses, the more it gravitates towards the reassuring pleasures of the familiar action-hero mythology. Its climactic business feels like a rather desperate attempt to manufacture the kind of catharsis that the preceding drama has been promising. The social observations get crowded out by the mechanics of the showdown. A film that initially seems interested in interrogating the very idea of the invincible male protector eventually finds itself reaching for the same old machinery of masculine redemption.

And yet Kapoor makes it difficult to dismiss the enterprise. There is something moving about watching a veteran Bollywood star explore the disquiet of an ageing hero who has outlived the cultural conditions that once made his particular brand of masculinity seem unassailable. He isn't merely playing an old soldier. He's playing a man who has discovered that obedience, discipline and sacrifice do not necessarily purchase dignity. The performance has a weathered, lived-in quality that the film's more schematic writing cannot manufacture.

I kept wishing Subedaar had been braver. That it had trusted the silence between father and daughter, the disillusionment of its protagonist, the ugliness of the local power structure. That it had spent less time finding fresh excuses for Arjun to lose his temper and more time exploring the wreckage beneath that temper. There is a far more provocative film hiding in here, one about the emotional bankruptcy of militarized masculinity, the betrayal of civic ideals and the difficulty of learning to live when your entire identity has been built around fighting.

Instead, we get a somewhat overextended action drama with a terrific central performance and a screenplay that periodically trips over its own ambitions.

Still, Kapoor's face is worth the price of admission. It has become a landscape of old disappointments, and when that familiar, combustible energy finally erupts, the screen acquires a pulse that no amount of formula can entirely extinguish. Subedaar may not be the great late-career action statement it occasionally threatens to become, but it does remind us that Anil Kapoor remains one of Hindi cinema's most compelling screen presences.

The old soldier has come home. The trouble is that the war has followed him, and the filmmakers haven't quite figured out what to do once the shooting starts.