// // TOSPopup::init from 0x14029df90 to 0x14029e5d1 (1601 bytes) // // 5 xrefs: // > MenuLayer::showTOS @ 0x140335570 // > MenuLayer::showTOS @ 0x140335577 // > MenuLayer::showTOS @ 0x140335561 // > @ 0x140577d90 // > @ 0x1406d1ec8 // // 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 TOSPopup::init(TOSPopup *a1) { bool result; // al __int64 v3; // rcx cocos2d::CCDirector *v4; // rax struct cocos2d::CCRect *v5; // rax struct cocos2d::extension::CCScale9Sprite *v6; // rdi cocos2d::extension::CCScale9Sprite_vtbl *v7; // rbx const cocos2d::CCSize *v8; // rax float v9; // xmm0_4 struct cocos2d::CCRect *v10; // rax struct cocos2d::extension::CCScale9Sprite *v11; // rdi __int64 v12; // rdx cocos2d::extension::CCScale9Sprite_vtbl *v13; // rbx const cocos2d::CCSize *v14; // rax float v15; // xmm0_4 cocos2d::extension::CCScale9Sprite_vtbl *v16; // rbx double v17; // xmm0_8 const cocos2d::CCPoint *v18; // rax struct cocos2d::CCLabelBMFont *v19; // rdi cocos2d::CCLabelBMFont_vtbl *v20; // rbx const cocos2d::CCPoint *v21; // rax const struct cocos2d::CCPoint *v22; // rax char *v23; // rdi float v24; // xmm0_4 __int64 v25; // rbx __int64 v26; // rax double v27; // xmm0_8 __int64 v28; // rcx cocos2d::CCMenu *v29; // rax __int64 v30; // rcx cocos2d::CCArray *v31; // rdi ButtonSprite *v32; // rax CCMenuItemSpriteExtra *v33; // rbx cocos2d::CCMenu_vtbl *v34; // rbx const cocos2d::CCPoint *v35; // rax struct cocos2d::CCSprite *v36; // rbx CCMenuItemSpriteExtra *v37; // rdi float v38; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v39; // rbx struct cocos2d::CCPoint v40; // rax struct cocos2d::CCSprite *v41; // rbx CCMenuItemSpriteExtra *v42; // rdi float v43; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v44; // rbx struct cocos2d::CCPoint v45; // rax cocos2d::CCRect v46; // [rsp+48h] [rbp-49h] BYREF __int128 v47; // [rsp+58h] [rbp-39h] BYREF __int64 v48; // [rsp+68h] [rbp-29h] __int64 v49; // [rsp+70h] [rbp-21h] float v50; // [rsp+100h] [rbp+6Fh] float v51; // [rsp+108h] [rbp+77h] BYREF __int128 *v52; // [rsp+110h] [rbp+7Fh] BYREF result = FLAlertLayer::init_1(a1, 150); if ( result ) { a1->m_noElasticity = 1; v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(v4); cocos2d::CCRect::CCRect(&v46, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v5); v7 = v6->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v52, 350.0, 200.0); v7->setContentSize(v6, v8); v9 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v6, 4294967294LL); cocos2d::CCPoint::CCPoint(v9, v50 * 0.5); v6->setPosition_0(v6, (const cocos2d::CCPoint *)&v51); cocos2d::CCRect::CCRect(&v46, 0.0, 0.0, 80.0, 80.0); v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v10); v11->setColor(&v11->cocos2d::CCRGBAProtocol, &stru_140529AD4); LOBYTE(v12) = 60; v11->setOpacity(&v11->cocos2d::CCRGBAProtocol, v12); v13 = v11->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v52, 320.0, 100.0); v13->setContentSize(v11, v14); v15 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v11, 0xFFFFFFFFLL); v16 = v11->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v17 = cocos2d::CCPoint::CCPoint(v15, v50 * 0.5); v16->setPosition_0(v11, v18); v19 = cocos2d::CCLabelBMFont::create("Notice", "goldFont.fnt"); v20 = v19->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v17, v51); v20->setPosition_0(v19, v21); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v19); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v19->setScale_0)(v19); v52 = &v47; v47 = 0; v48 = 0; v49 = 15; *(_QWORD *)&v47 = sub_14003AA10(0x70u); v48 = 111; v49 = 111; strcpy( (char *)v47, "By tapping \"OK\", you accept the\n" "Terms of Use and confirm that\n" "you have read the Privacy Policy."); cocos2d::CCPoint::CCPoint(2.1124002e-19, 0.5); v23 = TextArea::create((__int64)&v47, &qword_14052A4D8, 1.0, 1000.0, v22, 1109917696, 0); v24 = ((float (__fastcall *)(cocos2d::CCLayer *, char *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v23, 10); v25 = *(_QWORD *)v23; cocos2d::CCPoint::CCPoint(v24, v50 * 0.5); v27 = (*(double (__fastcall **)(char *, __int64))(v25 + 184))(v23, v26); (*(void (__fastcall **)(char *))(*(_QWORD *)v23 + 160LL))(v23); v29 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v28); a1->m_buttonMenu = v29; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v29, 10); v31 = (cocos2d::CCArray *)cocos2d::CCArray::create(v30); v32 = ButtonSprite::create_1("OK", 0, 0, 1.0, 0, "goldFont.fnt", "GJ_button_01.png", 0.0); v33 = CCMenuItemSpriteExtra::create(v32, nullptr, a1, (cocos2d::SEL_MenuHandler *)TOSPopup::onClose); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v33); cocos2d::CCArray::addObject(v31, v33); v34 = a1->m_buttonMenu->FLAlertLayer::__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v27, v50 * 0.5); v34->setPosition_0(a1->m_buttonMenu, v35); v36 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); v36->setOpacity(&v36->cocos2d::CCRGBAProtocol, 0); ((void (__fastcall *)(struct cocos2d::CCSprite *))v36->setScaleX)(v36); ((void (__fastcall *)(struct cocos2d::CCSprite *))v36->setScaleY)(v36); v37 = CCMenuItemSpriteExtra::create(v36, nullptr, a1, (cocos2d::SEL_MenuHandler *)SupportLayer::onTOS); v38 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v37); LOBYTE(v37->m_scaleMultiplier) = 0; v39 = v37->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v38, (float)(v50 * 0.5) - 80.0); v40 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v46.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v39->setPosition_0)(v37, v40); v41 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); v41->setOpacity(&v41->cocos2d::CCRGBAProtocol, 0); ((void (__fastcall *)(struct cocos2d::CCSprite *))v41->setScaleX)(v41); ((void (__fastcall *)(struct cocos2d::CCSprite *))v41->setScaleY)(v41); v42 = CCMenuItemSpriteExtra::create(v41, nullptr, a1, (cocos2d::SEL_MenuHandler *)SupportLayer::onPrivacy); v43 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v42); LOBYTE(v42->m_scaleMultiplier) = 0; v44 = v42->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v43, (float)(v50 * 0.5) + 80.0); v45 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v46.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v44->setPosition_0)(v42, v45); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source