//
// GameLevelManager::storeUserNames from 0x100093144 to 0x1000932dc (408 bytes)
//
// 3 xrefs:
// > GameLevelManager::onGetOnlineLevelsCompleted @ 0x10008a7b4
// > GameLevelManager::onGetLevelListsCompleted @ 0x10009141c
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x10009ffa0
//
// 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
//
__int64 __fastcall GameLevelManager::storeUserNames(__int64 result, __int64 *a2)
{
int v2; // w19
__int64 v3; // x20
__int64 v4; // x21
cocos2d::CCString *v5; // x0
char *CString; // x0
char *v7; // x1
cocos2d::CCArray *v8; // x24
cocos2d::CCString *v9; // x0
int v10; // w23
cocos2d::CCString *v11; // x25
cocos2d::CCString *v12; // x0
int v13; // w24
char *v14; // x0
void *v15[2]; // [xsp+8h] [xbp-88h] BYREF
char v16; // [xsp+1Fh] [xbp-71h]
void *v17[2]; // [xsp+20h] [xbp-70h] BYREF
char v18; // [xsp+37h] [xbp-59h]
void *__p[2]; // [xsp+38h] [xbp-58h] BYREF
char v20; // [xsp+4Fh] [xbp-41h]
v2 = result;
if ( *((char *)a2 + 23) < 0 )
{
if ( !a2[1] )
return result;
a2 = (__int64 *)*a2;
}
else if ( !*((_BYTE *)a2 + 23) )
{
return result;
}
sub_100009900(__p, (char *)a2);
v3 = sub_100093338(__p, "|");
if ( v20 < 0 )
operator delete(__p[0]);
result = sub_10024A36C(v3);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = (cocos2d::CCString *)sub_10024A388(v3, v4);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
if ( v20 >= 0 )
v7 = (char *)__p;
else
v7 = (char *)__p[0];
sub_100009900(v17, v7);
v8 = (cocos2d::CCArray *)sub_100093338(v17, ":");
if ( v18 < 0 )
operator delete(v17[0]);
if ( (unsigned int)sub_10024A36C(v8) >= 3 )
{
v9 = cocos2d::CCArray::stringAtIndex(v8, 0);
v10 = cocos2d::CCString::intValue(v9);
v11 = cocos2d::CCArray::stringAtIndex(v8, 1u);
v12 = cocos2d::CCArray::stringAtIndex(v8, 2u);
v13 = cocos2d::CCString::intValue(v12);
v14 = (char *)cocos2d::CCString::getCString(v11);
sub_100009900(v15, v14);
GameLevelManager::storeUserName(v2, v10, v13, (char *)v15);
if ( v16 < 0 )
operator delete(v15[0]);
}
if ( v20 < 0 )
operator delete(__p[0]);
v4 = (unsigned int)(v4 + 1);
result = sub_10024A36C(v3);
}
while ( (unsigned int)v4 < (unsigned int)result );
}
return result;
}