RtlpMuiRegGetInstalledLanguageIndexByName
__int64 __fastcall RtlpMuiRegGetInstalledLanguageIndexByName(__int64 a1, const wchar_t *a2, __int64 a3, _WORD *a4){
char v5;
__int64 v6;
int v7;
__int64 v8;
__int64 v9;
__int16 v10;
__int16 v12;
v12 = 0;
v5 = 0;
if( !a1 || !a2 )
return 3221225485i64;
v6 = *(_QWORD *)(a1 + 24);
if( (int)RtlpMuiRegGetOrAddString(a1, a2, 0, &v12) < 0 )
return 3221225524i64;
v7 = 0;
if( !*(_WORD *)(v6 + 6) )
return 3221225524i64;
v8 = *(_QWORD *)(v6 + 16);
do
{
v9 = 28i64 * v7;
if( *(_WORD *)(v9 + v8 + 6) == v12 )
{
v10 = *(_WORD *)(v9 + v8);
if( (v10 & 0x1020) == 32 )
{
if( a4 )
{
*a4 = v7;
return 0i64;
}
}
else if( (v10 & 0x1000) != 0 )
{
v5 = 1;
}
}
++v7;
}
while( v7 < *(unsigned __int16 *)(v6 + 6) );
if( v5 )
return 3221225659i64;
else
return 3221225524i64;
}Referenced by:
RtlpMuiRegGetInstalledLanguageIndexByLangId
RtlpRemovePendingDeleteLanguages