//
// sub_140009C50 from 0x140009c50 to 0x140009c93 (67 bytes)
//
// 4 xrefs:
// > ??> @ 0x1406ed650
// > ??> @ 0x1406ed668
// > ??> @ 0x1406ed690
// > ??> @ 0x14090ef60
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:26 +0000
//
char *__fastcall sub_140009C50(char *Block, char a2)
{
*(_QWORD *)Block = &std::exception::`vftable';
_std_exception_destroy(Block + 8);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}