LdrIsResItemExist

UINT64 __stdcall LdrIsResItemExist(PVOID Module, UINT64 *ResourceIdPath){
  _DWORD *RcConfig; 
  UINT64 *v4; 
  _DWORD *v5; 
  unsigned int v6; 
  RcConfig = LdrpGetRcConfig(Module, (INT64)ResourceIdPath, 1, 1);
  v5 = RcConfig;
  if( RcConfig )
  {
    if( LdrRscIsTypeExist(RcConfig, (PWCHAR)*ResourceIdPath, v4) < 0 )
    {
      return 393216;
    }
    else
    {
      v6 = 0;
      if( (v5[5] & 0x100) != 0 )
        v6 = 0x100000;
      if( (v5[4] & 0x10) != 0 )
        v6 |= 0x200000u;
    }
  }
  else
  {
    return 0x80000;
  }
  return v6;
}

Referenced by:

LdrpResSearchResourceMappedFile
LdrpSearchResourceSection_U