INT64 __stdcall WheapGetAllPolicyValues(UINT64 *Count, UINT64 Length, UINT8 *Buffer){
INT64 result;
unsigned int v5;
int v6;
__int64 v7;
if( (unsigned int)Length < 0x34 )
return 3221225507i64;
*(_DWORD *)Count = 13;
v5 = 0;
do
{
LODWORD(result) = WheapGetPolicyValue(v5, (UINT64 *)Buffer);
if( (int)result < 0 )
break;
v5 = v6 + 1;
Buffer = (UINT8 *)(v7 + 4);
}
while( v5 < 0xD );
return result;
}