SC_RAW::CreatePartitionTable
__int64 __fastcall SC_RAW::CreatePartitionTable(SC_RAW *this){
__int64 v2;
int v3;
v2 = *(_QWORD *)(*(_QWORD *)this + 256i64);
memset(v2 + 446, 0i64);
*(_DWORD *)(v2 + 440) = 0;
*(_WORD *)(v2 + 510) = 0;
v3 = SC_DISK::WriteSectors(*(SC_DISK **)this, 1, 0i64, 0i64);
if( v3 >= 0 && *(_DWORD *)(*(_QWORD *)this + 248i64) == 1 )
{
memset(*(_QWORD *)(*(_QWORD *)this + 256i64), 0i64);
v3 = SC_DISK::WriteSectors(*(SC_DISK **)this, 1, 1i64, 0i64);
if( v3 >= 0 && (*(_DWORD *)(*(_QWORD *)this + 192i64) & 1) == 0 )
return(unsigned int)SC_DISK::WriteSectors(
*(SC_DISK **)this,
1,
*(_QWORD *)(*(_QWORD *)this + 240i64) - 1i64,
0i64);
}
return(unsigned int)v3;
}Referenced by:
No references.