KitpReadUlongFromKey
INT64 __fastcall KitpReadUlongFromKey(VOID *const Key, _UNICODE_STRING *ValueName, UINT64 *Data){
INT64 result;
ULONG ResultLength;
__int128 KeyValueInformation;
int v7;
*(_DWORD *)Data = 0;
ResultLength = 0;
v7 = 0;
KeyValueInformation = 0i64;
LODWORD(result) = ZwQueryValueKey(
Key,
(PUNICODE_STRING)&SbtSamplingRateValue,
KeyValuePartialInformation,
&KeyValueInformation,
0x14u,
&ResultLength);
if( (int)result >= 0 )
{
if( *(_QWORD *)((char *)&KeyValueInformation + 4) == 0x400000004i64 )
{
*(_DWORD *)Data = HIDWORD(KeyValueInformation);
return 0i64;
}
else
{
return 3221225508i64;
}
}
return result;
}Referenced by:
KitpInitAitSampleRate