// // TutorialPopup::init from 0x1005d4380 to 0x1005d457d (509 bytes) // // 1 xrefs: // > TutorialPopup::create @ 0x1005d4312 // // 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 // bool __fastcall TutorialPopup::init(__int64 a1, const std::string *a2) { bool result; // al cocos2d::CCLayer *v3; // rax const char *data; // r14 cocos2d::CCSprite *v5; // r14 cocos2d::CCSprite *v6; // rax CCMenuItemSpriteExtra *v7; // rax int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d __int64 v12; // rax __int64 v13; // r15 unsigned __int64 *v14; // r12 unsigned __int64 v15; // [rsp+Ch] [rbp-44h] BYREF double v16; // [rsp+14h] [rbp-3Ch] BYREF float v17; // [rsp+1Ch] [rbp-34h] BYREF float v18; // [rsp+20h] [rbp-30h] bool v19; // [rsp+27h] [rbp-29h] double v20; // 0:xmm0_8.8 v17 = -1.0339758e-25; result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const cocos2d::ccColor4B *)&v17); if ( result ) { v19 = result; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 984LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1056LL))(a1, 1); std::string::operator=((std::string *)(a1 + 632), a2); cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v20 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v17); v3 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 576) = v3; (*(void (__fastcall **)(__int64, cocos2d::CCLayer *, double))(*(_QWORD *)a1 + 440LL))(a1, v3, v20); if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 ) data = a2->__r_.__value_.__l.__data_; else data = a2->__r_.__value_.__s.__data_; v5 = cocos2d::CCSprite::create_1(data); sub_10028CBE0((float *)&v16, v17 * 0.5, (float)(v18 * 0.5) + 30.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v5->setPosition)(v5, &v16); (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 576) + 448LL))( *(_QWORD *)(a1 + 576), v5, 1); v6 = cocos2d::CCSprite::createWithSpriteFrameName("NextBtn_001.png"); v7 = CCMenuItemSpriteExtra::create( v6, nullptr, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)TutorialPopup::closeTutorial); *(_QWORD *)(a1 + 680) = v7; v12 = sub_100792C50((_DWORD)v7, 0, v8, v9, v10, v11); *(_QWORD *)(a1 + 544) = v12; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 576) + 448LL))(*(_QWORD *)(a1 + 576), v12, 10); v13 = *(_QWORD *)(a1 + 544); v14 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v5->getPosition)(v5); sub_10028CBE0((float *)&v15, 0.0, -35.0 - (float)(0.5 * v5->m_obRect.size.height)); sub_10028CCE0(&v16, v14, &v15); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v13 + 184LL))(v13, &v16); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 680) + 160LL))(*(_QWORD *)(a1 + 680), 0.80000001); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 680) + 328LL))(*(_QWORD *)(a1 + 680), 0); *(_DWORD *)(a1 + 624) = -1; return v19; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source