// // TutorialLayer::init from 0x14066f200 to 0x14066f75d (1373 bytes) // // 5 xrefs: // > TutorialLayer::create @ 0x14066f1b1 // > TutorialLayer::create @ 0x14066f1b8 // > TutorialLayer::create @ 0x14066f1a2 // > @ 0x140833d58 // > @ 0x140932258 // // 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:35:53 +0000 // // Hidden C++ exception states: #wind=2 bool __fastcall TutorialLayer::init(__int64 a1) { bool result; // al __int64 v3; // rdx __int64 v4; // rdx __int64 v5; // rcx __int64 v6; // rax __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax __int64 *v10; // rdi __int64 v11; // rdx void (__fastcall *v12)(__int64 *, __int64); // r8 __int64 v13; // rbx __int64 v14; // rax __int64 v15; // rbx __int64 v16; // rax struct cocos2d::CCLabelBMFont *v17; // rdi __int64 v18; // rbx __int64 v19; // rax __int64 v20; // rbx int v21; // eax cocos2d::CCObject *v22; // rax struct cocos2d::CCMenu *v23; // rdi __int64 v24; // rbx __int64 v25; // rax __int64 v26; // rax cocos2d::CCObject *v27; // rbx cocos2d::CCObject *v28; // rax __int64 v29; // rax cocos2d::CCObject *v30; // rbx cocos2d::CCObject *v31; // rax __int64 v32; // rsi __int64 v33; // rbx __int64 v34; // rdi __int64 v35; // rax __int64 v36; // rax __int64 v37; // rdi __int64 v38; // rbx __int64 v39; // rax _BYTE v40[32]; // [rsp+50h] [rbp-58h] BYREF void *v41; // [rsp+B8h] [rbp+10h] BYREF float v42; // [rsp+C0h] [rbp+18h] BYREF float v43; // [rsp+C4h] [rbp+1Ch] char v44; // [rsp+C8h] [rbp+20h] BYREF LODWORD(v41) = -1778384896; result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v41); if ( result ) { LOBYTE(v3) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v3); LOBYTE(v4) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v4); v6 = cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6, &v42); v7 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v7; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7); v8 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 664) = v8; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v8); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v40, 0.0, 0.0, 80.0, 80.0); v10 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v9); v11 = v10[40]; v12 = *(void (__fastcall **)(__int64 *, __int64))(v11 + 40); LOBYTE(v11) = -1; v12(v10 + 40, v11); v13 = *v10; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v41, 420.0, 260.0); (*(void (__fastcall **)(__int64 *, __int64))(v13 + 312))(v10, v14); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v10, 0xFFFFFFFFLL); v15 = *v10; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, v42 * 0.5, v43 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v15 + 184))(v10, v16); v17 = cocos2d::CCLabelBMFont::create("How To Play", &qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v17, 20); v18 = *(_QWORD *)v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, v42 * 0.5, (float)((float)(v43 * 0.5) + 130.0) - 25.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v18 + 184))(v17, v19); if ( *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v17 + 320LL))(v17) > 300.0 ) { v20 = *(_QWORD *)v17; (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v17 + 320LL))(v17); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(v20 + 160))(v17); } *(_DWORD *)(a1 + 640) = -1; v21 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v22 = CCMenuItemSpriteExtra::create(v21, 0, a1, (__int64)TutorialLayer::onClose); *((_DWORD *)v22 + 93) = 1070386381; v23 = cocos2d::CCMenu::create(v22, 0); *(_QWORD *)(a1 + 552) = v23; v24 = *(_QWORD *)v23; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v41, (float)((float)(v42 * 0.5) - 210.0) + 10.0, (float)((float)(v43 * 0.5) + 130.0) - 10.0); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v24 + 184))(v23, v25); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); v41 = operator new(0x2C8u); v26 = ButtonSprite::ButtonSprite((__int64)v41); v27 = (cocos2d::CCObject *)v26; if ( v26 ) { if ( ButtonSprite::init_1( v26, (__int64)"Next", 220, 0, 1058642330, 0, &qword_140704F78, (__int64)"GJ_button_01.png", 1109393408) ) { cocos2d::CCObject::autorelease(v27); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v27 + 8LL))(v27, 1); LODWORD(v27) = 0; } } v28 = CCMenuItemSpriteExtra::create((int)v27, 0, a1, (__int64)TutorialLayer::onNext); *(_QWORD *)(a1 + 680) = v28; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v28); v41 = operator new(0x2C8u); v29 = ButtonSprite::ButtonSprite((__int64)v41); v30 = (cocos2d::CCObject *)v29; if ( v29 ) { if ( ButtonSprite::init_1( v29, (__int64)"Exit", 220, 0, 1058642330, 0, &qword_140704F78, (__int64)"GJ_button_01.png", 1109393408) ) { cocos2d::CCObject::autorelease(v30); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v30 + 8LL))(v30, 1); LODWORD(v30) = 0; } } v31 = CCMenuItemSpriteExtra::create((int)v30, 0, a1, (__int64)TutorialLayer::onClose); *(_QWORD *)(a1 + 688) = v31; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v31); v32 = **(_QWORD **)(a1 + 680); v33 = *(_QWORD *)(a1 + 552); v34 = *(_QWORD *)(a1 + 680); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v41, (float)((float)(v42 * 0.5) + 210.0) - 52.0, (float)((float)(v43 * 0.5) - 130.0) + 50.0); cocos2d::CCNode::convertToNodeSpace(v33, &v44, v35); (*(void (__fastcall **)(__int64, __int64))(v32 + 184))(v34, v36); v37 = **(_QWORD **)(a1 + 688); v38 = *(_QWORD *)(a1 + 688); v39 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 680) + 200LL))(*(_QWORD *)(a1 + 680)); (*(void (__fastcall **)(__int64, __int64))(v37 + 184))(v38, v39); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 688) + 336LL))(*(_QWORD *)(a1 + 688), 0); *(_DWORD *)(a1 + 672) = 0; TutorialLayer::loadPage(a1, 1); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source