// // ProfilePage::onInfo from 0x8f902c to 0x8f98d8 (2220 bytes) // // 3 xrefs: // > @ 0x96ee8 // > ProfilePage::loadPageFromUserInfo @ 0x8fb9f0 // > @ 0x122d268 // // 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 ProfilePage::onInfo(ProfilePage *a1, cocos2d::CCObject *a2) { GameLevelManager *v3; // x0 const char *v4; // x27 __int64 v5; // x26 __int64 v6; // x25 __int64 v7; // x23 __int64 v8; // x22 cocos2d::CCString *v9; // x0 char *CString; // x0 void *v11; // x0 void *v12; // x0 void *v13; // x0 void *v14; // x0 void *v15; // x0 char *v16; // x0 GameToolbox *m_creatorPoints; // x0 char *v18; // x25 cocos2d::CCString *v19; // x0 size_t v20; // x0 void *v21; // x0 void *v22; // x0 __int64 v23; // x26 GameLevelManager *v24; // x20 FLAlertLayer *v25; // x20 void *v26; // x0 char *v27; // x0 cocos2d::CCArray **p_m_smartTemplates; // x0 char *v29; // x20 double v30; // d0 cocos2d::CCString *v31; // x0 size_t v32; // x0 void *v33; // x0 unsigned int *v34; // x1 int v35; // w2 void *v36; // x0 unsigned int *v37; // x1 int v38; // w2 unsigned int *v39; // x1 int v40; // w2 unsigned int *v41; // x1 int v42; // w2 unsigned int *v43; // x1 int v44; // w2 unsigned int *p_m_testedNetwork; // x1 int v46; // w2 unsigned int *v47; // x1 int v48; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *v51; // x1 int v52; // w2 unsigned int *v53; // x1 int v54; // w2 unsigned int *v55; // x1 int v56; // w2 unsigned int *v57; // x1 int v58; // w2 unsigned int *v59; // x1 int v60; // w2 const char *v61; // [xsp+68h] [xbp+68h] const char *v62; // [xsp+68h] [xbp+68h] GameLevelManager *v63; // [xsp+80h] [xbp+80h] BYREF __int64 v64; // [xsp+88h] [xbp+88h] BYREF char *v65; // [xsp+90h] [xbp+90h] BYREF const char *v66; // [xsp+98h] [xbp+98h] BYREF __int64 v67; // [xsp+A0h] [xbp+A0h] BYREF __int64 v68; // [xsp+A8h] [xbp+A8h] BYREF __int64 v69; // [xsp+B0h] [xbp+B0h] BYREF __int64 v70; // [xsp+B8h] [xbp+B8h] BYREF __int64 v71; // [xsp+C0h] [xbp+C0h] BYREF __int64 v72; // [xsp+C8h] [xbp+C8h] BYREF __int64 v73; // [xsp+D0h] [xbp+D0h] BYREF __int64 v74; // [xsp+D8h] [xbp+D8h] BYREF __int64 v75; // [xsp+E0h] [xbp+E0h] BYREF if ( !a1->m_score ) return; v3 = GameLevelManager::sharedState(); GameLevelManager::tryGetUsername(&v63, v3, a1->m_score->m_accountID); if ( !v63[-1].m_smartTemplates ) { sub_D18D28(&v64); sub_D163D4(&v63, &v64); v36 = (void *)(v64 - 24); if ( (__int64 *)(v64 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v59 = (unsigned int *)(v64 - 8); do v60 = __ldaxr(v59); while ( __stlxr(v60 - 1, v59) ); } else { v60 = *(_DWORD *)(v64 - 8); *(_DWORD *)(v64 - 8) = v60 - 1; } if ( v60 <= 0 ) operator delete(v36); } if ( !v63[-1].m_smartTemplates ) sub_D1798C(&v63, &byte_F10E40, 1); } GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_stars, (__int64 *)&v66); v4 = v66; GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_moons, &v67); v5 = v67; GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_diamonds, &v68); v6 = v68; GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_secretCoins, &v69); v7 = v69; GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_userCoins, &v70); v8 = v70; GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_demons, &v71); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Stars: %s\n" "Moons: %s\n" "Diamonds: %s\n" "Secret Coins: %s\n" "User Coins: %s\n" "Demons: %s", v4, v5, v6, v7, v8, v71); CString = (char *)cocos2d::CCString::getCString(v9); sub_D153B8((int)&v65, CString); v11 = (void *)(v71 - 24); if ( (__int64 *)(v71 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)(v71 - 8); do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = *(_DWORD *)(v71 - 8); *(_DWORD *)(v71 - 8) = v52 - 1; } if ( v52 <= 0 ) operator delete(v11); } v12 = (void *)(v70 - 24); if ( (__int64 *)(v70 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(v70 - 8); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *(_DWORD *)(v70 - 8); *(_DWORD *)(v70 - 8) = v54 - 1; } if ( v54 <= 0 ) operator delete(v12); } v13 = (void *)(v69 - 24); if ( (__int64 *)(v69 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(v69 - 8); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *(_DWORD *)(v69 - 8); *(_DWORD *)(v69 - 8) = v56 - 1; } if ( v56 <= 0 ) operator delete(v13); } v14 = (void *)(v68 - 24); if ( (__int64 *)(v68 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)(v68 - 8); do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = *(_DWORD *)(v68 - 8); *(_DWORD *)(v68 - 8) = v48 - 1; } if ( v48 <= 0 ) operator delete(v14); } v15 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(v67 - 8); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v50 - 1; } if ( v50 <= 0 ) operator delete(v15); } v16 = (char *)(v66 - 24); if ( v66 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)(v66 - 8); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *((_DWORD *)v66 - 2); *((_DWORD *)v66 - 2) = v42 - 1; } if ( v42 <= 0 ) operator delete(v16); } m_creatorPoints = (GameToolbox *)(unsigned int)a1->m_score->m_creatorPoints; if ( (int)m_creatorPoints > 0 ) { v18 = v65; GameToolbox::pointsToString(m_creatorPoints, &v72); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s\nCreator Points: %s", v18, v72); v61 = cocos2d::CCString::getCString(v19); v20 = strlen(v61); sub_D1798C(&v65, v61, v20); v21 = (void *)(v72 - 24); if ( (__int64 *)(v72 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v39 = (unsigned int *)(v72 - 8); do v40 = __ldaxr(v39); while ( __stlxr(v40 - 1, v39) ); } else { v40 = *(_DWORD *)(v72 - 8); *(_DWORD *)(v72 - 8) = v40 - 1; } if ( v40 <= 0 ) operator delete(v21); } } sub_D18D28(&v73); v22 = (void *)(v73 - 24); v23 = *(_QWORD *)(v73 - 24); if ( (__int64 *)(v73 - 24) == &qword_124B6B0 ) goto LABEL_12; if ( &pthread_create ) { v37 = (unsigned int *)(v73 - 8); do v38 = __ldaxr(v37); while ( __stlxr(v38 - 1, v37) ); } else { v38 = *(_DWORD *)(v73 - 8); *(_DWORD *)(v73 - 8) = v38 - 1; } if ( v38 > 0 ) { LABEL_12: if ( v23 ) { LABEL_17: v29 = v65; *(_QWORD *)&v30 = sub_D18D28(&v74).n128_u64[0]; v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s\nDiscord: @%s", v29, v74, v30); v62 = cocos2d::CCString::getCString(v31); v32 = strlen(v62); sub_D1798C(&v65, v62, v32); v33 = (void *)(v74 - 24); if ( (__int64 *)(v74 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v34 = (unsigned int *)(v74 - 8); do v35 = __ldaxr(v34); while ( __stlxr(v35 - 1, v34) ); } else { v35 = *(_DWORD *)(v74 - 8); *(_DWORD *)(v74 - 8) = v35 - 1; } if ( v35 <= 0 ) operator delete(v33); } } } else { operator delete(v22); if ( v23 ) goto LABEL_17; } v24 = v63; sub_D153B8((int)&v75, v65); v25 = FLAlertLayer::create(0, (__int64)v24, (__int64)&v75); v26 = (void *)(v75 - 24); if ( (__int64 *)(v75 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)(v75 - 8); do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = *(_DWORD *)(v75 - 8); *(_DWORD *)(v75 - 8) = v58 - 1; } if ( v58 <= 0 ) operator delete(v26); } v25->show(v25); v27 = v65 - 24; if ( v65 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)(v65 - 8); do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = *((_DWORD *)v65 - 2); *((_DWORD *)v65 - 2) = v44 - 1; } if ( v44 <= 0 ) operator delete(v27); } p_m_smartTemplates = &v63[-1].m_smartTemplates; if ( &v63[-1].m_smartTemplates != (cocos2d::CCArray **)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_testedNetwork = (unsigned int *)&v63[-1].m_testedNetwork; do v46 = __ldaxr(p_m_testedNetwork); while ( __stlxr(v46 - 1, p_m_testedNetwork) ); } else { v46 = *(_DWORD *)&v63[-1].m_testedNetwork; *(_DWORD *)&v63[-1].m_testedNetwork = v46 - 1; } if ( v46 <= 0 ) operator delete(p_m_smartTemplates); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source