// // ProfilePage::setupAccountButtons from 0xa53c1c to 0xa54238 (1564 bytes) // // 3 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0xa59f64 // > ProfilePage::loadPageFromUserInfo @ 0xa5af20 // > @ 0x8dd78 // // This function is hookable on this platform (idp: arm, 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 13:00:06 +0000 // __int64 __fastcall ProfilePage::setupAccountButtons(ProfilePage *this) { GJAccountManager *v2; // x0 __int64 v4; // x0 cocos2d::CCDirector *v5; // x0 cocos2d::CCDirector *v6; // x0 cocos2d::CCArray *v7; // x0 int v8; // w21 float v9; // s8 cocos2d::CCArray *v10; // x23 const char *v11; // x1 __int64 v12; // x22 GameManager *v13; // x0 __int64 v14; // x1 cocos2d::CCObject *v15; // x21 __int64 v16; // x21 __int64 v17; // x0 __int64 (__fastcall *v18)(__int64); // x1 void (__fastcall *v19)(__int64, float); // x22 float v20; // s9 __int64 v21; // x0 cocos2d::CCObject *v22; // x22 GameManager *v23; // x0 GameManager *v24; // x0 GameManager *v25; // x0 const char *v26; // x1 GameManager *v27; // x0 const char *v28; // x1 cocos2d::CCNode *v29; // x24 cocos2d::CCNode *v30; // x22 __int64 v31; // x21 cocos2d::CCObject *v32; // x21 GameManager *v33; // x0 int v34; // w21 __int64 v35; // x1 unsigned __int64 v36; // x0 __int64 v37; // x21 cocos2d::CCObject *v38; // x21 __int64 v39; // x0 GameManager *v40; // x0 char v41; // w0 int v42; // w0 char *v43; // x0 __int64 v44; // x21 cocos2d::CCObject *v45; // x21 __int64 v46; // x22 void (__fastcall *v47)(__int64, float); // x24 long double v48; // q0 float v49; // s9 __int64 v50; // x0 ProfilePage *v51; // x2 __int64 v52; // x0 __int64 (__fastcall *v53)(__int64, cocos2d::CCObject *); // x3 cocos2d::CCObject *v54; // x21 __int64 v55; // x22 void (__fastcall *v56)(__int64, float); // x24 long double v57; // q0 float v58; // s9 __int64 v59; // x0 __int64 v60; // [xsp+78h] [xbp+78h] BYREF __int64 v61; // [xsp+80h] [xbp+80h] BYREF __int64 v62; // [xsp+88h] [xbp+88h] BYREF _BYTE v63[8]; // [xsp+90h] [xbp+90h] BYREF v2 = (GJAccountManager *)*((unsigned __int8 *)this + 740); if ( !(_DWORD)v2 ) { v4 = GJAccountManager::sharedState(v2); v5 = (cocos2d::CCDirector *)(unsigned int)(*(_DWORD *)(v4 + 352) - *(_DWORD *)(v4 + 356)); if ( *((_DWORD *)this + 184) != (_DWORD)v5 ) { v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(&v60, v6); v7 = *((cocos2d::CCArray **)this + 91); v8 = *((_DWORD *)v7 + 172); v9 = (float)(*((float *)&v60 + 1) * 0.5) + -123.0; v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_blocked_001.png", v11); v13 = (GameManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.75); if ( v8 == 2 ) { v14 = *((_QWORD *)this + 91); if ( !*(_BYTE *)(v14 + 722) ) { v31 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"accountBtn_unblock_001.png", (const char *)v14); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.75); v32 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v31, 0, (__int64)this, (__int64)ProfilePage::onUnblockUser, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v32, 1.2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v32); cocos2d::CCArray::addObject(v10, v32); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 104), v32); v14 = *((_QWORD *)this + 91); if ( !*(_BYTE *)(v14 + 722) ) goto LABEL_8; } } else { v33 = (GameManager *)GameManager::sharedState(v13); v34 = (unsigned __int8)GameManager::messagesRestricted(v33); v35 = *((_QWORD *)this + 91); v36 = *(unsigned int *)(v35 + 436); if ( (_DWORD)v36 != 2 ) { if ( (_DWORD)v36 != 1 || (v36 = *(unsigned int *)(v35 + 688), (_DWORD)v36 == 1) || (v39 = GameManager::sharedState((GameManager *)v36), v35 = *(unsigned int *)(v39 + 1032), v36 = (unsigned int)(v35 - *(_DWORD *)(v39 + 1036) - 1), (unsigned int)v36 <= 1) ) { if ( !v34 ) { v37 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"accountBtn_messages_001.png", (const char *)v35); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v37 + 160LL))(v37, 0.75); v38 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v37, 0, (__int64)this, (__int64)ProfilePage::onSendMessage, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v38, 1.2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v38); cocos2d::CCArray::addObject(v10, v38); v36 = cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 104), v38); } } } v40 = (GameManager *)GameManager::sharedState((GameManager *)v36); v41 = GameManager::friendRequestsRestricted(v40); v14 = *((_QWORD *)this + 91); if ( (*(_DWORD *)(v14 + 440) != 1 || *(_DWORD *)(v14 + 688)) && !v41 ) { v42 = *(_DWORD *)(v14 + 688); switch ( v42 ) { case 3: v43 = "accountBtn_pendingRequest_001.png"; break; case 4: v43 = "accountBtn_pending_001.png"; break; case 1: v43 = "accountBtn_removeFriend_001.png"; break; default: v43 = "accountBtn_requests_001.png"; break; } v44 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v43, (const char *)v14); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 160LL))(v44, 0.75); v45 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v44, 0, (__int64)this, (__int64)ProfilePage::onFriend, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v45, 1.2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v45); cocos2d::CCArray::addObject(v10, v45); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 104), v45); v14 = *((_QWORD *)this + 91); } } if ( (unsigned int)(*(_DWORD *)(v14 + 680) - 1) > 1 ) { v15 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v12, 0, (__int64)this, (__int64)ProfilePage::onBlockUser, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v15, 1.2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v15); cocos2d::CCArray::addObject(v10, v15); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 104), v15); } LABEL_8: v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_reportBtn_001.png", (const char *)v14); v17 = v12; v18 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 328LL); v19 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL); v20 = *(float *)(v18(v17) + 4) * 0.75; v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 328LL))(v16); v19(v16, v20 / *(float *)(v21 + 4)); v22 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v16, 0, (__int64)this, (__int64)ProfilePage::onReportUser, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v22, 1.2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v22); cocos2d::CCArray::addObject(v10, v22); v23 = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 104), v22); v24 = (GameManager *)GameManager::sharedState(v23); v25 = (GameManager *)GameManager::modUIRank(v24); if ( (_DWORD)v25 == 2 ) { v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"modBadge_02_001.png", v26); v47 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v46 + 160LL); v48 = ((long double (__fastcall *)(__int64))*(_QWORD *)(*(_QWORD *)v16 + 168LL))(v16); v49 = *(float *)&v48 * *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 328LL))(v16) + 4); v50 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 328LL))(v46); v47(v46, v49 / *(float *)(v50 + 4)); v51 = this; v52 = v46; v53 = (__int64 (__fastcall *)(__int64, cocos2d::CCObject *))ProfilePage::onAdminPanel; } else { v27 = (GameManager *)GameManager::sharedState(v25); if ( (unsigned int)GameManager::modUIRank(v27) != 1 ) { LABEL_10: v29 = *((cocos2d::CCNode **)this + 73); v30 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63, *(float *)&v60 * 0.5, v9); cocos2d::CCNode::convertToWorldSpace(&v62, v29, (const cocos2d::CCPoint *)v63); cocos2d::CCNode::convertToNodeSpace(&v61, v30, (const cocos2d::CCPoint *)&v62); GameToolbox::alignItemsHorisontally((__int64)v10, (__int64)&v61, 0, 12.0); return _stack_chk_guard; } v55 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"modBadge_01_001.png", v28); v56 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 160LL); v57 = ((long double (__fastcall *)(__int64))*(_QWORD *)(*(_QWORD *)v16 + 168LL))(v16); v58 = *(float *)&v57 * *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 328LL))(v16) + 4); v59 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v55 + 328LL))(v55); v56(v55, v58 / *(float *)(v59 + 4)); v51 = this; v52 = v55; v53 = ProfilePage::onModNotes; } v54 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v52, 0, (__int64)v51, (__int64)v53, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v54, 1.5); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v54); cocos2d::CCArray::addObject(v10, v54); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 104), v54); goto LABEL_10; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source