UINT8 __stdcall BgkDisplayStringEx(PWCHAR String){
char v3;
__int64 v4;
bool v5;
if( !String )
return 0;
if( !*String )
return 1;
BgkpAcquireConsole();
if( !v3 )
return 0;
v4 = -1i64;
do
++v4;
while( String[v4] );
HeadlessDispatch(0x17ui64, (UINT8 *)String, 2 * v4 + 2, 0i64, 0i64);
if( byte_140C50485 || byte_140C50484 )
{
byte_140C50485 = 0;
byte_140C50484 = 0;
BgDisplayFade();
}
v5 = (*((int(__fastcall **)(PWCHAR))ConsoleInterface + 3))(String) >= 0;
ExReleaseRundownProtection(&stru_140C11248);
return v5;
}