BgpTxtGetRegionContext

INT64 __fastcall BgpTxtGetRegionContext(INT64 a1){
  BOOL v2; 
  INT64 result; 
  VOID *v4; 
  v4 = 0i64;
  if( !a1 || (*(_DWORD *)(a1 + 64) & 1) == 0 || (int)BgpFoGetFontHandle(0i64, &v4) < 0 )
    return 0i64;
  v2 = *(_QWORD *)(a1 + 48) == (_QWORD)v4;
  LODWORD(result) = BgpFwAllocateMemory(0x1Cui64);
  if( result )
  {
    *(_OWORD *)result = 0i64;
    *(_QWORD *)(result + 16) = 0i64;
    *(_DWORD *)(result + 24) = 0;
    *(_QWORD *)result = *(_QWORD *)a1;
    *(_QWORD *)(result + 8) = *(_QWORD *)(a1 + 8);
    *(_DWORD *)(result + 16) = *(_DWORD *)(a1 + 16);
    *(_DWORD *)(result + 20) = *(_DWORD *)(a1 + 56);
    *(_DWORD *)(result + 24) = v2;
  }
  return result;
}

Referenced by:

AnFwDisplayFade