// // PromoInterstitial::setup from 0x915e8c to 0x916110 (644 bytes) // // 2 xrefs: // > PromoInterstitial::init @ 0x916148 // > @ 0x488c8 // // This function is hookable on this platform (idp: arm, 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 12:57:19 +0000 // __int64 __fastcall PromoInterstitial::setup(PromoInterstitial *this) { __int64 v2; // x21 __int64 (__fastcall *v3)(__int64, __int64 *); // x22 cocos2d::CCDirector *v4; // x0 cocos2d::CCDirector *v5; // x0 const char *v6; // x1 char *v7; // x0 __int64 v8; // x27 __int64 v9; // x0 cocos2d::CCMenu *v10; // x23 const char *v11; // x1 __int64 v12; // x0 cocos2d::CCMenu *v13; // x26 __int64 v14; // x0 __int64 v15; // x0 void (__fastcall *v16)(cocos2d::CCMenu *, __int64 *); // x28 cocos2d::CCNode *v17; // x22 cocos2d::CCNode *v18; // x0 void (__fastcall *v19)(cocos2d::CCMenu *, __int64 *); // x19 cocos2d::CCNode *v21; // [xsp+78h] [xbp+78h] __int64 v22; // [xsp+80h] [xbp+80h] BYREF _BYTE v23[8]; // [xsp+88h] [xbp+88h] BYREF __int64 v24; // [xsp+90h] [xbp+90h] BYREF __int64 v25; // [xsp+98h] [xbp+98h] BYREF __int64 v26; // [xsp+A0h] [xbp+A0h] BYREF if ( *((_BYTE *)this + 657) ) std::string::assign((__int64 *)this + 85, "market://details?id=com.robtopx.geometryjump", 0x2Cu); else std::string::assign((__int64 *)this + 85, "market://details?id=com.robtopx.geometryjumplite", 0x30u); v2 = *((_QWORD *)this + 73); v3 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v2 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.0, 0.0); v4 = (cocos2d::CCDirector *)v3(v2, &v26); v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(&v22, v5); if ( *((_BYTE *)this + 657) ) v7 = "GJ_popup.png"; else v7 = "GJ_popupSZ.png"; v8 = cocos2d::CCSprite::create((cocos2d::CCSprite *)v7, v6); v9 = CCMenuItemSpriteExtra::create(v8, 0, (__int64)this, (__int64)PromoInterstitial::onClick, 0); *(_BYTE *)(v9 + 408) = 0; *(_BYTE *)(v9 + 409) = 1; v10 = (cocos2d::CCMenu *)v9; CCMenuItemSpriteExtra::setSizeMult(v9, 0.9); v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v11); v13 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v12, 0, (__int64)this, (__int64)PromoInterstitial::onClose, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v13, 2.0); v14 = cocos2d::CCMenu::create(v10, nullptr); *((_QWORD *)this + 69) = v14; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v14, 1); v15 = cocos2d::CCMenu::create(v13, nullptr); *((_QWORD *)this + 83) = v15; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v15, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, *(float *)&v22 * 0.5, *((float *)&v22 + 1) * 0.5); v16 = *(void (__fastcall **)(cocos2d::CCMenu *, __int64 *))(*(_QWORD *)v10 + 184LL); v21 = *((cocos2d::CCNode **)this + 69); cocos2d::CCNode::convertToWorldSpace(&v25, *((cocos2d::CCNode **)this + 73), (const cocos2d::CCPoint *)v23); cocos2d::CCNode::convertToNodeSpace(&v26, v21, (const cocos2d::CCPoint *)&v25); v16(v10, &v26); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v26, 10.0 - (float)(*(float *)(v8 + 432) * 0.5), (float)(*(float *)(v8 + 436) * 0.5) + -10.0); cocos2d::CCPoint::operator+(&v24, v23); v17 = *((cocos2d::CCNode **)this + 83); v18 = *((cocos2d::CCNode **)this + 73); v19 = *(void (__fastcall **)(cocos2d::CCMenu *, __int64 *))(*(_QWORD *)v13 + 184LL); cocos2d::CCNode::convertToWorldSpace(&v25, v18, (const cocos2d::CCPoint *)&v24); cocos2d::CCNode::convertToNodeSpace(&v26, v17, (const cocos2d::CCPoint *)&v25); v19(v13, &v26); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source