IsMachineLanguageListInMutableLocation
bool __fastcall IsMachineLanguageListInMutableLocation(__int64 a1, __int64 a2, WCHAR a3){
bool v3;
UINT64 v4;
WCHAR v5;
_LARGE_INTEGER *v7;
struct _UNICODE_STRING DestinationString;
struct _UNICODE_STRING ValueName;
int KeyValue;
UINT64 KeyValueLength;
UINT64 KeyValueType;
HANDLE Handle;
v3 = 0;
DestinationString = 0i64;
RtlInitUnicodeString(
&DestinationString,
L"\\Registry\\Machine\\OSDATA\\System\\CurrentControlSet\\Control\\MUI\\UILanguages",
a3);
Handle = 0i64;
if( (int)LdrpOpenKey(&DestinationString, 0i64, v4, &Handle) >= 0 )
{
ValueName = 0i64;
RtlInitUnicodeString(&ValueName, L"MachineLanguageListMigrationState", v5);
KeyValue = 0;
LODWORD(KeyValueType) = 4;
LODWORD(KeyValueLength) = 4;
if( (int)LdrpQueryValueKey(Handle, &ValueName, &KeyValueType, &KeyValue, &KeyValueLength, v7) >= 0 )
v3 = KeyValue == 1;
}
if( Handle )
NtClose(Handle);
return v3;
}Referenced by:
RtlpMuiRegLoadInstalled