//
// GameLevelManager::updateUserScore from 0x737200 to 0x738828 (5672 bytes)
//
// 10 xrefs:
// > CreatorLayer::init @ 0x6cca8c
// > LevelInfoLayer::onLike @ 0x6d5984
// > LevelInfoLayer::onRateStars @ 0x6d7298
// > UploadPopup::onReturnToLevel @ 0x6e38a4
// > InfoLayer::loadPage @ 0x7e35c0
// > LeaderboardsLayer::selectLeaderboard @ 0x81ea18
// > ProfilePage::init @ 0x8fe6f0
// > LevelLeaderboard::init @ 0x9330b8
// > LevelListLayer::onLike @ 0xa727c0
// > ??> @ 0x486d8
//
// 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 GameLevelManager::updateUserScore(GameLevelManager *a1)
{
GameStatsManager *v2; // x0
GameStatsManager *v3; // x0
unsigned int v4; // w19
GameStatsManager *v5; // x0
GameStatsManager *v6; // x0
GameStatsManager *v7; // x0
GameStatsManager *v8; // x0
int v9; // w0
GameManager *v10; // x0
char *v11; // x0
const char *v12; // x20
GameManager *v13; // x0
unsigned int v14; // w22
GameManager *v15; // x0
int v16; // w23
GameManager *v17; // x0
int v18; // w24
cocos2d::CCString *v19; // x0
const char *CString; // x21
GameManager *v21; // x0
GameManager *v22; // x0
GameManager *v23; // x0
GameManager *v24; // x0
GameManager *v25; // x0
GameManager *v26; // x0
GameManager *v27; // x0
GameManager *v28; // x0
GameManager *v29; // x0
GameManager *v30; // x0
cocos2d::CCString *v31; // x0
size_t v32; // x0
GJAccountManager *v33; // x0
GameLevelManager *v34; // x0
GameLevelManager *v35; // x0
GameLevelManager *v36; // x0
void *v37; // x0
void *v38; // x0
void *v39; // x0
GJAccountManager *v40; // x0
GameLevelManager *v41; // x0
GameLevelManager *v42; // x0
unsigned int CompletedGauntletLevels; // w24
GameLevelManager *v44; // x0
int v45; // w23
void *v46; // x0
void *v47; // x0
void *v48; // x0
GJAccountManager *v49; // x0
cocos2d::CCString *v50; // x0
size_t v51; // x0
cocos2d::CCString *v52; // x0
size_t v53; // x0
cocos2d::CCString *v54; // x0
size_t v55; // x0
cocos2d::CCString *v56; // x0
size_t v57; // x0
cocos2d::CCString *v58; // x0
size_t v59; // x0
cocos2d::CCString *v60; // x0
size_t v61; // x0
cocos2d::CCString *v62; // x0
size_t v63; // x0
cocos2d::CCString *v64; // x0
size_t v65; // x0
GameManager *v66; // x0
cocos2d::CCString *v67; // x0
size_t v68; // x0
GameManager *v69; // x0
cocos2d::CCString *v70; // x0
size_t v71; // x0
GameManager *v72; // x0
cocos2d::CCString *v73; // x0
size_t v74; // x0
GameManager *v75; // x0
cocos2d::CCString *v76; // x0
size_t v77; // x0
GameManager *v78; // x0
cocos2d::CCString *v79; // x0
size_t v80; // x0
GameManager *v81; // x0
cocos2d::CCString *v82; // x0
size_t v83; // x0
GameManager *v84; // x0
cocos2d::CCString *v85; // x0
size_t v86; // x0
GameManager *v87; // x0
cocos2d::CCString *v88; // x0
size_t v89; // x0
GameManager *v90; // x0
cocos2d::CCString *v91; // x0
size_t v92; // x0
const char *v93; // x1
cocos2d::CCString *v94; // x0
size_t v95; // x0
cocos2d::CCString *v96; // x0
size_t v97; // x0
cocos2d::CCString *v98; // x0
size_t v99; // x0
cocos2d::CCString *v100; // x0
size_t v101; // x0
char *v102; // x19
unsigned int v103; // w0
unsigned __int8 *v104; // x3
char *v105; // x2
char *v106; // x0
void *v107; // x0
cocos2d::CCString *v108; // x0
size_t v109; // x0
int *p_m_unknown2; // x0
char *v111; // x0
char *v112; // x0
char *v113; // x0
void *v114; // x0
char *v115; // x0
void *v116; // x0
void *v117; // x0
char *v118; // x0
char *v119; // x20
unsigned int *v120; // x19
int v121; // w0
GameManager *v122; // x0
GameManager *v123; // x0
GameManager *v124; // x0
GameManager *v125; // x0
GameManager *v126; // x0
GameManager *v127; // x0
GameManager *v128; // x0
GameManager *v129; // x0
unsigned int *v130; // x1
int v131; // w2
unsigned int *v132; // x1
int v133; // w2
cocos2d::CCString *v134; // x0
size_t v135; // x0
cocos2d::CCString *v136; // x0
size_t v137; // x0
cocos2d::CCString *v138; // x0
size_t v139; // x0
cocos2d::CCString *v140; // x0
size_t v141; // x0
unsigned int *v142; // x1
int v143; // w2
unsigned int *v144; // x1
int v145; // w2
unsigned int *v146; // x1
int v147; // w2
unsigned int *v148; // x1
int v149; // w2
unsigned int *v150; // x1
int v151; // w2
unsigned int *v152; // x1
int v153; // w2
unsigned int *v154; // x1
int v155; // w2
unsigned int *v156; // x1
int v157; // w2
unsigned int *p_timeoutForConnect; // x1
int timeoutForConnect; // w2
unsigned int *v160; // x1
int v161; // w2
unsigned int *v162; // x1
int v163; // w2
unsigned int *v164; // x1
int v165; // w2
unsigned int *v166; // x1
int v167; // w2
unsigned int *v168; // x1
int v169; // w2
unsigned int *v170; // x1
int v171; // w2
unsigned int *v172; // x1
int v173; // w2
int v174; // [xsp+0h] [xbp-A0h]
int v175; // [xsp+8h] [xbp-98h]
IconType v176; // [xsp+10h] [xbp-90h]
unsigned int v177; // [xsp+18h] [xbp-88h]
unsigned int v178; // [xsp+20h] [xbp-80h]
int v179; // [xsp+28h] [xbp-78h]
int v180; // [xsp+30h] [xbp-70h]
int v181; // [xsp+40h] [xbp-60h]
int v182; // [xsp+48h] [xbp-58h]
int v183; // [xsp+50h] [xbp-50h]
int v184; // [xsp+58h] [xbp-48h]
int v185; // [xsp+60h] [xbp-40h]
int v186; // [xsp+68h] [xbp-38h]
_BOOL4 v187; // [xsp+70h] [xbp-30h]
int v188; // [xsp+78h] [xbp-28h]
int v189; // [xsp+80h] [xbp-20h]
int v190; // [xsp+88h] [xbp-18h]
int v191; // [xsp+90h] [xbp-10h]
int v192; // [xsp+108h] [xbp+68h]
int v193; // [xsp+10Ch] [xbp+6Ch]
int v194; // [xsp+110h] [xbp+70h]
int v195; // [xsp+114h] [xbp+74h]
int v196; // [xsp+118h] [xbp+78h]
int v197; // [xsp+11Ch] [xbp+7Ch]
int v198; // [xsp+120h] [xbp+80h]
unsigned int CompletedWeeklyLevels; // [xsp+120h] [xbp+80h]
int v200; // [xsp+124h] [xbp+84h]
unsigned int CompletedDailyLevels; // [xsp+124h] [xbp+84h]
int v202; // [xsp+128h] [xbp+88h]
int CompletedEventLevels; // [xsp+128h] [xbp+88h]
_BOOL4 m_playerGlow; // [xsp+12Ch] [xbp+8Ch]
unsigned int CompletedGauntletDemons; // [xsp+12Ch] [xbp+8Ch]
int v206; // [xsp+130h] [xbp+90h]
const char *v207; // [xsp+130h] [xbp+90h]
const char *v208; // [xsp+130h] [xbp+90h]
unsigned int v209; // [xsp+138h] [xbp+98h]
IconType m_playerIconType; // [xsp+13Ch] [xbp+9Ch]
unsigned int v211; // [xsp+140h] [xbp+A0h]
const char *v212; // [xsp+140h] [xbp+A0h]
unsigned int v213; // [xsp+148h] [xbp+A8h]
char *v214; // [xsp+148h] [xbp+A8h]
unsigned int v215; // [xsp+150h] [xbp+B0h]
unsigned int v216; // [xsp+154h] [xbp+B4h]
unsigned int Stat; // [xsp+158h] [xbp+B8h]
char *v218; // [xsp+158h] [xbp+B8h]
char *v219; // [xsp+158h] [xbp+B8h]
char *v220; // [xsp+158h] [xbp+B8h]
char *v221; // [xsp+158h] [xbp+B8h]
char *v222; // [xsp+158h] [xbp+B8h]
char *v223; // [xsp+158h] [xbp+B8h]
char *v224; // [xsp+158h] [xbp+B8h]
char *v225; // [xsp+158h] [xbp+B8h]
char *v226; // [xsp+158h] [xbp+B8h]
char *v227; // [xsp+158h] [xbp+B8h]
char *v228; // [xsp+158h] [xbp+B8h]
char *v229; // [xsp+158h] [xbp+B8h]
char *v230; // [xsp+158h] [xbp+B8h]
char *v231; // [xsp+158h] [xbp+B8h]
char *v232; // [xsp+158h] [xbp+B8h]
char *v233; // [xsp+158h] [xbp+B8h]
char *v234; // [xsp+158h] [xbp+B8h]
char *v235; // [xsp+158h] [xbp+B8h]
char *v236; // [xsp+158h] [xbp+B8h]
char *v237; // [xsp+158h] [xbp+B8h]
char *v238; // [xsp+158h] [xbp+B8h]
char *v239; // [xsp+158h] [xbp+B8h]
char *v240; // [xsp+158h] [xbp+B8h]
const char *v241; // [xsp+170h] [xbp+D0h] BYREF
char *v242; // [xsp+178h] [xbp+D8h] BYREF
__int64 v243; // [xsp+180h] [xbp+E0h] BYREF
__int64 v244; // [xsp+188h] [xbp+E8h] BYREF
__int64 v245; // [xsp+190h] [xbp+F0h] BYREF
__int64 v246; // [xsp+198h] [xbp+F8h] BYREF
__int64 v247; // [xsp+1A0h] [xbp+100h] BYREF
__int64 v248; // [xsp+1A8h] [xbp+108h] BYREF
__int64 v249; // [xsp+1B0h] [xbp+110h] BYREF
__int64 v250; // [xsp+1B8h] [xbp+118h] BYREF
char *v251; // [xsp+1C0h] [xbp+120h] BYREF
__int64 v252; // [xsp+1C8h] [xbp+128h]
__int64 v253; // [xsp+1D0h] [xbp+130h] BYREF
std::string v254; // [xsp+1D8h] [xbp+138h] BYREF
char *v255; // [xsp+1E0h] [xbp+140h] BYREF
const char *v256; // [xsp+1E8h] [xbp+148h] BYREF
const char *v257; // [xsp+1F0h] [xbp+150h] BYREF
cocos2d::extension::CCHttpClient *v258; // [xsp+1F8h] [xbp+158h] BYREF
unsigned __int8 v259[24]; // [xsp+200h] [xbp+160h] BYREF
unsigned __int8 v260[48]; // [xsp+218h] [xbp+178h] BYREF
std::string v261; // 0:x2.8
if ( !GameLevelManager::isDLActive(a1, "user_score") )
{
GameLevelManager::addDLToActive(a1, "user_score");
GameManager::sharedState();
sub_D18D28(&v241);
v2 = GameStatsManager::sharedState();
Stat = GameStatsManager::getStat(v2, "6");
v3 = GameStatsManager::sharedState();
v4 = GameStatsManager::getStat(v3, "28");
v5 = GameStatsManager::sharedState();
v216 = GameStatsManager::getStat(v5, "13");
v6 = GameStatsManager::sharedState();
v213 = GameStatsManager::getStat(v6, "5");
v7 = GameStatsManager::sharedState();
v215 = GameStatsManager::getStat(v7, "8");
v8 = GameStatsManager::sharedState();
v211 = GameStatsManager::getStat(v8, "12");
m_playerIconType = GameManager::sharedState()->m_playerIconType;
if ( GameManager::sharedState()->m_playerGlow )
v9 = 2;
else
v9 = 0;
v206 = v9;
switch ( m_playerIconType )
{
case Ship:
v127 = GameManager::sharedState();
v209 = v127->m_playerShip.random - v127->m_playerShip.seed;
break;
case Ball:
v126 = GameManager::sharedState();
v209 = v126->m_playerBall.random - v126->m_playerBall.seed;
break;
case Ufo:
v125 = GameManager::sharedState();
v209 = v125->m_playerBird.random - v125->m_playerBird.seed;
break;
case Wave:
v124 = GameManager::sharedState();
v209 = v124->m_playerDart.random - v124->m_playerDart.seed;
break;
case Robot:
v123 = GameManager::sharedState();
v209 = v123->m_playerRobot.random - v123->m_playerRobot.seed;
break;
case Spider:
v129 = GameManager::sharedState();
v209 = v129->m_playerSpider.random - v129->m_playerSpider.seed;
break;
case Swing:
v122 = GameManager::sharedState();
v209 = v122->m_playerSwing.random - v122->m_playerSwing.seed;
break;
case Jetpack:
v128 = GameManager::sharedState();
v209 = v128->m_playerJetpack.random - v128->m_playerJetpack.seed;
break;
default:
v10 = GameManager::sharedState();
v209 = v10->m_playerFrame.random - v10->m_playerFrame.seed;
break;
}
sub_D18D28(&v255);
GameLevelManager::removeDelimiterChars((__int64)a1, (unsigned __int8 **)&v255, 0);
v11 = v255 - 24;
if ( v255 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v148 = (unsigned int *)(v255 - 8);
do
v149 = __ldaxr(v148);
while ( __stlxr(v149 - 1, v148) );
}
else
{
v149 = *((_DWORD *)v255 - 2);
*((_DWORD *)v255 - 2) = v149 - 1;
}
if ( v149 <= 0 )
operator delete(v11);
}
GameLevelManager::getBasePostString(a1, (__int64)&v242);
v12 = v241;
v13 = GameManager::sharedState();
v14 = v13->m_playerColor.random - v13->m_playerColor.seed;
v15 = GameManager::sharedState();
v16 = v15->m_playerColor2.random - v15->m_playerColor2.seed;
v17 = GameManager::sharedState();
v18 = v17->m_playerGlowColor.random - v17->m_playerGlowColor.seed;
v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
CString = cocos2d::CCString::getCString(v19);
v21 = GameManager::sharedState();
v202 = v21->m_playerFrame.random - v21->m_playerFrame.seed;
v22 = GameManager::sharedState();
v200 = v22->m_playerShip.random - v22->m_playerShip.seed;
v23 = GameManager::sharedState();
v198 = v23->m_playerBall.random - v23->m_playerBall.seed;
v24 = GameManager::sharedState();
v197 = v24->m_playerBird.random - v24->m_playerBird.seed;
v25 = GameManager::sharedState();
v196 = v25->m_playerDart.random - v25->m_playerDart.seed;
v26 = GameManager::sharedState();
v195 = v26->m_playerRobot.random - v26->m_playerRobot.seed;
m_playerGlow = GameManager::sharedState()->m_playerGlow;
v27 = GameManager::sharedState();
v194 = v27->m_playerSpider.random - v27->m_playerSpider.seed;
v28 = GameManager::sharedState();
v193 = v28->m_playerDeathEffect.random - v28->m_playerDeathEffect.seed;
v29 = GameManager::sharedState();
v192 = v29->m_playerSwing.random - v29->m_playerSwing.seed;
v30 = GameManager::sharedState();
v183 = v198;
v176 = m_playerIconType;
v184 = v197;
v177 = v215;
v185 = v196;
v178 = v211;
v186 = v195;
v180 = 22;
v181 = v202;
v182 = v200;
v187 = m_playerGlow;
v174 = v16;
v175 = v18;
v179 = v206;
v188 = v194;
v189 = v193;
v190 = v192;
v191 = v30->m_playerJetpack.random - v30->m_playerJetpack.seed;
v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&userName=%s&stars=%i&moons=%i&demons=%i&diamonds=%i&icon=%i&color"
"1=%i&color2=%i&color3=%i&iconType=%i&coins=%i&userCoins=%i&special"
"=%i&gameVersion=%i&secret=%s&accIcon=%i&accShip=%i&accBall=%i&accB"
"ird=%i&accDart=%i&accRobot=%i&accGlow=%i&accSpider=%i&accExplosion"
"=%i&accSwing=%i&accJetpack=%i",
v12,
Stat,
v4,
v213,
v216,
v209,
v14,
v174,
v175,
v176,
v177,
v178,
v179,
v180,
CString,
v181,
v182,
v183,
v184,
v185,
v186,
v187,
v188,
v189,
v190,
v191);
v207 = cocos2d::CCString::getCString(v31);
v32 = strlen(v207);
sub_D15FD4(&v242, v207, v32);
v33 = GJAccountManager::sharedState();
if ( v33->m_accountID - v33->m_unkInt1 <= 0 )
sub_D153B8((int)&v243, &byte_F288A0);
else
GameLevelManager::getDemonLevelsString(a1, (__int64)&v243);
if ( *(_QWORD *)(v243 - 24) )
{
sub_D15FD4(&v242, "&dinfo=", 7);
sub_D15E14(&v242, &v243);
v34 = GameLevelManager::sharedState();
CompletedWeeklyLevels = GameLevelManager::getCompletedWeeklyLevels(v34);
v35 = GameLevelManager::sharedState();
CompletedGauntletDemons = GameLevelManager::getCompletedGauntletDemons(v35);
v36 = GameLevelManager::sharedState();
CompletedEventLevels = GameLevelManager::getCompletedEventLevels(v36, 10, 10);
sub_D15FD4(&v242, "&dinfow=", 8);
GameToolbox::intToString(&v244, (GameToolbox *)CompletedWeeklyLevels);
sub_D15E14(&v242, &v244);
v37 = (void *)(v244 - 24);
if ( (__int64 *)(v244 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v172 = (unsigned int *)(v244 - 8);
do
v173 = __ldaxr(v172);
while ( __stlxr(v173 - 1, v172) );
}
else
{
v173 = *(_DWORD *)(v244 - 8);
*(_DWORD *)(v244 - 8) = v173 - 1;
}
if ( v173 <= 0 )
operator delete(v37);
}
sub_D15FD4(&v242, "&dinfog=", 8);
GameToolbox::intToString(&v245, (GameToolbox *)CompletedGauntletDemons);
sub_D15E14(&v242, &v245);
v38 = (void *)(v245 - 24);
if ( (__int64 *)(v245 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v168 = (unsigned int *)(v245 - 8);
do
v169 = __ldaxr(v168);
while ( __stlxr(v169 - 1, v168) );
}
else
{
v169 = *(_DWORD *)(v245 - 8);
*(_DWORD *)(v245 - 8) = v169 - 1;
}
if ( v169 <= 0 )
operator delete(v38);
}
sub_D15FD4(&v242, "&dinfoe=", 8);
GameToolbox::intToString(&v246, (GameToolbox *)(unsigned int)CompletedEventLevels);
sub_D15E14(&v242, &v246);
v39 = (void *)(v246 - 24);
if ( (__int64 *)(v246 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v132 = (unsigned int *)(v246 - 8);
do
v133 = __ldaxr(v132);
while ( __stlxr(v133 - 1, v132) );
}
else
{
v133 = *(_DWORD *)(v246 - 8);
*(_DWORD *)(v246 - 8) = v133 - 1;
}
if ( v133 <= 0 )
operator delete(v39);
}
}
else
{
CompletedEventLevels = 0;
CompletedGauntletDemons = 0;
CompletedWeeklyLevels = 0;
}
v40 = GJAccountManager::sharedState();
if ( v40->m_accountID - v40->m_unkInt1 <= 0 )
sub_D153B8((int)&v247, &byte_F288A0);
else
GameLevelManager::getStarLevelsString(a1, (__int64)&v247);
if ( *(_QWORD *)(v247 - 24) )
{
sub_D15FD4(&v242, "&sinfo=", 7);
sub_D15E14(&v242, &v247);
v41 = GameLevelManager::sharedState();
CompletedDailyLevels = GameLevelManager::getCompletedDailyLevels(v41);
v42 = GameLevelManager::sharedState();
CompletedGauntletLevels = GameLevelManager::getCompletedGauntletLevels(v42);
v44 = GameLevelManager::sharedState();
v45 = GameLevelManager::getCompletedEventLevels(v44, 1, 9);
sub_D15FD4(&v242, "&sinfod=", 8);
GameToolbox::intToString(&v248, (GameToolbox *)CompletedDailyLevels);
sub_D15E14(&v242, &v248);
v46 = (void *)(v248 - 24);
if ( (__int64 *)(v248 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v170 = (unsigned int *)(v248 - 8);
do
v171 = __ldaxr(v170);
while ( __stlxr(v171 - 1, v170) );
}
else
{
v171 = *(_DWORD *)(v248 - 8);
*(_DWORD *)(v248 - 8) = v171 - 1;
}
if ( v171 <= 0 )
operator delete(v46);
}
sub_D15FD4(&v242, "&sinfog=", 8);
GameToolbox::intToString(&v249, (GameToolbox *)CompletedGauntletLevels);
sub_D15E14(&v242, &v249);
v47 = (void *)(v249 - 24);
if ( (__int64 *)(v249 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v166 = (unsigned int *)(v249 - 8);
do
v167 = __ldaxr(v166);
while ( __stlxr(v167 - 1, v166) );
}
else
{
v167 = *(_DWORD *)(v249 - 8);
*(_DWORD *)(v249 - 8) = v167 - 1;
}
if ( v167 <= 0 )
operator delete(v47);
}
sub_D15FD4(&v242, "&sinfoe=", 8);
GameToolbox::intToString(&v250, (GameToolbox *)(unsigned int)v45);
sub_D15E14(&v242, &v250);
v48 = (void *)(v250 - 24);
if ( (__int64 *)(v250 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v130 = (unsigned int *)(v250 - 8);
do
v131 = __ldaxr(v130);
while ( __stlxr(v131 - 1, v130) );
}
else
{
v131 = *(_DWORD *)(v250 - 8);
*(_DWORD *)(v250 - 8) = v131 - 1;
}
if ( v131 <= 0 )
operator delete(v48);
}
}
else
{
CompletedGauntletLevels = 0;
CompletedDailyLevels = 0;
v45 = 0;
}
sub_D153B8((int)&v251, &byte_F288A0);
v49 = GJAccountManager::sharedState();
v50 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v49->m_accountID - v49->m_unkInt1));
v208 = cocos2d::CCString::getCString(v50);
v51 = strlen(v208);
sub_D15FD4(&v251, v208, v51);
v52 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v211);
v212 = cocos2d::CCString::getCString(v52);
v53 = strlen(v212);
sub_D15FD4(&v251, v212, v53);
v54 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v213);
v214 = (char *)cocos2d::CCString::getCString(v54);
v55 = strlen(v214);
sub_D15FD4(&v251, v214, v55);
v56 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)Stat);
v218 = (char *)cocos2d::CCString::getCString(v56);
v57 = strlen(v218);
sub_D15FD4(&v251, v218, v57);
v58 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v215);
v219 = (char *)cocos2d::CCString::getCString(v58);
v59 = strlen(v219);
sub_D15FD4(&v251, v219, v59);
v60 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)m_playerIconType);
v220 = (char *)cocos2d::CCString::getCString(v60);
v61 = strlen(v220);
sub_D15FD4(&v251, v220, v61);
v62 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v209);
v221 = (char *)cocos2d::CCString::getCString(v62);
v63 = strlen(v221);
sub_D15FD4(&v251, v221, v63);
v64 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v216);
v222 = (char *)cocos2d::CCString::getCString(v64);
v65 = strlen(v222);
sub_D15FD4(&v251, v222, v65);
v66 = GameManager::sharedState();
v67 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v66->m_playerFrame.random - v66->m_playerFrame.seed));
v223 = (char *)cocos2d::CCString::getCString(v67);
v68 = strlen(v223);
sub_D15FD4(&v251, v223, v68);
v69 = GameManager::sharedState();
v70 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v69->m_playerShip.random - v69->m_playerShip.seed));
v224 = (char *)cocos2d::CCString::getCString(v70);
v71 = strlen(v224);
sub_D15FD4(&v251, v224, v71);
v72 = GameManager::sharedState();
v73 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v72->m_playerBall.random - v72->m_playerBall.seed));
v225 = (char *)cocos2d::CCString::getCString(v73);
v74 = strlen(v225);
sub_D15FD4(&v251, v225, v74);
v75 = GameManager::sharedState();
v76 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v75->m_playerBird.random - v75->m_playerBird.seed));
v226 = (char *)cocos2d::CCString::getCString(v76);
v77 = strlen(v226);
sub_D15FD4(&v251, v226, v77);
v78 = GameManager::sharedState();
v79 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v78->m_playerDart.random - v78->m_playerDart.seed));
v227 = (char *)cocos2d::CCString::getCString(v79);
v80 = strlen(v227);
sub_D15FD4(&v251, v227, v80);
v81 = GameManager::sharedState();
v82 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v81->m_playerRobot.random - v81->m_playerRobot.seed));
v228 = (char *)cocos2d::CCString::getCString(v82);
v83 = strlen(v228);
sub_D15FD4(&v251, v228, v83);
v84 = GameManager::sharedState();
v85 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)v84->m_playerGlow);
v229 = (char *)cocos2d::CCString::getCString(v85);
v86 = strlen(v229);
sub_D15FD4(&v251, v229, v86);
v87 = GameManager::sharedState();
v88 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v87->m_playerSpider.random - v87->m_playerSpider.seed));
v230 = (char *)cocos2d::CCString::getCString(v88);
v89 = strlen(v230);
sub_D15FD4(&v251, v230, v89);
v90 = GameManager::sharedState();
v91 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(v90->m_playerDeathEffect.random
- v90->m_playerDeathEffect.seed));
v231 = (char *)cocos2d::CCString::getCString(v91);
v92 = strlen(v231);
sub_D15FD4(&v251, v231, v92);
v93 = *(const char **)(v243 - 24);
if ( v93 )
{
v134 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v93);
v237 = (char *)cocos2d::CCString::getCString(v134);
v135 = strlen(v237);
sub_D15FD4(&v251, v237, v135);
v136 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)CompletedWeeklyLevels);
v238 = (char *)cocos2d::CCString::getCString(v136);
v137 = strlen(v238);
sub_D15FD4(&v251, v238, v137);
v138 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)CompletedGauntletDemons);
v239 = (char *)cocos2d::CCString::getCString(v138);
v139 = strlen(v239);
sub_D15FD4(&v251, v239, v139);
if ( CompletedEventLevels > 0 )
{
v140 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)CompletedEventLevels);
v240 = (char *)cocos2d::CCString::getCString(v140);
v141 = strlen(v240);
sub_D15FD4(&v251, v240, v141);
}
}
if ( *(_QWORD *)(v247 - 24) )
{
sub_D15E14(&v251, &v247);
v94 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)CompletedDailyLevels);
v232 = (char *)cocos2d::CCString::getCString(v94);
v95 = strlen(v232);
sub_D15FD4(&v251, v232, v95);
v96 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)CompletedGauntletLevels);
v233 = (char *)cocos2d::CCString::getCString(v96);
v97 = strlen(v233);
sub_D15FD4(&v251, v233, v97);
if ( v45 > 0 )
{
v98 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)v45);
v234 = (char *)cocos2d::CCString::getCString(v98);
v99 = strlen(v234);
sub_D15FD4(&v251, v234, v99);
}
}
v100 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_78,
"I35",
"fsAa",
112,
67,
"Rg");
v235 = (char *)cocos2d::CCString::getCString(v100);
v101 = strlen(v235);
sub_D15FD4(&v251, v235, v101);
v102 = v251;
v103 = strlen(v251);
rtsha1::calc((rtsha1 *)v102, (const void *)v103, (__int64)v259, v104);
rtsha1::toHexString((rtsha1 *)v259, v260, v105);
sub_D153B8((int)&v253, (char *)v260);
sub_D153B8((int)&v254, "85271");
cocos2d::ZipUtils::base64EncodeEnc((cocos2d::ZipUtils *)&v253, &v254, v261);
v106 = (char *)v254.m_data.m_data - 24;
if ( (__int64 *)v254.m_data.m_data - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v154 = (unsigned int *)((char *)v254.m_data.m_data - 8);
do
v155 = __ldaxr(v154);
while ( __stlxr(v155 - 1, v154) );
}
else
{
v155 = *((_DWORD *)v254.m_data.m_data - 2);
*((_DWORD *)v254.m_data.m_data - 2) = v155 - 1;
}
if ( v155 <= 0 )
operator delete(v106);
}
v107 = (void *)(v253 - 24);
if ( (__int64 *)(v253 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v150 = (unsigned int *)(v253 - 8);
do
v151 = __ldaxr(v150);
while ( __stlxr(v151 - 1, v150) );
}
else
{
v151 = *(_DWORD *)(v253 - 8);
*(_DWORD *)(v253 - 8) = v151 - 1;
}
if ( v151 <= 0 )
operator delete(v107);
}
gen_random(10, (__int64)&v255);
v108 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&seed=%s&seed2=%s",
v255,
v252);
v236 = (char *)cocos2d::CCString::getCString(v108);
v109 = strlen(v236);
sub_D15FD4(&v242, v236, v109);
sub_D153B8((int)&v256, "https://www.boomlings.com/database/updateGJUserScore22.php");
sub_D153B8((int)&v257, v242);
sub_D153B8((int)&v258, "Update user score");
GameLevelManager::ProcessHttpRequest(a1, &v256, &v257, &v258, 10);
p_m_unknown2 = &v258[-1].m_unknown2;
if ( &v258[-1].m_unknown2 != (int *)&qword_124B6B0 )
{
if ( &pthread_create )
{
p_timeoutForConnect = (unsigned int *)&v258[-1]._timeoutForConnect;
do
timeoutForConnect = __ldaxr(p_timeoutForConnect);
while ( __stlxr(timeoutForConnect - 1, p_timeoutForConnect) );
}
else
{
timeoutForConnect = v258[-1]._timeoutForConnect;
v258[-1]._timeoutForConnect = timeoutForConnect - 1;
}
if ( timeoutForConnect <= 0 )
operator delete(p_m_unknown2);
}
v111 = (char *)(v257 - 24);
if ( v257 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v162 = (unsigned int *)(v257 - 8);
do
v163 = __ldaxr(v162);
while ( __stlxr(v163 - 1, v162) );
}
else
{
v163 = *((_DWORD *)v257 - 2);
*((_DWORD *)v257 - 2) = v163 - 1;
}
if ( v163 <= 0 )
operator delete(v111);
}
v112 = (char *)(v256 - 24);
if ( v256 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v152 = (unsigned int *)(v256 - 8);
do
v153 = __ldaxr(v152);
while ( __stlxr(v153 - 1, v152) );
}
else
{
v153 = *((_DWORD *)v256 - 2);
*((_DWORD *)v256 - 2) = v153 - 1;
}
if ( v153 <= 0 )
operator delete(v112);
}
v113 = v255 - 24;
if ( v255 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v164 = (unsigned int *)(v255 - 8);
do
v165 = __ldaxr(v164);
while ( __stlxr(v165 - 1, v164) );
}
else
{
v165 = *((_DWORD *)v255 - 2);
*((_DWORD *)v255 - 2) = v165 - 1;
}
if ( v165 <= 0 )
operator delete(v113);
}
v114 = (void *)(v252 - 24);
if ( (__int64 *)(v252 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v156 = (unsigned int *)(v252 - 8);
do
v157 = __ldaxr(v156);
while ( __stlxr(v157 - 1, v156) );
}
else
{
v157 = *(_DWORD *)(v252 - 8);
*(_DWORD *)(v252 - 8) = v157 - 1;
}
if ( v157 <= 0 )
operator delete(v114);
}
v115 = v251 - 24;
if ( v251 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v160 = (unsigned int *)(v251 - 8);
do
v161 = __ldaxr(v160);
while ( __stlxr(v161 - 1, v160) );
}
else
{
v161 = *((_DWORD *)v251 - 2);
*((_DWORD *)v251 - 2) = v161 - 1;
}
if ( v161 <= 0 )
operator delete(v115);
}
v116 = (void *)(v247 - 24);
if ( (__int64 *)(v247 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v146 = (unsigned int *)(v247 - 8);
do
v147 = __ldaxr(v146);
while ( __stlxr(v147 - 1, v146) );
}
else
{
v147 = *(_DWORD *)(v247 - 8);
*(_DWORD *)(v247 - 8) = v147 - 1;
}
if ( v147 <= 0 )
operator delete(v116);
}
v117 = (void *)(v243 - 24);
if ( (__int64 *)(v243 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v144 = (unsigned int *)(v243 - 8);
do
v145 = __ldaxr(v144);
while ( __stlxr(v145 - 1, v144) );
}
else
{
v145 = *(_DWORD *)(v243 - 8);
*(_DWORD *)(v243 - 8) = v145 - 1;
}
if ( v145 <= 0 )
operator delete(v117);
}
v118 = v242 - 24;
if ( v242 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v142 = (unsigned int *)(v242 - 8);
do
v143 = __ldaxr(v142);
while ( __stlxr(v143 - 1, v142) );
}
else
{
v143 = *((_DWORD *)v242 - 2);
*((_DWORD *)v242 - 2) = v143 - 1;
}
if ( v143 <= 0 )
operator delete(v118);
}
v119 = (char *)(v241 - 24);
if ( v241 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v120 = (unsigned int *)(v241 - 8);
do
v121 = __ldaxr(v120);
while ( __stlxr(v121 - 1, v120) );
}
else
{
v121 = *((_DWORD *)v241 - 2);
*((_DWORD *)v241 - 2) = v121 - 1;
}
if ( v121 <= 0 )
operator delete(v119);
}
}
}