int __thiscall VgaModeProgramAll(int *this)
{
int v1; // ecx
int v2; // ecx
unsigned int i; // esi
int v4; // ecx
int v5; // ecx
int v6; // ecx
int v7; // esi
PciRegWrite(*(this + 15), 510525440, -60816631);
PciRegWrite(v1, 510525492, 131200);
for ( i = 510525444; i < 0x1E6E0090; i += 4 )
PciRegWrite(v2, i, 0);
PciRegWrite(v2, 510525492, 0x20000);
PciRegWrite(v4, 510533632, 378054824);
if ( (PciRegRead(v5, 510533744) & 0x800000) != 0 )
{
v7 = -1828707360;
PciRegWrite(v6, 510533984, 70432);
}
else
{
v7 = -1828707328;
}
PciRegWrite(v6, 510533664, v7);
return MicroSecondDelay(100);
}