// // FMODLevelVisualizer::init from 0x1403a9b80 to 0x1403aa04d (1229 bytes) // // 5 xrefs: // > FMODLevelVisualizer::create @ 0x1403a9b3b // > FMODLevelVisualizer::create @ 0x1403a9b42 // > FMODLevelVisualizer::create @ 0x1403a9b2c // > @ 0x140777918 // > @ 0x140923990 // // 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:31:20 +0000 // bool __fastcall FMODLevelVisualizer::init(cocos2d::CCNode *a1) { bool result; // al cocos2d::CCTextureCache *v3; // rax cocos2d::CCTexture2D *v4; // rbx struct cocos2d::CCSpriteBatchNode *v5; // r14 struct cocos2d::CCSprite *v6; // rbx int v7; // ebp float v8; // xmm7_4 unsigned int v9; // r15d unsigned int v10; // esi struct cocos2d::CCSprite *v11; // rdi __int64 v12; // rdx __int64 v13; // rbx __int64 v14; // rax struct cocos2d::CCSprite *v15; // rdi __int64 v16; // rbx __int64 v17; // rax _BYTE v18[16]; // [rsp+20h] [rbp-C8h] BYREF float v19; // [rsp+F8h] [rbp+10h] BYREF char v20; // [rsp+100h] [rbp+18h] BYREF float v21; // [rsp+104h] [rbp+1Ch] char v22; // [rsp+108h] [rbp+20h] BYREF result = cocos2d::CCNode::init(a1); if ( result ) { (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_QWORD *)a1 + 312LL))(a1, &unk_14090ACA8); v3 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(); v4 = cocos2d::CCTextureCache::addImage(v3, "PixelSheet_01.png", 0); cocos2d::CCTexture2D::setAliasTexParameters(v4); v5 = cocos2d::CCSpriteBatchNode::createWithTexture(v4); (*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a1 + 464LL))(a1, v5); (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, __int64))(*(_QWORD *)v5 + 64LL))(v5, 50); v6 = cocos2d::CCSprite::createWithSpriteFrameName("pixelart_base_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v5 + 456LL))( v5, v6, 0xFFFFFFFFLL); (**((void (__fastcall ***)(__int64, void *))v6 + 40))((__int64)v6 + 320, &unk_1407034A8); *((_DWORD *)a1 + 80) = *((_DWORD *)v6 + 108); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v6 + 120LL))(v6); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v6 + 136LL))(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, -3.0, -48.0); v7 = 0; v8 = v19; while ( 1 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, (const struct cocos2d::CCPoint *)&v22); v9 = 0; if ( v7 ) { if ( v7 == 1 ) { v8 = 0.60000002; LOWORD(v19) = -1; v9 = 200; } else { if ( v7 != 2 ) goto LABEL_10; v8 = 0.85000002; LOWORD(v19) = 255; v9 = 300; } } else { v8 = 0.0; LOWORD(v19) = -256; v9 = 100; } BYTE2(v19) = 0; LABEL_10: v10 = 0; v21 = v21 + (float)(v8 * 96.0); while ( 1 ) { v11 = cocos2d::CCSprite::createWithSpriteFrameName("pixelart_base_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, struct cocos2d::CCSprite *, _QWORD))(*(_QWORD *)v5 + 456LL))( v5, v11, v10); (**((void (__fastcall ***)(__int64, float *))v11 + 40))((__int64)v11 + 320, &v19); if ( !v10 ) { LOBYTE(v12) = 100; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v11 + 40) + 40LL))((__int64)v11 + 320, v12); } (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v11 + 184LL))(v11, &v20); v13 = *(_QWORD *)v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v13 + 288))(v11, v14); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 120LL))(v11); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 136LL))(v11); if ( v10 == 1 ) break; if ( (int)++v10 >= 2 ) goto LABEL_17; } (*(void (__fastcall **)(struct cocos2d::CCSprite *, _QWORD))(*(_QWORD *)v11 + 64LL))(v11, v9); LABEL_17: if ( ++v7 >= 3 ) { v15 = cocos2d::CCSprite::createWithSpriteFrameName("pixelart_base_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v5 + 456LL))( v5, v15, 2); (**((void (__fastcall ***)(__int64, void *))v15 + 40))((__int64)v15 + 320, &unk_1407034A8); (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v15 + 184LL))(v15, &v22); v16 = *(_QWORD *)v15; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v16 + 288))(v15, v17); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 120LL))(v15); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 136LL))(v15); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v15 + 64LL))(v15, 400); FMODLevelVisualizer::updateVisualizer(a1); return 1; } } } return result; }