// // GJEffectManager::processInheritedColors from 0x1002c93a0 to 0x1002c970e (878 bytes) // // 3 xrefs: // > PlayLayer::loadDefaultColors @ 0x10007f480 // > GJEffectManager::processColors @ 0x1002c91f0 // > GJEffectManager::loadFromState @ 0x1002da6ee // // 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 // __int64 __fastcall GJEffectManager::processInheritedColors(_QWORD *a1) { _QWORD *v1; // r12 __int64 result; // rax __int64 v3; // rcx __int64 v4; // rdx __int64 v5; // rcx __int64 v6; // rdx __int64 v7; // rbx int v8; // r15d int v9; // eax unsigned int v10; // r13d _WORD *v11; // r14 __int64 v12; // rax __int64 v13; // rcx _BYTE *v14; // r12 int v15; // esi __int64 v16; // r15 char *ColorAction; // rax int v18; // ecx _BYTE *v19; // rax __int64 v20; // rax __int64 v21; // rbx __int64 v22; // r14 __int64 v23; // rsi __int64 v24; // rdi unsigned int *v25; // rax unsigned __int64 v26; // r14 unsigned __int64 v27; // r15 __int64 v28; // [rsp+8h] [rbp-48h] __int64 v29; // [rsp+18h] [rbp-38h] __int64 v30; // [rsp+18h] [rbp-38h] v1 = a1; result = cocos2d::CCDictionary::count(a1[70]); if ( (_DWORD)result ) { result = a1[71]; if ( result ) { v3 = *(_QWORD *)(result + 56); while ( v3 ) { v4 = *(_QWORD *)(v3 + 264); v3 = *(_QWORD *)(v3 + 288); if ( !*(_BYTE *)(v4 + 81) ) { *(_QWORD *)(v4 + 64) = 0; *(_WORD *)(v4 + 80) = 257; } } } v5 = a1[70]; if ( v5 ) { v6 = *(_QWORD *)(v5 + 56); if ( v6 ) { while ( 1 ) { v7 = *(_QWORD *)(v6 + 264); v6 = *(_QWORD *)(v6 + 288); *(_BYTE *)(v7 + 124) = 0; *(_BYTE *)(v7 + 126) = 0; v8 = *(_DWORD *)(v7 + 120); if ( v8 <= 0 ) v8 = 0; v9 = *(_DWORD *)(v7 + 92); if ( v8 >= 9999 ) v8 = 9999; v10 = 9999; if ( (unsigned int)v9 < 0x270F ) v10 = *(_DWORD *)(v7 + 92); if ( v9 <= 0 ) v10 = 0; v11 = *(_WORD **)(v7 + 152); v12 = v1[72]; if ( v11 ) break; v11 = *(_WORD **)(v12 + 8LL * v10); if ( v11 ) break; v30 = v6; v11 = operator new(0x58u); cocos2d::CCObject::CCObject(v11); *(_QWORD *)v11 = off_100B117D0; v11[40] = 1; *((_DWORD *)v11 + 14) = v10; *((_OWORD *)v11 + 4) = 0; cocos2d::CCObject::autorelease(v11); cocos2d::CCDictionary::setObject_1(a1[71], v11, v10); v20 = a1[72]; *(_QWORD *)(v20 + 8LL * v10) = v11; v6 = v30; v13 = (unsigned int)v8; v14 = *(_BYTE **)(v20 + 8LL * (unsigned int)v8); if ( !v14 ) goto LABEL_23; LABEL_24: *(_QWORD *)(v7 + 152) = v11; *((_BYTE *)v11 + 81) = 0; v14[81] = 0; *((_QWORD *)v11 + 9) = v7; if ( !*((_QWORD *)v14 + 9) ) { v15 = v8; v16 = v6; ColorAction = GJEffectManager::getColorAction((__int64)a1, v15); v6 = v16; *((_QWORD *)v14 + 9) = ColorAction; } v18 = *((_DWORD *)v14 + 14); v19 = v14; while ( 1 ) { if ( v18 == v10 ) { LABEL_10: *(_BYTE *)(v7 + 126) = 1; goto LABEL_11; } v19 = *((_BYTE **)v19 + 8); if ( !v19 ) break; v18 = *((_DWORD *)v19 + 14); if ( v18 == v10 ) goto LABEL_10; } if ( !*((_QWORD *)v11 + 8) ) { *((_QWORD *)v11 + 8) = v14; v14[80] = 0; } LABEL_11: v1 = a1; if ( !v6 ) { result = a1[71]; goto LABEL_36; } } v13 = (unsigned int)v8; v14 = *(_BYTE **)(v12 + 8LL * (unsigned int)v8); if ( v14 ) goto LABEL_24; LABEL_23: v28 = v13; v29 = v6; v14 = operator new(0x58u); cocos2d::CCObject::CCObject(v14); *(_QWORD *)v14 = off_100B117D0; *((_WORD *)v14 + 40) = 1; *((_DWORD *)v14 + 14) = v8; *((_OWORD *)v14 + 4) = 0; cocos2d::CCObject::autorelease(v14); cocos2d::CCDictionary::setObject_1(a1[71], v14, v28); *(_QWORD *)(a1[72] + 8 * v28) = v14; v6 = v29; goto LABEL_24; } } LABEL_36: if ( result ) { v21 = *(_QWORD *)(result + 56); while ( v21 ) { v22 = *(_QWORD *)(v21 + 264); v21 = *(_QWORD *)(v21 + 288); if ( !*(_BYTE *)(v22 + 81) && *(_BYTE *)(v22 + 80) == 1 ) { do { v23 = v22; sub_1007FEBF0(v1[125], v22); v22 = *(_QWORD *)(v22 + 64); } while ( v22 ); v24 = v1[125]; if ( v24 ) { v25 = *(unsigned int **)(v24 + 56); if ( *v25 ) { v26 = *((_QWORD *)v25 + 2); v27 = v26 + 8LL * *v25 - 8; do { if ( !*(_QWORD *)v27 ) break; GJEffectManager::calculateInheritedColor(v1, v23, *(_QWORD *)(*(_QWORD *)v27 + 72LL)); v27 -= 8LL; } while ( v27 >= v26 ); v24 = v1[125]; } result = sub_1007FF190(v24); } else { result = sub_1007FF190(0); } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source