// // FRequestProfilePage::init from 0x5f21e8 to 0x5f2bda (2546 bytes) // // 1 xrefs: // > FRequestProfilePage::create @ 0x5f2d92 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:29 +0000 // GameManager *__fastcall FRequestProfilePage::init(FRequestProfilePage *this, bool a2) { GameManager *v4; // r0 int v5; // r6 void (__fastcall *v6)(int, _DWORD *); // r8 void (__fastcall *v7)(int, _DWORD *); // r8 const char *v8; // r2 char *v9; // r0 int v10; // r0 int v11; // r6 void (__fastcall *v12)(int, _DWORD *); // r8 float v13; // s20 int v14; // r9 void (__fastcall *v15)(int, _DWORD *); // r6 void (__fastcall *v16)(int, _DWORD *); // r3 void (__fastcall *v17)(int, _DWORD *); // r6 int InputNode; // r0 float v19; // r1 int v20; // r6 void (__fastcall *v21)(int, _DWORD *); // r8 const char *v22; // r2 int v23; // r0 int v24; // r6 void (__fastcall *v25)(int, _DWORD *); // r8 const char *v26; // r1 int v27; // r0 cocos2d::CCMenu *v28; // r8 int v29; // r0 float v30; // s14 float v31; // s13 int v32; // r8 void (__fastcall *v33)(int, _DWORD *); // r10 int v34; // r5 const cocos2d::CCPoint *v35; // r11 int (__fastcall *v36)(int, _DWORD *); // r10 LoadingCircle *v37; // r0 cocos2d::CCLayerColor *v38; // r0 int v39; // r3 int v40; // r11 void (__fastcall *v41)(int, _DWORD *); // r10 const char *v42; // r1 int v43; // r10 float v44; // s23 int v45; // r11 float v46; // s22 float v47; // s17 const cocos2d::CCPoint *v48; // r10 float v49; // s20 void (__fastcall *v50)(int, _DWORD *); // r9 float v51; // s17 const char *v52; // r1 int v53; // r9 int v54; // r9 const cocos2d::CCPoint *v55; // r11 void (__fastcall *v56)(int, _DWORD *); // r10 int v57; // r10 int v58; // r9 GJSelectionStrip *v59; // r0 int v60; // r0 int v61; // r0 cocos2d::CCNotificationCenter *updated; // r0 int v63; // r0 const char *v64; // r2 int v65; // r0 int v66; // r9 void (__fastcall *v67)(int, _DWORD *); // r10 float v68; // s17 const char *v69; // r1 int v70; // r10 int v71; // r0 const cocos2d::CCPoint *v72; // r11 void (__fastcall *v73)(int, _DWORD *); // r10 const char *v74; // r1 cocos2d::CCSprite *v75; // r8 int v76; // r0 int v77; // r11 const cocos2d::CCPoint *v78; // r10 void (__fastcall *v79)(int, _DWORD *); // r9 GameLevelManager *v80; // r0 const char *v81; // r1 int v82; // r0 int v83; // r0 int v84; // r7 const cocos2d::CCPoint *v85; // r10 void (__fastcall *v86)(int, _BYTE *); // r9 char *v88; // [sp+0h] [bp-B4h] GameManager *v89; // [sp+14h] [bp-A0h] int v90; // [sp+1Ch] [bp-98h] float v91; // [sp+24h] [bp-90h] BYREF float v92; // [sp+28h] [bp-8Ch] char v93[8]; // [sp+2Ch] [bp-88h] BYREF _BYTE v94[8]; // [sp+34h] [bp-80h] BYREF int (__fastcall *v95)(cocos2d::CCObject **, cocos2d::CCObject *); // [sp+3Ch] [bp-78h] int v96; // [sp+40h] [bp-74h] int (__fastcall *v97)(FRequestProfilePage *, cocos2d::CCObject *); // [sp+44h] [bp-70h] int v98; // [sp+48h] [bp-6Ch] _DWORD (__fastcall *v99)(FRequestProfilePage *__hidden, cocos2d::CCObject *); // [sp+4Ch] [bp-68h] int v100; // [sp+50h] [bp-64h] CCMenuItemToggler *(__fastcall *v101)(CCMenuItemToggler *, cocos2d::CCObject *); // [sp+54h] [bp-60h] int v102; // [sp+58h] [bp-5Ch] _DWORD (*v103)(FRequestProfilePage *__hidden, cocos2d::CCObject *); // [sp+5Ch] [bp-58h] int v104; // [sp+60h] [bp-54h] int (__fastcall *v105)(FRequestProfilePage *, cocos2d::CCObject *); // [sp+64h] [bp-50h] int v106; // [sp+68h] [bp-4Ch] int (__fastcall *v107)(GJSelectionStrip **, cocos2d::CCObject *); // [sp+6Ch] [bp-48h] int v108; // [sp+70h] [bp-44h] _DWORD (*v109)(FRequestProfilePage *__hidden, cocos2d::CCObject *); // [sp+74h] [bp-40h] int v110; // [sp+78h] [bp-3Ch] _DWORD v111[2]; // [sp+7Ch] [bp-38h] BYREF int v112[3]; // [sp+84h] [bp-30h] BYREF int v113[3]; // [sp+90h] [bp-24h] BYREF _DWORD v114[4]; // [sp+9Ch] [bp-18h] BYREF v4 = FLAlertLayer::init(this, 150); v89 = v4; if ( v4 ) { *((_BYTE *)this + 540) = a2; *((_BYTE *)this + 468) = 1; cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v91); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, 0.0, 0.0, 80.0, 80.0); v5 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v114); (*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 456))(v5, 255); v6 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v5 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v114, 440.0, 290.0); v6(v5, v114); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v5, -1); v7 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v5 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v91 * 0.5, v92 * 0.5); v7(v5, v114); if ( *((_BYTE *)this + 540) ) v9 = "Sent Requests"; else v9 = "Friend Requests"; v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v9, "bigFont.fnt", v8); *((_DWORD *)this + 143) = v10; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v10, 20); v11 = *((_DWORD *)this + 143); v12 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v91 * 0.5, (float)((float)(v92 * 0.5) + 145.0) - 17.0); v12(v11, v114); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 143), 185.0, 0.8, 0.0); v13 = (float)((float)(v92 * 0.5) + 145.0) - 45.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, 0.0, 0.0, 40.0, 40.0); v14 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v114); v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v114, 200.0, 24.0); v15(v14, v114); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 480); LOWORD(v114[0]) = 13405; BYTE2(v114[0]) = 31; v16(v14, v114); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v91 * 0.5, v13); v17(v14, v114); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v14, 9); InputNode = GameToolbox::createInputNode( (GameToolbox *)0x433C0000, 24.0, COERCE_FLOAT("Search"), (const char *)&dword_14, (int)v88); v19 = v91 * 0.5; *((_DWORD *)this + 155) = InputNode; v20 = InputNode; v21 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)InputNode + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v19, v13); v21(v20, v114); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 155), 0.6); *(_DWORD *)(*((_DWORD *)this + 155) + 420) = (char *)this + 440; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 155), 10); v23 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "chatFont.fnt", v22); *((_DWORD *)this + 142) = v23; (*(void (__fastcall **)(int, void *))(*(_DWORD *)v23 + 536))(v23, &unk_BEE5BC); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 142) + 512))(*((_DWORD *)this + 142), 150); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 142), 20); v24 = *((_DWORD *)this + 142); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v91 * 0.5, (float)((float)(v92 * 0.5) - 145.0) + 14.0); v25(v24, v114); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 142) + 80))(*((_DWORD *)this + 142), 1056964608); v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_backBtn_001.png", v26); v96 = 0; v95 = FRequestProfilePage::onClose; v28 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v27, 0, (int)this, (int)FRequestProfilePage::onClose, 0); CCMenuItemSpriteExtra::setSizeMult((int)v28, 1.6); v29 = cocos2d::CCMenu::create(v28, nullptr); v30 = (float)(v91 * 0.5) - 220.0; v31 = (float)(v92 * 0.5) + 145.0; *((_DWORD *)this + 111) = v29; v32 = v29; v33 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v29 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v30 + 10.0, v31 - 10.0); v33(v32, v114); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 111), 10); memset(v112, 0, sizeof(v112)); std::string::__init(v112, "Friend Requests", 0xFu); memset(v113, 0, sizeof(v113)); std::string::__init( v113, "Accept adds the player as a friend.\n" "Ignore moves a request to the Ignored tab. They are not told, and you can still accept it there.\n" "Requests you do not answer expire after 120 days.\n" "A request carries a message only if you allow it in Account Settings.\n" "Sent lists your own requests; Cancel takes one back.", 0x161u); v34 = InfoAlertButton::create((char *)v112, (int)v113, 1061997773); std::string::~string((int)v113); std::string::~string((int)v112); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v34); v35 = *((const cocos2d::CCPoint **)this + 111); v36 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v34 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v111, (float)((float)(v91 * 0.5) + 220.0) - 17.0, (float)((float)(v92 * 0.5) + 145.0) - 17.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v114, v35); v37 = (LoadingCircle *)v36(v34, v114); v38 = LoadingCircle::create(v37); v39 = *((_DWORD *)this + 115); *((_DWORD *)this + 146) = v38; *((_DWORD *)v38 + 111) = v39; *(_BYTE *)(*((_DWORD *)this + 146) + 448) = 0; cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 146)); LoadingCircle::show(*((cocos2d::CCNode ***)this + 146)); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 146) + 172))(*((_DWORD *)this + 146), 0); v40 = *(_DWORD *)(*((_DWORD *)this + 146) + 440); v41 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v40 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v91 * 0.5, v92 * 0.5); v41(v40, v114); FRequestProfilePage::updateModeButtons((cocos2d::CCPoint **)this); v43 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn06_001.png", v42); v44 = 20.8 / *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v43 + 164))(v43) + 4); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v43 + 80))(v43, LODWORD(v44)); v98 = 0; v97 = FRequestProfilePage::onGlobalSearch; v45 = CCMenuItemSpriteExtra::create(v43, 0, (int)this, (int)FRequestProfilePage::onGlobalSearch, 0); CCMenuItemSpriteExtra::setSizeMult(v45, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v45); v46 = v44 * *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v43 + 164))(v43); v47 = (float)(v91 * 0.5) - (float)(v46 + 4.0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v14 + 108))(v14, LODWORD(v47)); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 155) + 108))(*((_DWORD *)this + 155), LODWORD(v47)); v48 = *((const cocos2d::CCPoint **)this + 111); v49 = v13 - 1.0; v50 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v45 + 92); v51 = (float)((float)(v47 + 100.0) + 4.0) + (float)(v46 * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v111, v51, v49); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v114, v48); v50(v45, v114); v53 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn07_001.png", v52); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v53 + 80))(v53, LODWORD(v44)); v100 = 0; v99 = FRequestProfilePage::onClearSearch; v54 = CCMenuItemSpriteExtra::create(v53, 0, (int)this, (int)FRequestProfilePage::onClearSearch, 0); CCMenuItemSpriteExtra::setSizeMult(v54, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v54); v55 = *((const cocos2d::CCPoint **)this + 111); v56 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v54 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v111, (float)(v51 + v46) + 4.0, v49); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v114, v55); v56(v54, v114); v57 = *((_DWORD *)this + 111); v58 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v114, (float)((float)(v91 * 0.5) - 220.0) + 21.0, (float)((float)((float)(v92 * 0.5) - 145.0) + 18.0) + 3.0); v102 = 0; v101 = FRequestProfilePage::onToggleAllObjects; v59 = (GJSelectionStrip *)GJSelectionStrip::create( v57, v58, (const cocos2d::CCPoint *)v114, COERCE_INT(1.0), (int)this, (int)FRequestProfilePage::onToggleAllObjects, 0); *((_DWORD *)this + 158) = v59; GJSelectionStrip::addCountLabel(v59, 31.0, &byte_9[1]); v60 = *((_DWORD *)this + 158); v103 = FRequestProfilePage::onMarkRead; v104 = 0; *((_DWORD *)this + 159) = GJSelectionStrip::addAction( v60, (cocos2d::CCSprite *)"threadBtn_markRead_001.png", 63.0, (int)FRequestProfilePage::onMarkRead, 0, 1.4); v61 = *((_DWORD *)this + 158); v105 = FRequestProfilePage::onDeleteSelected; v106 = 0; GJSelectionStrip::addAction( v61, (cocos2d::CCSprite *)"threadBtn_delete_001.png", 99.0, (int)FRequestProfilePage::onDeleteSelected, 0, 1.2); updated = (cocos2d::CCNotificationCenter *)FRequestProfilePage::updateSelectUI((GJSelectionStrip **)this); v63 = cocos2d::CCNotificationCenter::sharedNotificationCenter(updated); v108 = 0; v107 = FRequestProfilePage::onSelectionChanged; cocos2d::CCNotificationCenter::addObserver( v63, (int)this, (int)FRequestProfilePage::onSelectionChanged, 0, "RequestSelectionChangedNotification", 0); v65 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Something went wrong...", "chatFont.fnt", v64); *((_DWORD *)this + 144) = v65; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v65, 10); v66 = *((_DWORD *)this + 144); v67 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v66 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v91 * 0.5, v92 * 0.5); v67(v66, v114); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 144) + 80))(*((_DWORD *)this + 144), 1058642330); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 144) + 536))(*((_DWORD *)this + 144), &unk_BEE5BC); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 144) + 512))(*((_DWORD *)this + 144), 150); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 144) + 172))(*((_DWORD *)this + 144), 0); v68 = (float)(v92 * 0.5) - 59.0; v70 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v69); (*(void (__fastcall **)(int, int))(*(_DWORD *)v70 + 80))(v70, 1061997773); v110 = 0; v109 = FRequestProfilePage::onPrevPage; v71 = CCMenuItemSpriteExtra::create(v70, 0, (int)this, (int)FRequestProfilePage::onPrevPage, 0); *((_DWORD *)this + 150) = v71; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v71); v72 = *((const cocos2d::CCPoint **)this + 111); v90 = *((_DWORD *)this + 150); v73 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v90 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v111, (float)(v91 * 0.5) - 195.0, v68); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v114, v72); v73(v90, v114); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 150), 2.0); v75 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v74); cocos2d::CCSprite::setFlipX(v75, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v75 + 80))(v75, 1061997773); v111[1] = 0; v111[0] = FRequestProfilePage::onNextPage; v76 = CCMenuItemSpriteExtra::create((int)v75, 0, (int)this, (int)FRequestProfilePage::onNextPage, 0); *((_DWORD *)this + 149) = v76; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v76); v77 = *((_DWORD *)this + 149); v78 = *((const cocos2d::CCPoint **)this + 111); v79 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v77 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, (float)(v91 * 0.5) + 195.0, v68); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v114, v78); v79(v77, v114); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 149), 2.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 172))(*((_DWORD *)this + 150), 0); v80 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 149) + 172))( *((_DWORD *)this + 149), 0); *(_DWORD *)(GameLevelManager::sharedState(v80) + 896) = (char *)this + 532; v82 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v81); v114[1] = 0; v114[0] = FRequestProfilePage::onUpdate; v83 = CCMenuItemSpriteExtra::create(v82, 0, (int)this, (int)FRequestProfilePage::onUpdate, 0); *((_DWORD *)this + 151) = v83; CCMenuItemSpriteExtra::setSizeMult(v83, 1.5); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), *((_DWORD *)this + 151)); v84 = *((_DWORD *)this + 151); v85 = *((const cocos2d::CCPoint **)this + 111); v86 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v84 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v93, (float)((float)(v91 * 0.5) + 220.0) - 10.0, (float)((float)((float)(v92 * 0.5) - 145.0) + 10.0) + 1.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v94, v85); v86(v84, v94); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 151) + 172))(*((_DWORD *)this + 151), 0); FRequestProfilePage::loadPage(this, nullptr); } return v89; }
GD Web Decomp Icon

GD Web Decomp

Raw Source