MiImageRvaRawEnumFirst

__int64 __fastcall MiImageRvaRawEnumFirst(UINT64 ulLanguageType, _DWORD *a2){
  unsigned int v2; 
  UINT64 v3; 
  unsigned int i; 
  __int64(__fastcall *v7)(UINT64, UINT64, UINT64); 
  unsigned int v8; 
  __int64 result; 

  v2 = 0;
  v3 = ulLanguageType + 144;
  for( i = 0; i < *(_DWORD *)(ulLanguageType + 140); v3 += 40i64 )
  {
    v7 = *(__int64(__fastcall **)(UINT64, UINT64, UINT64))(v3 + 8);
    if( v7 )
    {
      v8 = v7(ulLanguageType, v3 + 24, v3 + 4);
      *(_DWORD *)v3 = v8;
      if( v8 )
      {
        if( v2 )
        {
          if( v2 >= v8 )
            v2 = v8;
        }
        else
        {
          v2 = v8;
        }
      }
    }
    ++i;
  }
  if( a2 && v2 )
    *a2 = MiImageGetRawRvaState(ulLanguageType);
  result = v2;
  *(_DWORD *)(ulLanguageType + 264) = v2;
  return result;
}

Referenced by:

RtlpCompressRvaList