PopReadUlongPowerKey

NTSTATUS __stdcall PopReadUlongPowerKey(PCWSTR a1, VOID *a5){
  NTSTATUS result; 
  unsigned int v4; 

  result = PopReadRegKeyValue(
             (WCHAR *)L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Power",
             (WCHAR *)a1,
             4i64,
             4i64,
             a5);
  if( result < 0 )
  {
    *(_DWORD *)a5 = 1;
    return result;
  }
  v4 = *(_DWORD *)a5;
  if( *(_DWORD *)a5 != 100 )
  {
    if( !v4 )
    {
      *(_DWORD *)a5 = 1;
      return -1073741262;
    }
    if( v4 > 0xA )
    {
      *(_DWORD *)a5 = 10;
      return -1073741262;
    }
  }
  return result;
}

Referenced by:

PopBatteryInitPhaseTwo