BcpGetMaxResourceProfile
__int64 __fastcall BcpGetMaxResourceProfile(__int64 a1, _OWORD *a2){
int CharacterMaxResourceProfile;
__int64 *v3;
unsigned int v4;
__int64 *v7;
unsigned int v8;
unsigned int v9;
unsigned int v10;
UINT16 *i;
CharacterMaxResourceProfile = 0;
v3 = &qword_140008368;
v4 = 0;
*a2 = 0i64;
do
{
v7 = (__int64 *)*(v3 - 1);
if( v7 != &qword_1400058C0 || (dword_140C13310 & 0x20000) == 0 )
{
CharacterMaxResourceProfile = 0;
v8 = *(unsigned __int16 *)v7 >> 1;
v9 = 0;
v10 = *(_DWORD *)v3;
for( i = (UINT16 *)v7[1]; v9 < v8; ++i )
{
CharacterMaxResourceProfile = BcpGetCharacterMaxResourceProfile(*i, v10, a1, (INT64)a2);
if( CharacterMaxResourceProfile < 0 )
break;
++v9;
}
if( CharacterMaxResourceProfile < 0 )
break;
}
++v4;
v3 += 2;
}
while( v4 < 0x1A );
return(unsigned int)CharacterMaxResourceProfile;
}Referenced by:
BgpBcInitializeCriticalMode