//
// GameStatsManager::getSecretOnlineRewardKey from 0x100336c04 to 0x100336ce0 (220 bytes)
//
// 1 xrefs:
// > GameLevelManager::onGetGJSecretRewardCompleted @ 0x100091bb0
//
// 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
//
void __usercall GameStatsManager::getSecretOnlineRewardKey(__int64 a1@, _QWORD *a2@)
{
__int64 v4; // x20
int v5; // [xsp+Ch] [xbp-244h] BYREF
__int128 v6; // [xsp+10h] [xbp-240h] BYREF
void *__p; // [xsp+20h] [xbp-230h]
_BYTE v8[512]; // [xsp+28h] [xbp-228h] BYREF
v6 = xmmword_1006350E0;
__p = v8;
sub_10000CB18((__int64 *)&v6, "o_secret_", 0);
v5 = a1;
sub_100009A40((int)&v6, a1, (int)&v5);
v4 = v6;
if ( *((_QWORD *)&v6 + 1) < (unsigned __int64)(v6 + 1) )
sub_100009ED4((__int64)&v6, v6 + 1);
*((_BYTE *)__p + v4) = 0;
sub_100009900(a2, (char *)__p);
if ( __p != v8 )
{
if ( __p )
operator delete[](__p);
}
}