// // FRequestProfilePage::init from 0x14020f420 to 0x1402101d6 (3510 bytes) // // 2 xrefs: // > ProfilePage::onRequests @ 0x140559a33 // > @ 0x14091b440 // // 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:28:19 +0000 // // Hidden C++ exception states: #wind=2 bool __fastcall FRequestProfilePage::init(__int64 a1, char a2) { bool result; // al __int64 v5; // rcx __int64 v6; // rax __int64 v7; // rax __int64 *v8; // rdi __int64 v9; // rdx void (__fastcall *v10)(__int64 *, __int64); // r8 __int64 v11; // rbx __int64 v12; // rax __int64 v13; // rbx __int64 v14; // rax const char *v15; // rcx struct cocos2d::CCLabelBMFont *v16; // rax __int64 v17; // rdi __int64 v18; // rbx __int64 v19; // rax float v20; // xmm10_4 __int64 v21; // rax _QWORD *v22; // r14 __int64 v23; // rbx __int64 v24; // rax __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rdx __int64 v28; // rcx char *InputNode; // rdi __int64 v30; // rbx __int64 v31; // rax __int64 v32; // rcx struct cocos2d::CCLabelBMFont *v33; // rax __int64 v34; // rdx __int64 v35; // rdi __int64 v36; // rbx __int64 v37; // rax int v38; // eax cocos2d::CCObject *v39; // rax struct cocos2d::CCMenu *v40; // rdi __int64 v41; // rbx __int64 v42; // rax __int64 *v43; // rsi __int64 v44; // rdi __int64 v45; // rbx __int64 v46; // rax __int64 v47; // rax cocos2d::CCLayerColor *v48; // rax __int64 *v49; // rdi __int64 v50; // rbx __int64 v51; // rax struct cocos2d::CCSprite *v52; // rbx float v53; // xmm9_4 cocos2d::CCObject *v54; // rsi float v55; // xmm7_4 float v56; // xmm8_4 float v57; // xmm8_4 __int64 v58; // rdi float v59; // xmm10_4 __int64 v60; // rbx __int64 v61; // rax __int64 v62; // rax struct cocos2d::CCSprite *v63; // rax cocos2d::CCObject *v64; // rsi __int64 v65; // rdi __int64 v66; // rbx __int64 v67; // rax __int64 v68; // rax __int64 v69; // rbx __int64 v70; // rdi int v71; // eax int v72; // r9d __int64 v73; // rax __int64 v74; // rdx _QWORD *v75; // rbx int v76; // r8d __int64 v77; // rax int v78; // r8d __int64 v79; // rdi _BYTE *v80; // rdx _QWORD *v81; // rbx __int64 v82; // rax _BYTE *v83; // rdx __int64 v84; // rcx __int64 v85; // rax struct cocos2d::CCLabelBMFont *v86; // rax __int64 v87; // rdi __int64 v88; // rbx __int64 v89; // rax __int64 v90; // rdx float v91; // xmm7_4 struct cocos2d::CCSprite *v92; // rax cocos2d::CCObject *v93; // rax __int64 v94; // rsi __int64 v95; // rbx __int64 v96; // rdi __int64 v97; // rax __int64 v98; // rax cocos2d::CCSprite *v99; // rbx cocos2d::CCObject *v100; // rax __int64 v101; // rsi __int64 v102; // rbx __int64 v103; // rdi __int64 v104; // rax __int64 v105; // rax __int64 v106; // rax int v107; // eax cocos2d::CCObject *v108; // rax __int64 v109; // rsi __int64 v110; // rbx __int64 v111; // rdi __int64 v112; // rax __int64 v113; // rax _BYTE v114[16]; // [rsp+38h] [rbp-D0h] BYREF char v115[16]; // [rsp+48h] [rbp-C0h] BYREF _BYTE v116[14]; // [rsp+58h] [rbp-B0h] BYREF __int16 v117; // [rsp+66h] [rbp-A2h] __int64 v118; // [rsp+68h] [rbp-A0h] _QWORD v119[25]; // [rsp+70h] [rbp-98h] BYREF _QWORD *v120; // [rsp+178h] [rbp+70h] BYREF float v121; // [rsp+180h] [rbp+78h] BYREF float v122; // [rsp+184h] [rbp+7Ch] result = FLAlertLayer::init_1(a1, 150); if ( result ) { *(_BYTE *)(a1 + 596) = 1; *(_BYTE *)(a1 + 704) = a2; v6 = cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6, &v121); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, 0.0, 0.0, 80.0, 80.0); v8 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v7); v9 = v8[40]; v10 = *(void (__fastcall **)(__int64 *, __int64))(v9 + 40); LOBYTE(v9) = -1; v10(v8 + 40, v9); v11 = *v8; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v120, 440.0, 290.0); (*(void (__fastcall **)(__int64 *, __int64))(v11 + 312))(v8, v12); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v8, 0xFFFFFFFFLL); v13 = *v8; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v121 * 0.5, v122 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v13 + 184))(v8, v14); v15 = "Friend Requests"; if ( *(_BYTE *)(a1 + 704) ) v15 = "Sent Requests"; v16 = cocos2d::CCLabelBMFont::create(v15, (const char *)&qword_140704F78); *(_QWORD *)(a1 + 784) = v16; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v16, 20); v17 = **(_QWORD **)(a1 + 784); v18 = *(_QWORD *)(a1 + 784); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v121 * 0.5, (float)((float)(v122 * 0.5) + 145.0) - 17.0); (*(void (__fastcall **)(__int64, __int64))(v17 + 184))(v18, v19); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 784), 185.0, 0.80000001, 0.0); v20 = (float)((float)(v122 * 0.5) + 145.0) - 45.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v115, 0.0, 0.0, 40.0, 40.0); v22 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v21); v23 = *v22; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v120, 200.0, 24.0); (*(void (__fastcall **)(_QWORD *, __int64))(v23 + 312))(v22, v24); LOWORD(v120) = 13405; BYTE2(v120) = 31; (*(void (__fastcall **)(_QWORD *, _QWORD **))v22[40])(v22 + 40, &v120); v25 = *v22; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v121 * 0.5, v20); (*(void (__fastcall **)(_QWORD *, __int64))(v25 + 184))(v22, v26); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v22, 9); InputNode = GameToolbox::createInputNode(v28, v27, (__int64)"Search", 20); *(_QWORD *)(a1 + 880) = InputNode; v30 = *(_QWORD *)InputNode; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v121 * 0.5, v20); (*(void (__fastcall **)(char *, __int64))(v30 + 184))(InputNode, v31); v32 = *(_QWORD *)(a1 + 880); *(_DWORD *)(v32 + 568) = 1058642330; CCTextInputNode::refreshLabel(v32); *(_QWORD *)(*(_QWORD *)(a1 + 880) + 600LL) = a1 + 544; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 880), 10); v33 = cocos2d::CCLabelBMFont::create(" ", "chatFont.fnt"); *(_QWORD *)(a1 + 776) = v33; (**((void (__fastcall ***)(__int64, void *))v33 + 46))((__int64)v33 + 368, &unk_1407033F0); LOBYTE(v34) = -106; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 776) + 368LL) + 40LL))( *(_QWORD *)(a1 + 776) + 368LL, v34); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 776), 20); v35 = **(_QWORD **)(a1 + 776); v36 = *(_QWORD *)(a1 + 776); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v121 * 0.5, (float)((float)(v122 * 0.5) - 145.0) + 14.0); (*(void (__fastcall **)(__int64, __int64))(v35 + 184))(v36, v37); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 776) + 160LL))(*(_QWORD *)(a1 + 776)); v38 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_backBtn_001.png"); v39 = CCMenuItemSpriteExtra::create(v38, 0, a1, (__int64)FRequestProfilePage::onClose); *((_DWORD *)v39 + 93) = 1070386381; v40 = cocos2d::CCMenu::create(v39, 0); *(_QWORD *)(a1 + 552) = v40; v41 = *(_QWORD *)v40; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v120, (float)((float)(v121 * 0.5) - 220.0) + 10.0, (float)((float)(v122 * 0.5) + 145.0) - 10.0); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v41 + 184))(v40, v42); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); v120 = &v119[1]; memset(&v119[1], 0, 32); sub_14003D230( &v119[1], "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); v118 = 15; v119[0] = 15; qmemcpy(v116, "Friend Request", sizeof(v116)); v117 = (unsigned __int8)aFriendRequests[14]; v43 = (__int64 *)InfoAlertButton::create(v116, &v119[1]); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v43); v44 = *v43; v45 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v120, (float)((float)(v121 * 0.5) + 220.0) - 17.0, (float)((float)(v122 * 0.5) + 145.0) - 17.0); cocos2d::CCNode::convertToNodeSpace(v45, v114, v46); (*(void (__fastcall **)(__int64 *, __int64))(v44 + 184))(v43, v47); v48 = LoadingCircle::create(); *(_QWORD *)(a1 + 808) = v48; *((_QWORD *)v48 + 69) = *(_QWORD *)(a1 + 584); *(_BYTE *)(*(_QWORD *)(a1 + 808) + 560LL) = 0; cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 808)); LoadingCircle::show(*(_QWORD *)(a1 + 808)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), 0); v49 = *(__int64 **)(*(_QWORD *)(a1 + 808) + 544LL); v50 = *v49; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v121 * 0.5, v122 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v50 + 184))(v49, v51); FRequestProfilePage::updateModeButtons(a1); v52 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_longBtn06_001.png"); v53 = 20.800001 / *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v52 + 320LL))(v52) + 4); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v52 + 160LL))(v52); v54 = CCMenuItemSpriteExtra::create((int)v52, 0, a1, (__int64)FRequestProfilePage::onGlobalSearch); *((_DWORD *)v54 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v54); v55 = v53 * *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v52 + 320LL))(v52); v56 = (float)(v121 * 0.5) - (float)(v55 + 4.0); (*(void (__fastcall **)(_QWORD *))(*v22 + 208LL))(v22); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 880) + 208LL))(*(_QWORD *)(a1 + 880)); v57 = (float)((float)(v56 + 100.0) + 4.0) + (float)(v55 * 0.5); v58 = *(_QWORD *)v54; v59 = v20 - 1.0; v60 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v57, v59); cocos2d::CCNode::convertToNodeSpace(v60, v114, v61); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v58 + 184))(v54, v62); v63 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_longBtn07_001.png"); LODWORD(v60) = (_DWORD)v63; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v63 + 160LL))(v63); v64 = CCMenuItemSpriteExtra::create(v60, 0, a1, (__int64)FRequestProfilePage::onClearSearch); *((_DWORD *)v64 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v64); v65 = *(_QWORD *)v64; v66 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, (float)(v57 + v55) + 4.0, v59); cocos2d::CCNode::convertToNodeSpace(v66, v114, v67); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v65 + 184))(v64, v68); v69 = *(_QWORD *)(a1 + 584); v70 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v120, (float)((float)(v121 * 0.5) - 220.0) + 21.0, (float)((float)((float)(v122 * 0.5) - 145.0) + 18.0) + 3.0); v73 = GJSelectionStrip::create(v70, v69, v71, v72, a1, (__int64)FRequestProfilePage::onToggleAllObjects); *(_QWORD *)(a1 + 904) = v73; GJSelectionStrip::addCountLabel(v73, v74, 10); v75 = *(_QWORD **)(a1 + 904); v77 = GJSelectionStrip::addButton( (_DWORD)v75, (unsigned int)"threadBtn_markRead_001.png", v76, (unsigned int)FRequestProfilePage::onMarkRead, 1068708659); v79 = v77; v120 = (_QWORD *)v77; v80 = (_BYTE *)v75[49]; if ( v80 == (_BYTE *)v75[50] ) { sub_1400699B0(v75 + 48, v80, &v120); } else { *(_QWORD *)v80 = v77; v75[49] += 8LL; } *(_QWORD *)(a1 + 912) = v79; v81 = *(_QWORD **)(a1 + 904); v82 = GJSelectionStrip::addButton( (_DWORD)v81, (unsigned int)"threadBtn_delete_001.png", v78, (unsigned int)FRequestProfilePage::onDeleteSelected, 1067030938); v120 = (_QWORD *)v82; v83 = (_BYTE *)v81[49]; if ( v83 == (_BYTE *)v81[50] ) { sub_1400699B0(v81 + 48, v83, &v120); } else { *(_QWORD *)v83 = v82; v81[49] += 8LL; } FRequestProfilePage::updateSelectUI(a1); v85 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v84); cocos2d::CCNotificationCenter::addObserver( v85, a1, FRequestProfilePage::onSelectionChanged, "RequestSelectionChangedNotification", 0); v86 = cocos2d::CCLabelBMFont::create((const char *)&xmmword_140726660, "chatFont.fnt"); *(_QWORD *)(a1 + 792) = v86; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v86, 10); v87 = **(_QWORD **)(a1 + 792); v88 = *(_QWORD *)(a1 + 792); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v121 * 0.5, v122 * 0.5); (*(void (__fastcall **)(__int64, __int64))(v87 + 184))(v88, v89); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 160LL))(*(_QWORD *)(a1 + 792)); (**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 792) + 368LL))( *(_QWORD *)(a1 + 792) + 368LL, &unk_1407033F0); LOBYTE(v90) = -106; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 792) + 368LL) + 40LL))( *(_QWORD *)(a1 + 792) + 368LL, v90); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 792) + 336LL))(*(_QWORD *)(a1 + 792), 0); v91 = (float)(v122 * 0.5) - 59.0; v92 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); LODWORD(v88) = (_DWORD)v92; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v92 + 160LL))(v92); v93 = CCMenuItemSpriteExtra::create(v88, 0, a1, (__int64)FRequestProfilePage::onPrevPage); *(_QWORD *)(a1 + 840) = v93; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v93); v94 = **(_QWORD **)(a1 + 840); v95 = *(_QWORD *)(a1 + 552); v96 = *(_QWORD *)(a1 + 840); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, (float)(v121 * 0.5) - 195.0, v91); cocos2d::CCNode::convertToNodeSpace(v95, v114, v97); (*(void (__fastcall **)(__int64, __int64))(v94 + 184))(v96, v98); *(_DWORD *)(*(_QWORD *)(a1 + 840) + 372LL) = 0x40000000; v99 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v99, 1); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v99 + 160LL))(v99); v100 = CCMenuItemSpriteExtra::create((int)v99, 0, a1, (__int64)FRequestProfilePage::onNextPage); *(_QWORD *)(a1 + 832) = v100; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v100); v101 = **(_QWORD **)(a1 + 832); v102 = *(_QWORD *)(a1 + 552); v103 = *(_QWORD *)(a1 + 832); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, (float)(v121 * 0.5) + 195.0, v91); cocos2d::CCNode::convertToNodeSpace(v102, v114, v104); (*(void (__fastcall **)(__int64, __int64))(v101 + 184))(v103, v105); *(_DWORD *)(*(_QWORD *)(a1 + 832) + 372LL) = 0x40000000; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 840) + 336LL))(*(_QWORD *)(a1 + 840), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 832) + 336LL))(*(_QWORD *)(a1 + 832), 0); v106 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v120 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v120); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v106 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v106 + 1504) = a1 + 688; v107 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v108 = CCMenuItemSpriteExtra::create(v107, 0, a1, (__int64)FRequestProfilePage::onUpdate); *(_QWORD *)(a1 + 848) = v108; *((_DWORD *)v108 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 848)); v109 = **(_QWORD **)(a1 + 848); v110 = *(_QWORD *)(a1 + 552); v111 = *(_QWORD *)(a1 + 848); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v120, (float)((float)(v121 * 0.5) + 220.0) - 10.0, (float)((float)((float)(v122 * 0.5) - 145.0) + 10.0) + 1.0); cocos2d::CCNode::convertToNodeSpace(v110, v114, v112); (*(void (__fastcall **)(__int64, __int64))(v109 + 184))(v111, v113); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 848) + 336LL))(*(_QWORD *)(a1 + 848), 0); FRequestProfilePage::loadPage(a1, 0); return 1; } return result; }