INT64 __fastcall PopEsWnfSubscriptionOverrideCallback(INT64 a1){
int v1;
unsigned int v3;
int v4[5];
int v5;
v3 = 0;
v4[0] = 4;
if( (int)ExQueryWnfStateData(a1, &v5, &v3, (unsigned int *)v4) >= 0 )
{
v1 = v3;
if( v3 <= 2 )
{
PopAcquireRwLockExclusive(&PopEsLock);
PopEsMode = v1;
PopReleaseRwLock((UINT64)&PopEsLock);
PopEsWorkItemSchedule(2ui64);
}
}
return 0i64;
}