// // RateDemonLayer::selectRating from 0x1403c9120 to 0x1403c9294 (372 bytes) // // 5 xrefs: // > RateDemonLayer::init @ 0x1403c90ef // > RateDemonLayer::init @ 0x1403c8da3 // > @ 0x14069b958 // > @ 0x14069b990 // > @ 0x1406d79a0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void RateDemonLayer::selectRating(RateDemonLayer *a1, cocos2d::CCObject *a2) { int v3; // eax unsigned int v4; // esi struct cocos2d::CCObject *v5; // rdi __int64 v6; // rbx int v7; // eax __int16 *v8; // rdx CCMenuItemSpriteExtra *m_submitButton; // rcx char v10; // al cocos2d::CCNode *v11; // rbx cocos2d::CCComponentContainer *m_pComponentContainer; // rcx __int64 v13; // rcx cocos2d::CCNode_vtbl *v14; // rcx __int16 v15; // [rsp+30h] [rbp+8h] BYREF char v16; // [rsp+32h] [rbp+Ah] if ( a2 ) v3 = a2->getTag(a2); else v3 = -1; v4 = 0; for ( a1->m_demonRate = v3; v4 < cocos2d::CCArray::count(a1->m_demons); ++v4 ) { v5 = cocos2d::CCArray::objectAtIndex(a1->m_demons, v4); v6 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v5->__vftable[13].copyWithZone)(v5); v7 = v5->getTag(v5); v8 = &word_140529BC0; if ( a1->m_demonRate == v7 ) v8 = &word_140529BC4; (**(void (__fastcall ***)(__int64, __int16 *))(v6 + 320))(v6 + 320, v8); } m_submitButton = a1->m_submitButton; if ( a1->m_demonRate == -1 ) { v15 = -22874; v10 = -90; } else { v15 = -1; v10 = -1; } v16 = v10; v11 = m_submitButton->getNormalImage(m_submitButton); m_pComponentContainer = v11[1].m_pComponentContainer; if ( m_pComponentContainer ) ((void (__fastcall *)(cocos2d::CCDictionary **, __int16 *))m_pComponentContainer[15].m_pComponents->__vftable)( &m_pComponentContainer[15].m_pComponents, &v15); v13 = *(_QWORD *)&v11[1].m_bUseChildIndex; if ( v13 ) (**(void (__fastcall ***)(__int64, __int16 *))(v13 + 320))(v13 + 320, &v15); v14 = *(cocos2d::CCNode_vtbl **)&v11[2].m_uID; if ( v14 || (v14 = v11[2].__vftable) != nullptr ) (*(void (__fastcall **)(__int64, __int16 *))v14->setVisible)((__int64)&v14->setVisible, &v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source