UINT8 __stdcall HvpAllocateMap(_HHIVE *Hive, _HMAP_DIRECTORY *Dir, UINT64 Start, UINT64 End){
unsigned int v4;
unsigned int v5;
_HMAP_TABLE *v8;
_HMAP_TABLE *v9;
__int64 v10;
v4 = End;
v5 = Start;
if( (unsigned int)End >= 0x400 )
return 0;
while( v5 <= v4 )
{
v8 = (_HMAP_TABLE *)Hive->Allocate(12288i64, 0i64, 959597891i64);
v9 = v8;
if( !v8 )
return 0;
memset(v8, 0i64, sizeof(_HMAP_TABLE));
v10 = v5++;
Dir->Directory[v10] = v9;
}
return 1;
}