// // DailyLevelPage::createDailyNode from 0x1401711c0 to 0x1401714a6 (742 bytes) // // 6 xrefs: // > CreatorLayer::sceneWillResume @ 0x140139912 // > DailyLevelPage::init @ 0x14017067a // > DailyLevelPage::levelDownloadFinished @ 0x140170f37 // > DailyLevelPage::createNodeIfLoaded @ 0x140171188 // > DailyLevelPage::claimLevelReward @ 0x14017284a // > @ 0x140918344 // // 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:27:31 +0000 // // Hidden C++ exception states: #wind=3 char *__fastcall DailyLevelPage::createDailyNode(__int64 a1, __int64 a2, char a3, float a4, unsigned __int8 a5) { __int64 v9; // rax char *v10; // rsi int v11; // edi __int64 v12; // rbx __int64 v13; // rax _DWORD *v14; // rdx int v15; // ecx int v16; // ecx __int64 v17; // rcx __int64 v18; // rdx __int64 v19; // rdx const struct cocos2d::CCPoint *v20; // rax __int64 v21; // rbx __int64 v22; // rcx cocos2d::CCDirector *v23; // rax float v24; // xmm0_4 __int64 v25; // rax struct cocos2d::CCFiniteTimeAction *v26; // rdi __int64 v27; // rbx struct cocos2d::CCActionInterval *v28; // rax struct cocos2d::CCEaseElasticOut *v29; // rax struct cocos2d::CCAction *v30; // rax char *v31; // [rsp+20h] [rbp-38h] BYREF void *v32; // [rsp+28h] [rbp-30h] BYREF float v33; // [rsp+60h] [rbp+8h] BYREF float v34; // [rsp+64h] [rbp+Ch] if ( *(_QWORD *)(a1 + 720) ) return nullptr; v9 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v9, &v33); v10 = (char *)operator new(0x178u); v31 = v10; cocos2d::CCNode::CCNode((cocos2d::CCNode *)v10); *(_QWORD *)v10 = &DailyLevelNode::`vftable'; *((_QWORD *)v10 + 40) = &DailyLevelNode::`vftable'; v11 = 0; *((_QWORD *)v10 + 41) = 0; *((_QWORD *)v10 + 42) = 0; *((_QWORD *)v10 + 43) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v10 + 352)); *((_WORD *)v10 + 184) = 0; if ( (unsigned __int8)DailyLevelNode::init(v10, a2, a1, a5, v31) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10); } else { (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v10 + 8LL))(v10, 1); v10 = nullptr; } (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v10); v12 = *(_QWORD *)v10; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, v33 * 0.5, (float)(v34 * 0.5) - 8.0); (*(void (__fastcall **)(char *, __int64))(v12 + 184))(v10, v13); if ( a2 ) { v14 = *(_DWORD **)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v32 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v32); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v14 = *(_DWORD **)&qword_14090BFB0; } v15 = *(_DWORD *)(a1 + 732); if ( v15 ) { v16 = v15 - 1; if ( v16 ) { if ( v16 == 1 ) v11 = v14[245]; } else { v11 = v14[242]; } } else { v11 = v14[239]; } if ( v11 > *(_DWORD *)(a2 + 992) - *(_DWORD *)(a2 + 996) ) { v17 = *((_QWORD *)v10 + 45); if ( v17 ) { v18 = *((_QWORD *)v10 + 41); if ( !v18 || *(_DWORD *)(v18 + 936) - *(_DWORD *)(v18 + 940) < 100 ) { LOBYTE(v18) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 336LL))(v17, v18); LOBYTE(v19) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)v10 + 45) + 1040LL))(*((_QWORD *)v10 + 45), v19); } } } } if ( !a3 ) { (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v10 + 336LL))(v10, 0); v20 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v10 + 200LL))(v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, v20); v21 = *(_QWORD *)v10; v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v22); v24 = cocos2d::CCDirector::getScreenRight(v23) + 180.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, v24, *((float *)&v31 + 1)); (*(void (__fastcall **)(char *, __int64))(v21 + 184))(v10, v25); v26 = cocos2d::CCDelayTime::create(a4); v27 = cocos2d::CCShow::create(); v28 = cocos2d::CCMoveTo::create(0.5, (const struct cocos2d::CCPoint *)&v31); v29 = cocos2d::CCEaseElasticOut::create(v28, 0.60000002); v30 = cocos2d::CCSequence::create(v26, v27, v29, 0); cocos2d::CCNode::runAction((cocos2d::CCNode *)v10, v30); } *(_QWORD *)(a1 + 720) = v10; return v10; }