//
// sub_100923E40 from 0x100923e40 to 0x100923ed5 (149 bytes)
//
// 2 xrefs:
// > GameLevelManager::onUploadLevelCompleted @ 0x1005229cd
// > sub_100556DE0 @ 0x100556e32
//
// 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 12:38:18 +0000
//
void __fastcall sub_100923E40(__int64 a1, char a2)
{
if ( (a2 & 1) != 0 )
{
if ( (a2 & 2) != 0 )
goto LABEL_3;
}
else
{
sub_100378140(a1 + 80, *(_QWORD **)(a1 + 88));
*(_QWORD *)(a1 + 80) = a1 + 88;
*(_OWORD *)(a1 + 88) = 0;
*(_BYTE *)(a1 + 104) = 1;
if ( (a2 & 2) != 0 )
{
LABEL_3:
if ( (a2 & 4) != 0 )
return;
goto LABEL_4;
}
}
*(_QWORD *)(a1 + 160) = *(_QWORD *)(a1 + 152);
if ( (a2 & 4) != 0 )
return;
LABEL_4:
sub_100378140(a1 + 120, *(_QWORD **)(a1 + 128));
*(_QWORD *)(a1 + 120) = a1 + 128;
*(_OWORD *)(a1 + 128) = 0;
*(_BYTE *)(a1 + 144) = 1;
}