int __thiscall PchMiscInit(_BYTE *this)
{
  int v2; // eax

  if ( (unsigned __int8)sub_FFD8D59A() )
  {
    DebugPrint(64, (int)"DWR: PchMiscInit() End\n");
  }
  else
  {
    sub_FFD8BE68(); /*0xffd804c0*/
    v2 = sub_FFD8CBBA(0, 31, 2); /*0xffd804ce*/
    *(_DWORD *)(v2 + 172) &= ~0x100000u; /*0xffd804e5*/
    if ( *(this + 1) ) /*0xffd804f0*/
      sub_FFD8C5F6(255, 8); /*0xffd80506*/
    else
      sub_FFD8C5F6(247, 0); /*0xffd804fd*/
    sub_FFD8C578(-1793, 8207); /*0xffd80521*/
    sub_FFD8C578(-1, 0x80000000); /*0xffd80535*/
    sub_FFD8C5F6(223, 0); /*0xffd80556*/
  }
  return 0; /*0xffd8055d*/
}
