// // CreateParticlePopup::onPage from 0x1405c7a50 to 0x1405c7c83 (563 bytes) // // 3 xrefs: // > CreateParticlePopup::init @ 0x1405c5ecc // > CreateParticlePopup::init @ 0x1405c27ce // > @ 0x14092e304 // // 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:34:51 +0000 // unsigned int __fastcall CreateParticlePopup::onPage(__int64 a1, __int64 a2) { int *v2; // r14 signed int i; // ebp int v5; // ebx struct cocos2d::CCObject *v6; // rax __int64 v7; // rdx int v8; // edi struct cocos2d::CCObject *v9; // rax const char *v10; // rbx __int64 v11; // rax struct cocos2d::CCObject *v12; // rax __int64 v13; // rdx __int64 v14; // rbx __int64 j; // rdi __int64 v16; // rbx struct cocos2d::CCObject *v17; // rax __int64 v18; // rdx __int64 v19; // rcx __int64 k; // rbx cocos2d::CCArray *v21; // rdi unsigned int v22; // ebx unsigned int result; // eax struct cocos2d::CCObject *v24; // rax __int64 v25; // rdx __int64 v26; // rdx v2 = (int *)(a1 + 996); if ( a2 ) *v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); for ( i = 1; i <= 4; ++i ) { v5 = *v2; v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 760), i - 1); LOBYTE(v7) = v5 == i; (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v6 + 336LL))(v6, v7); v8 = *v2; v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 768), i - 1); v10 = "GJ_button_04.png"; if ( v8 == i ) v10 = "GJ_button_01.png"; v11 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 952LL))(v9); ButtonSprite::updateBGImage(v11, v10); v12 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 744), i); if ( v12 ) { v14 = *((_QWORD *)v12 + 7); if ( v14 ) { for ( j = *(_QWORD *)(v14 + 288); ; j = *(_QWORD *)(j + 288) ) { v16 = *(_QWORD *)(v14 + 264); LOBYTE(v13) = *v2 == i; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 920LL))(v16, v13); if ( *v2 != i ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 1032LL))(v16, 0); v14 = j; if ( !j ) break; } } } v17 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 752), i); if ( v17 ) { v19 = *((_QWORD *)v17 + 7); if ( v19 ) { for ( k = *(_QWORD *)(v19 + 288); ; k = *(_QWORD *)(k + 288) ) { LOBYTE(v18) = *v2 == i; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v19 + 264) + 920LL))(*(_QWORD *)(v19 + 264), v18); v19 = k; if ( !k ) break; } } } v21 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 784), i - 1); v22 = 0; result = cocos2d::CCArray::count(v21); if ( result ) { do { v24 = cocos2d::CCArray::objectAtIndex(v21, v22); LOBYTE(v25) = *v2 == i; (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v24 + 336LL))(v24, v25); ++v22; result = cocos2d::CCArray::count(v21); } while ( v22 < result ); } } if ( *(_DWORD *)(a1 + 996) == 1 ) { LOBYTE(v26) = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1552LL))(*(_QWORD *)(a1 + 712)) == 0; result = CreateParticlePopup::toggleGravityMode(a1, v26); } if ( *(_DWORD *)(a1 + 996) == 4 ) return CreateParticlePopup::applyTexturePage(a1); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source