//
// pre_c_initialization from 0x140677d18 to 0x140677dce (182 bytes)
//
// 3 xrefs:
// > ??> @ 0x1406d22d0
// > ??> @ 0x14093275c
// > ??> @ 0x140932768
//
// 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:36:00 +0000
//
int __fastcall pre_c_initialization()
{
int startup_file_mode; // eax
struct _exception *v1; // rcx
int SelectedCellCustomIdx; // ebx
charNode *v3; // rcx
_crt_argv_mode v4; // eax
struct _exception *v5; // rcx
int v6; // eax
struct _exception *v7; // rcx
struct _exception *v8; // rcx
int result; // eax
set_app_type(_crt_gui_app);
startup_file_mode = get_startup_file_mode();
set_fmode(startup_file_mode);
SelectedCellCustomIdx = TableViewCellDelegate::getSelectedCellCustomIdx(v1);
*_p__commode() = SelectedCellCustomIdx;
if ( !_scrt_initialize_onexit_tables(1u) )
goto LABEL_8;
sub_140678650();
atexit(sub_14067868C);
v4 = (unsigned int)charNode::raw_length(v3);
if ( configure_wide_argv(v4) )
goto LABEL_8;
sub_140678608();
if ( (unsigned int)_scrt_is_user_matherr_present() )
_setusermatherr((_UserMathErrorFunctionPointer)TableViewCellDelegate::getSelectedCellCustomIdx);
VirtualRowSource::unmountVirtualRow();
VirtualRowSource::unmountVirtualRow();
v6 = TableViewCellDelegate::getSelectedCellCustomIdx(v5);
configthreadlocale(v6);
if ( EditorSoundConfigCell::init() )
initialize_wide_environment();
TableViewCellDelegate::getSelectedCellCustomIdx(v7);
result = j_UserMathErrorFunction(v8);
if ( result )
{
LABEL_8:
sub_1406782F8(7);
JUMPOUT(0x140677DCDLL);
}
return result;
}