// // EndPortalObject::init from 0x507738 to 0x5079a4 (620 bytes) // // 1 xrefs: // > EndPortalObject::create @ 0x507de2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:51:25 +0000 // int __fastcall EndPortalObject::init(EndPortalObject *this) { int v2; // r9 cocos2d::CCDirector *v3; // r0 GameManager *v4; // r0 const char *v5; // r1 GameManager *v6; // r7 GameManager *v7; // r0 int (__fastcall *v8)(GameManager *, float *); // r8 unsigned __int8 *v9; // r2 int v10; // r10 int v11; // s17 int v12; // s19 GameManager *v13; // r0 void (__fastcall *v14)(GameManager *, float *); // r8 unsigned __int8 *v15; // r2 int v16; // r10 int v17; // s17 int v18; // s19 int v19; // r7 GameManager *v20; // r0 int v21; // r0 const char *v22; // r1 int v23; // r10 int v24; // r6 int v25; // s15 void (__fastcall *v27)(int, float *); // [sp+Ch] [bp-30h] _BYTE v28[4]; // [sp+14h] [bp-28h] BYREF float v29; // [sp+18h] [bp-24h] _DWORD v30[2]; // [sp+1Ch] [bp-20h] BYREF float v31; // [sp+24h] [bp-18h] BYREF float v32; // [sp+28h] [bp-14h] float v33; // [sp+2Ch] [bp-10h] float v34; // [sp+30h] [bp-Ch] v2 = GameObject::init(this, "block001_01_001.png"); if ( v2 ) { v3 = (cocos2d::CCDirector *)(*(int (__fastcall **)(EndPortalObject *, void *))(*(_DWORD *)this + 568))( this, &unk_D2BC38); cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v28); *((_BYTE *)this + 896) = 1; *((_BYTE *)this + 863) = 0; *((_DWORD *)this + 196) = 7; v4 = GameObject::createAndAddParticle((int)this, 7, (int)"endEffectPortal.plist", 4, 2); v6 = v4; if ( v4 ) { (*(void (__fastcall **)(GameManager *, _DWORD))(*(_DWORD *)v4 + 588))(v4, v29 * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, -15.0, 0.0); v7 = (GameManager *)cocos2d::CCPoint::operator=((char *)this + 680, &v31); v8 = *(int (__fastcall **)(GameManager *, float *))(*(_DWORD *)v6 + 680); v9 = *(unsigned __int8 **)(*(_DWORD *)(GameManager::sharedState(v7) + 404) + 2076); v10 = v9[2107]; v11 = v9[2106]; v12 = v9[2108]; v34 = 1.0; v32 = (float)v10 / 255.0; v31 = (float)v11 / 255.0; v33 = (float)v12 / 255.0; v13 = (GameManager *)v8(v6, &v31); v14 = *(void (__fastcall **)(GameManager *, float *))(*(_DWORD *)v6 + 696); v15 = *(unsigned __int8 **)(*(_DWORD *)(GameManager::sharedState(v13) + 404) + 2076); v16 = v15[2107]; v17 = v15[2106]; v18 = v15[2108]; v34 = 1.0; v32 = (float)v16 / 255.0; v31 = (float)v17 / 255.0; v33 = (float)v18 / 255.0; v14(v6, &v31); } v19 = 0; v20 = (GameManager *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gradientBar.png", v5); *((_DWORD *)this + 292) = v20; v21 = GameManager::sharedState(v20); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*(_DWORD *)(v21 + 404) + 1720) + 228))( *(_DWORD *)(*(_DWORD *)(v21 + 404) + 1720), *((_DWORD *)this + 292)); v30[0] = 770; v30[1] = 1; (*(void (__fastcall **)(_DWORD, int, int, _DWORD *))(**((_DWORD **)this + 292) + 540))( *((_DWORD *)this + 292), 770, 1, v30); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 292) + 72))( *((_DWORD *)this + 292), (float)(v29 * 1.5) / *(float *)(*((_DWORD *)this + 292) + 348)); v23 = lroundf(); while ( v19 < v23 ) { v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"square_02_001.png", v22); (*(void (__fastcall **)(EndPortalObject *, int))(*(_DWORD *)this + 228))(this, v24); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 180))(v24, -1028390912); v25 = v19++; v27 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v31, 0.0, (float)((float)(v23 / 2) * 30.0) - (float)((float)v25 * 30.0)); v27(v24, &v31); } *((_BYTE *)this + 760) = 1; } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source