// // ProfilePage::setupAccountButtons from 0x1405523c0 to 0x140552b57 (1943 bytes) // // 3 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x140552d93 // > ProfilePage::loadPageFromUserInfo @ 0x140554d7f // > @ 0x14092be14 // // This function is hookable on this platform (idp: pc, 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 11:34:09 +0000 // // Hidden C++ exception states: #wind=5 void __fastcall ProfilePage::setupAccountButtons(__int64 a1) { __int64 v2; // rax __int64 v3; // rcx __int64 v4; // rax float v5; // xmm8_4 int v6; // ebx __int64 v7; // rcx cocos2d::CCArray *v8; // rbp struct cocos2d::CCSprite *v9; // rdi __int64 v10; // rbx bool v11; // bl __int64 v12; // rcx int v13; // eax int v14; // ecx struct cocos2d::CCSprite *v15; // rax int v16; // ebx cocos2d::CCObject *v17; // rbx __int64 v18; // rbx bool v19; // dl __int64 v20; // rax const char *v21; // rdx struct cocos2d::CCSprite *v22; // rax int v23; // ebx cocos2d::CCObject *v24; // rbx struct cocos2d::CCSprite *v25; // rax int v26; // ebx cocos2d::CCObject *v27; // rbx int v28; // ecx cocos2d::CCObject *v29; // rbx struct cocos2d::CCSprite *v30; // r14 __int64 v31; // rbx cocos2d::CCObject *v32; // rbx __int64 v33; // rbx struct cocos2d::CCSprite *v34; // rdi __int64 v35; // rbx __int64 (__fastcall *v36)(); // r9 __int64 v37; // rbx __int64 v38; // rbx cocos2d::CCObject *v39; // rax struct cocos2d::CCObject *v40; // rbx __int64 v41; // rbx __int64 v42; // rdi __int64 v43; // rax __int64 v44; // rax __int64 v45; // rax float v46; // [rsp+80h] [rbp+8h] BYREF float v47; // [rsp+84h] [rbp+Ch] void *v48; // [rsp+88h] [rbp+10h] BYREF char v49; // [rsp+90h] [rbp+18h] BYREF char v50; // [rsp+98h] [rbp+20h] BYREF if ( !*(_BYTE *)(a1 + 740) ) { v2 = GJAccountManager::sharedState(); if ( *(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364) != *(_DWORD *)(a1 + 736) ) { v4 = cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(v4, &v46); v5 = (float)(v47 * 0.5) - 123.0; v6 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 760LL); v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); v9 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_blocked_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 160LL))(v9); if ( v6 == 2 ) { if ( !*(_BYTE *)(*(_QWORD *)(a1 + 728) + 794LL) ) { v25 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_unblock_001.png"); v26 = (int)v25; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v25 + 160LL))(v25); v27 = CCMenuItemSpriteExtra::create(v26, 0, a1, (__int64)ProfilePage::onUnblockUser); *((_DWORD *)v27 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v27); cocos2d::CCArray::addObject(v8, v27); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v27); } if ( !*(_BYTE *)(*(_QWORD *)(a1 + 728) + 794LL) ) { LABEL_43: v30 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_reportBtn_001.png"); v31 = *(_QWORD *)v30; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 320LL))(v9); (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v30 + 320LL))(v30); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v31 + 160))(v30); v32 = CCMenuItemSpriteExtra::create((int)v30, 0, a1, (__int64)ProfilePage::onReportUser); *((_DWORD *)v32 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v32); cocos2d::CCArray::addObject(v8, v32); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v32); v33 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v48 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v33 = qword_14090BFD0; } if ( GameManager::getGameVariable(v33, "0235") || *(_DWORD *)(v33 + 1064) - *(_DWORD *)(v33 + 1068) != 2 ) { v37 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v48 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v37 = qword_14090BFD0; } if ( GameManager::getGameVariable(v37, "0235") || *(_DWORD *)(v37 + 1064) - *(_DWORD *)(v37 + 1068) != 1 ) goto LABEL_54; v34 = cocos2d::CCSprite::createWithSpriteFrameName("modBadge_01_001.png"); v38 = *(_QWORD *)v34; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v30 + 320LL))(v30); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v30 + 168LL))(v30); (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v34 + 320LL))(v34); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v38 + 160))(v34); v36 = ProfilePage::onModNotes; } else { v34 = cocos2d::CCSprite::createWithSpriteFrameName("modBadge_02_001.png"); v35 = *(_QWORD *)v34; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v30 + 320LL))(v30); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v30 + 168LL))(v30); (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v34 + 320LL))(v34); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v35 + 160))(v34); v36 = ProfilePage::onAdminPanel; } v39 = CCMenuItemSpriteExtra::create((int)v34, 0, a1, (__int64)v36); *((_DWORD *)v39 + 93) = 1069547520; v40 = v39; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v39); cocos2d::CCArray::addObject(v8, v40); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v40); LABEL_54: v41 = *(_QWORD *)(a1 + 584); v42 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v46 * 0.5, v5); cocos2d::CCNode::convertToWorldSpace(v41, &v49, v43); cocos2d::CCNode::convertToNodeSpace(v42, &v50, v44); GameToolbox::alignItemsHorisontally((__int64)v8, 12.0, v45, 0); return; } } else { v10 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v48 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v10 = qword_14090BFD0; } v11 = !GameManager::getGameVariable(v10, "0218") && !GameManager::getGameVariable(v10, "0219") && !GameManager::getGameVariable(v10, "0243"); v12 = *(_QWORD *)(a1 + 728); v13 = *(_DWORD *)(v12 + 452); if ( v13 != 2 ) { if ( v13 != 1 || *(_DWORD *)(v12 + 760) == 1 ) goto LABEL_18; if ( !qword_14090BFD0 ) { v48 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v14 = *(_DWORD *)(qword_14090BFD0 + 1064) - *(_DWORD *)(qword_14090BFD0 + 1068); if ( v14 == 1 || v14 == 2 ) { LABEL_18: if ( v11 ) { v15 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); v16 = (int)v15; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 160LL))(v15); v17 = CCMenuItemSpriteExtra::create(v16, 0, a1, (__int64)ProfilePage::onSendMessage); *((_DWORD *)v17 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v17); cocos2d::CCArray::addObject(v8, v17); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v17); } } } if ( !qword_14090BFD0 ) { v48 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v18 = qword_14090BFD0; v19 = !GameManager::getGameVariable(qword_14090BFD0, "0218") && !GameManager::getGameVariable(v18, "0219") && !GameManager::getGameVariable(v18, "0243"); v20 = *(_QWORD *)(a1 + 728); if ( (*(_DWORD *)(v20 + 456) != 1 || *(_DWORD *)(v20 + 760)) && v19 ) { v21 = "accountBtn_requests_001.png"; switch ( *(_DWORD *)(v20 + 760) ) { case 1: v21 = "accountBtn_removeFriend_001.png"; break; case 3: v21 = "accountBtn_pendingRequest_001.png"; break; case 4: v21 = "accountBtn_pending_001.png"; break; } v22 = cocos2d::CCSprite::createWithSpriteFrameName(v21); v23 = (int)v22; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v22 + 160LL))(v22); v24 = CCMenuItemSpriteExtra::create(v23, 0, a1, (__int64)ProfilePage::onFriend); *((_DWORD *)v24 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v24); cocos2d::CCArray::addObject(v8, v24); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v24); } } v28 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 752LL); if ( v28 != 1 && v28 != 2 ) { v29 = CCMenuItemSpriteExtra::create((int)v9, 0, a1, (__int64)ProfilePage::onBlockUser); *((_DWORD *)v29 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v29); cocos2d::CCArray::addObject(v8, v29); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v29); } goto LABEL_43; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source