// // MessagesProfilePage::init from 0x140336710 to 0x14033712f (2591 bytes) // // 2 xrefs: // > MessagesProfilePage::create @ 0x1403366bf // > @ 0x1406d5240 // // 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 // // Hidden C++ exception states: #wind=1 bool MessagesProfilePage::init(MessagesProfilePage *a1, bool a2) { bool result; // al __int64 v5; // rcx cocos2d::CCDirector *v6; // rax struct cocos2d::CCRect *v7; // rax struct cocos2d::extension::CCScale9Sprite *v8; // rdi __int64 v9; // rdx cocos2d::extension::CCScale9Sprite_vtbl *v10; // rbx const cocos2d::CCSize *v11; // rax float v12; // xmm0_4 cocos2d::extension::CCScale9Sprite_vtbl *v13; // rbx const cocos2d::CCPoint *v14; // rax const char *v15; // rcx struct cocos2d::CCLabelBMFont *v16; // rdi float v17; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v18; // rbx const cocos2d::CCPoint *v19; // rax cocos2d::CCLabelBMFont *v20; // rax float v21; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v22; // rbx __int64 v23; // rax float v24; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v25; // rbx double v26; // xmm0_8 const cocos2d::CCPoint *v27; // rax struct cocos2d::CCSprite *v28; // rax CCMenuItemSpriteExtra *v29; // rax cocos2d::CCMenu *v30; // rax cocos2d::CCMenu_vtbl *v31; // rbx const cocos2d::CCPoint *v32; // rax LoadingCircle *v33; // rax float v34; // xmm0_4 cocos2d::CCSprite *m_sprite; // rbx cocos2d::CCSprite_vtbl *v36; // rdi const cocos2d::CCPoint *v37; // rax struct cocos2d::CCSprite *v38; // rax CCMenuItemSpriteExtra *v39; // rdi float v40; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v41; // rbx struct cocos2d::CCPoint v42; // rax cocos2d::CCSprite *v43; // rdi ButtonSprite *v44; // rbx int v45; // r9d CCMenuItemSpriteExtra *v46; // rsi float v47; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v48; // rbx struct cocos2d::CCPoint v49; // rax struct cocos2d::CCSprite *v50; // rdi struct cocos2d::CCSprite *v51; // rbx CCMenuItemToggler *v52; // rax float v53; // xmm0_4 __int64 v54; // rax CCMenuItemToggler *m_toggleAllToggler; // rcx struct cocos2d::CCLabelBMFont *v56; // rbx float v57; // xmm0_4 cocos2d::CCLabelBMFont *v58; // rax float v59; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v60; // rbx const cocos2d::CCPoint *v61; // rax struct cocos2d::CCSprite *v62; // rbx CCMenuItemSpriteExtra *v63; // rax float v64; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v65; // rbx struct cocos2d::CCPoint v66; // rax cocos2d::CCSprite *v67; // rbx CCMenuItemSpriteExtra *v68; // rax float v69; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v70; // rbx struct cocos2d::CCPoint v71; // rax struct cocos2d::CCSprite *v72; // rax CCMenuItemSpriteExtra *v73; // rax float v74; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v75; // rbx struct cocos2d::CCPoint v76; // rax bool v77; // [rsp+38h] [rbp-69h] cocos2d::CCSize v78; // [rsp+58h] [rbp-49h] BYREF cocos2d::CCRect v79; // [rsp+60h] [rbp-41h] BYREF float v80; // [rsp+118h] [rbp+77h] char v81; // [rsp+120h] [rbp+7Fh] BYREF result = FLAlertLayer::init_1(a1, 150); if ( result ) { a1->m_noElasticity = 1; a1->m_sentMessages = a2; v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6); cocos2d::CCRect::CCRect(&v79, 0.0, 0.0, 80.0, 80.0); v8 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v7); LOBYTE(v9) = -1; v8->setOpacity(&v8->cocos2d::CCRGBAProtocol, v9); v10 = v8->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize(&v78, 440.0, 290.0); v10->setContentSize(v8, v11); v12 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v8, 0xFFFFFFFFLL); v13 = v8->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v12, v80 * 0.5); v13->setPosition_0(v8, v14); v15 = "Messages"; if ( a1->m_sentMessages ) v15 = "Sent Messages"; v16 = cocos2d::CCLabelBMFont::create(v15, (const char *)&qword_14052A4D8); v17 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v16, 20); v18 = v16->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v17, v80 * 0.5); v18->setPosition_0(v16, v19); cocos2d::CCLabelBMFont::limitLabelWidth(v16, 185.0, 0.80000001, 0.0); v20 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt"); a1->m_levelsLabel = v20; v21 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v20, 20); v22 = a1->m_levelsLabel->__vftable; cocos2d::CCPoint::CCPoint(v21, 1.0); v24 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v22->setAnchorPoint)(a1->m_levelsLabel, v23); v25 = a1->m_levelsLabel->__vftable; v26 = cocos2d::CCPoint::CCPoint(v24, (float)((float)(v80 * 0.5) + 220.0) - 10.0); v25->setPosition_0(a1->m_levelsLabel, v27); v28 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_backBtn_001.png"); v29 = CCMenuItemSpriteExtra::create(v28, nullptr, a1, (cocos2d::SEL_MenuHandler *)MessagesProfilePage::onClose); HIDWORD(v29->m_pfnSelector.adj) = 1070386381; v30 = cocos2d::CCMenu::create(v29, 0); a1->m_buttonMenu = v30; v31 = v30->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v26, (float)((float)(v80 * 0.5) - 220.0) + 10.0); v31->setPosition_0(a1->m_buttonMenu, v32); a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_buttonMenu, 10); v33 = LoadingCircle::create(); a1->m_loadingCircle = v33; v33->m_parentLayer = a1->m_mainLayer; a1->m_loadingCircle->m_fade = 0; cocos2d::CCObject::retain(a1->m_loadingCircle); LoadingCircle::show(a1->m_loadingCircle); v34 = ((float (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0); m_sprite = a1->m_loadingCircle->m_sprite; v36 = m_sprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v34, v80 * 0.5); v36->setPosition_0(m_sprite, v37); if ( !a1->m_sentMessages ) { v38 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messagessent_001.png"); v39 = CCMenuItemSpriteExtra::create( v38, nullptr, a1, (cocos2d::SEL_MenuHandler *)MessagesProfilePage::onSentMessages); v40 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v39); v41 = v39->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v40, (float)((float)(v80 * 0.5) + 220.0) - 10.0); v42 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v79.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v41->setPosition_0)(v39, v42); } v43 = cocos2d::CCSprite::createWithSpriteFrameName("edit_delBtn_001.png"); v79.origin = (cocos2d::CCPoint)operator new(0x2C0u); v44 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v79.origin); if ( v44 ) { if ( ButtonSprite::init(v44, v43, 34, v45, 36.0, 1.0, v77, "GJ_button_04.png", 0) ) { cocos2d::CCObject::autorelease(v44); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v44->~ButtonSprite)(v44, 1); v44 = nullptr; } } ((void (__fastcall *)(ButtonSprite *))v44->setScale_0)(v44); v46 = CCMenuItemSpriteExtra::create( v44, nullptr, a1, (cocos2d::SEL_MenuHandler *)MessagesProfilePage::onDeleteSelected); v47 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v46); cocos2d::CCPoint::CCPoint(v47, (float)((float)(v80 * 0.5) - 220.0) + 20.0); v48 = v46->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v49 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v79.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v48->setPosition_0)(v46, v49); v50 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v50->setScale_0)(v50); ((void (__fastcall *)(struct cocos2d::CCSprite *))v51->setScale_0)(v51); v52 = CCMenuItemToggler::create(v51, v50, a1, (cocos2d::SEL_MenuHandler *)MessagesProfilePage::onToggleAllObjects); a1->m_toggleAllToggler = v52; v53 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemToggler *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v52); cocos2d::CCPoint::CCPoint(v53, 46.0); v54 = (__int64)v46->getPosition_0(v46); cocos2d::CCPoint::operator+(v54, &v78); a1->m_toggleAllToggler->setPosition_0(a1->m_toggleAllToggler, (const cocos2d::CCPoint *)&v78); m_toggleAllToggler = a1->m_toggleAllToggler; *(_DWORD *)(*(_QWORD *)&m_toggleAllToggler->m_nScriptTapHandler + 372LL) = 1066192077; HIDWORD(m_toggleAllToggler->m_offButton->m_pfnSelector.adj) = 1066192077; CCMenuItemToggler::toggle(m_toggleAllToggler, (bool)m_toggleAllToggler->m_onButton); v56 = cocos2d::CCLabelBMFont::create("All", "goldFont.fnt"); v57 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v56, 10); cocos2d::CCPoint::CCPoint(v57, 80.0); cocos2d::CCPoint::operator+(&v81, &v78); v56->setPosition_0(v56, (const cocos2d::CCPoint *)&v78); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v56->setScale_0)(v56); v58 = cocos2d::CCLabelBMFont::create("Something went wrong...", "goldFont.fnt"); a1->m_errorLabel = v58; v59 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v58, 10); v60 = a1->m_errorLabel->__vftable; cocos2d::CCPoint::CCPoint(v59, v80 * 0.5); v60->setPosition_0(a1->m_errorLabel, v61); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_errorLabel->setScale_0)(a1->m_errorLabel); a1->m_errorLabel->setVisible(a1->m_errorLabel, 0); v62 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v62->setScale_0)(v62); v63 = CCMenuItemSpriteExtra::create(v62, nullptr, a1, (cocos2d::SEL_MenuHandler *)MessagesProfilePage::onPrevPage); a1->m_prevButton = v63; v64 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v63); v65 = a1->m_prevButton->__vftable; cocos2d::CCPoint::CCPoint(v64, (float)(v80 * 0.5) - 195.0); v66 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v78); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v65->setPosition_0)(a1->m_prevButton, v66); HIDWORD(a1->m_prevButton->m_pfnSelector.adj) = 0x40000000; v67 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v67, 1); ((void (__fastcall *)(cocos2d::CCSprite *))v67->setScale_0)(v67); v68 = CCMenuItemSpriteExtra::create(v67, nullptr, a1, (cocos2d::SEL_MenuHandler *)MessagesProfilePage::onNextPage); a1->m_nextButton = v68; v69 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v68); v70 = a1->m_nextButton->__vftable; cocos2d::CCPoint::CCPoint(v69, (float)(v80 * 0.5) + 195.0); v71 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v78); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v70->setPosition_0)(a1->m_nextButton, v71); HIDWORD(a1->m_nextButton->m_pfnSelector.adj) = 0x40000000; a1->m_prevButton->setVisible(a1->m_prevButton, 0); a1->m_nextButton->setVisible(a1->m_nextButton, 0); v72 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v73 = CCMenuItemSpriteExtra::create(v72, nullptr, a1, (cocos2d::SEL_MenuHandler *)MessagesProfilePage::onUpdate); a1->m_refreshButton = v73; HIDWORD(v73->m_pfnSelector.adj) = 1069547520; v74 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, a1->m_refreshButton); v75 = a1->m_refreshButton->__vftable; cocos2d::CCPoint::CCPoint(v74, (float)((float)(v80 * 0.5) + 220.0) - 10.0); v76 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v78); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v75->setPosition_0)( a1->m_refreshButton, v76); a1->m_refreshButton->setVisible(a1->m_refreshButton, 0); MessagesProfilePage::loadPage(a1, 0); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source