SeQueryTrustedPlatformModuleInformation

NTSTATUS __stdcall SeQueryTrustedPlatformModuleInformation(
        PVOID SystemInformation,
        UINT64 SystemInformationLength,
        UINT64 *ReturnLength){
  NTSTATUS v3; 
  int v4; 
  v3 = 0;
  if( *((_BYTE *)KeGetCurrentThread() + 562) )
    return -1073741790;
  if( (unsigned int)SystemInformationLength >= 4 )
  {
    *(_DWORD *)SystemInformation = 0;
    v4 = 0;
    if( SepOsLoaderTpmDriverLoaded )
    {
      v4 = 1;
      *(_DWORD *)SystemInformation = 1;
    }
    if( PnpCoreDriverGroupLoadPhase > 2 )
      *(_DWORD *)SystemInformation = v4 | 2;
  }
  else
  {
    if( ReturnLength )
      *(_DWORD *)ReturnLength = 4;
    return -1073741820;
  }
  return v3;
}

Referenced by:

ExpQuerySystemInformation