// // GJColorSetupLayer::onColor from 0x14035f6c0 to 0x14035f78b (203 bytes) // // 2 xrefs: // > GJColorSetupLayer::init @ 0x14035edf5 // > @ 0x1409212b4 // // 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:30:52 +0000 // __int64 __fastcall GJColorSetupLayer::onColor(__int64 a1, __int64 a2) { int v3; // ebx __int64 v4; // rdx void (__fastcall ***v5)(_QWORD); // rcx __int64 v6; // rdx __int64 ColorAction; // rax char *v9; // rax __int64 v10; // rcx v3 = *(_DWORD *)(a1 + 720) * *(_DWORD *)(a1 + 724); v4 = v3 + (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); if ( *(_BYTE *)(a1 + 752) ) { v5 = *(void (__fastcall ****)(_QWORD))(a1 + 760); *(_DWORD *)(a1 + 768) = v4; if ( v5 ) { if ( (int)v4 > 0 ) (**v5)(v5); } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); LOBYTE(v6) = 1; return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v6); } else { ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(*(_QWORD *)(a1 + 680) + 320LL), v4); v9 = ColorSelectPopup::create(0, 0, ColorAction); v10 = a1 + 664; if ( !a1 ) v10 = 0; *((_DWORD *)v9 + 148) = 106; *((_QWORD *)v9 + 138) = v10; return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v9 + 1064LL))(v9); } }