// // ColorSelectPopup::onPlayerColor2 from 0x140129c70 to 0x140129d4e (222 bytes) // // 2 xrefs: // > ColorSelectPopup::init @ 0x14012799a // > @ 0x140916acc // // 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:27:00 +0000 // int __fastcall ColorSelectPopup::onPlayerColor2(__int64 a1) { int v2; // eax unsigned int v3; // edi int v4; // edx __int64 v5; // rcx __int64 v6; // rax cocos2d::CCArray *v7; // rcx struct cocos2d::CCObject *v8; // rax CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 1056), 0); v2 = *(_DWORD *)(a1 + 1116); v3 = 0; v4 = 0; if ( v2 != 2 ) v4 = 2; v5 = *(_QWORD *)(a1 + 680); *(_DWORD *)(a1 + 1116) = v4; if ( v5 ) { *(_BYTE *)(v5 + 1502) = v2 != 2; v6 = *(_QWORD *)(a1 + 680); *(_BYTE *)(v6 + 1501) = 0; } else { v7 = *(cocos2d::CCArray **)(a1 + 688); if ( v7 ) { LODWORD(v6) = cocos2d::CCArray::count(v7); if ( (_DWORD)v6 ) { do { v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v3++); *((_BYTE *)v8 + 1502) = *(_DWORD *)(a1 + 1116) == 2; *((_BYTE *)v8 + 1501) = 0; LODWORD(v6) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)); } while ( v3 < (unsigned int)v6 ); } } else { v6 = *(_QWORD *)(a1 + 1128); if ( v6 ) *(_DWORD *)(v6 + 88) = v4; } } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source