//
// sub_1400782F0 from 0x1400782f0 to 0x140078336 (70 bytes)
//
// 2 xrefs:
// > ??> @ 0x140538f50
// > ??> @ 0x1406c6660
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_BYTE *__fastcall sub_1400782F0(_BYTE *Block, char a2)
{
bool v2; // zf
v2 = (Block[8] & 1) == 0;
*(_QWORD *)Block = &CCallbackImpl<152>::`vftable';
if ( !v2 )
SteamAPI_UnregisterCallback();
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}