// // GJEffectManager::init from 0x1002c7f40 to 0x1002c81c0 (640 bytes) // // 2 xrefs: // > GJEffectManager::create @ 0x1002c7f05 // > @ 0x100b10b20 // // 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 12:28:09 +0000 // char __fastcall GJEffectManager::init(_QWORD *a1, __int64 a2) { char result; // al char v4; // r13 __int64 v5; // rax __int64 v6; // rdi __int64 v7; // rax __int64 v8; // rdi __int64 v9; // rax __int64 v10; // rdi __int64 v11; // rax __int64 v12; // rdi __int64 v13; // rax __int64 v14; // rax unsigned __int64 v15; // rdx __int64 v16; // rax unsigned __int64 v17; // rdx __int64 v18; // rax unsigned __int64 v19; // rdx unsigned __int64 v20; // r12 __int64 v21; // rax __int64 v22; // rdx __int64 v23; // rsi unsigned __int64 v24; // rdi __int64 v25; // rcx __int64 v26; // rdx __int64 v27; // rsi result = cocos2d::CCNode::init(); if ( result ) { v4 = result; v5 = cocos2d::CCDictionary::create(a1, a2); a1[41] = v5; v6 = v5; cocos2d::CCObject::retain(v5); v7 = cocos2d::CCDictionary::create(v6, a2); a1[42] = v7; v8 = v7; cocos2d::CCObject::retain(v7); v9 = sub_1007FE900(v8); a1[125] = v9; v10 = v9; cocos2d::CCObject::retain(v9); v11 = cocos2d::CCDictionary::create(v10, a2); a1[71] = v11; v12 = v11; cocos2d::CCObject::retain(v11); v13 = cocos2d::CCDictionary::create(v12, a2); a1[70] = v13; cocos2d::CCObject::retain(v13); v14 = a1[83]; v15 = (a1[84] - v14) >> 3; if ( v15 > 0x44D ) { if ( a1[84] - v14 != 8816 ) a1[84] = v14 + 8816; } else { sub_1002DABF0(a1 + 83, 1102 - v15); } v16 = a1[80]; v17 = (a1[81] - v16) >> 3; if ( v17 > 0x44D ) { if ( a1[81] - v16 != 8816 ) a1[81] = v16 + 8816; } else { sub_1002DAD50(a1 + 80, 1102 - v17); } sub_1000AB490(a1 + 126, 10000, 0); v18 = a1[72]; v19 = (a1[73] - v18) >> 3; if ( v19 > 0x270F ) { if ( a1[73] - v18 != 80000 ) a1[73] = v18 + 80000; } else { sub_1002DAEB0(a1 + 72, 10000 - v19); } v20 = 0; sub_1000AB490(a1 + 86, 10000, 0); v21 = a1[72]; v22 = a1[86]; v23 = a1[126]; do { *(_QWORD *)(v21 + 8 * v20) = 0; v24 = v20 >> 6; *(_QWORD *)(v22 + 8 * v24) &= __ROL8__(-2, v20); *(_QWORD *)(v23 + 8 * v24) |= 1LL << v20++; } while ( v20 != 10000 ); v25 = a1[83]; v26 = a1[80]; v27 = 6; result = v4; while ( 1 ) { *(_OWORD *)(v25 + 8 * v27 - 48) = 0; *(_OWORD *)(v25 + 8 * v27 - 32) = 0; *(_OWORD *)(v26 + 8 * v27 - 48) = 0; *(_OWORD *)(v26 + 8 * v27 - 32) = 0; if ( v27 == 1102 ) break; *(_OWORD *)(v25 + 8 * v27 - 16) = 0; *(_OWORD *)(v25 + 8 * v27) = 0; *(_OWORD *)(v26 + 8 * v27 - 16) = 0; *(_OWORD *)(v26 + 8 * v27) = 0; v27 += 8; } *(_QWORD *)(v25 + 8800) = 0; *(_QWORD *)(v26 + 8800) = 0; *(_QWORD *)(v25 + 8808) = 0; *(_QWORD *)(v26 + 8808) = 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source