NTSTATUS __stdcall RtlCheckRegistryKey(UINT64 RelativeTo, PWCHAR Path){
int v2;
NTSTATUS result;
VOID *Key;
Key = 0i64;
v2 = RelativeTo;
result = RtlpGetRegistryHandle(RelativeTo, Path, 0, &Key);
if( result >= 0 )
{
if( (v2 & 0x40000000) == 0 )
ZwClose((_HANDLE)Key);
return 0;
}
return result;
}