// // RateStarsModLayer::updateDemonRow from 0x140560390 to 0x1405604aa (282 bytes) // // 5 xrefs: // > GJRateLevelLayer::selectRating @ 0x140560277 // > RateStarsModLayer::selectDemon @ 0x140560381 // > @ 0x1408db01c // > @ 0x1408db02c // > @ 0x14092c39c // // 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:34:14 +0000 // unsigned int __fastcall RateStarsModLayer::updateDemonRow(__int64 a1) { int v1; // r15d unsigned int v3; // esi unsigned int result; // eax struct cocos2d::CCObject *v5; // r14 __int64 v6; // rbx __int64 v7; // rbx __int64 v8; // rdx int v9; // edi int v10; // eax void (__fastcall **v11)(__int64, __int16 *); // r8 __int16 *v12; // rdx _BYTE v13[3]; // [rsp+50h] [rbp+8h] BYREF v1 = *(_DWORD *)(a1 + 716); v3 = 0; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 704)); if ( result ) { do { v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 704), v3); v6 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 952LL))(v5); (*(void (__fastcall **)(struct cocos2d::CCObject *, bool))(*(_QWORD *)v5 + 936LL))(v5, v1 == 10); v7 = v6 + 320; if ( v1 == 10 ) { v9 = *(_DWORD *)(a1 + 756); v10 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 56LL))(v5); v11 = *(void (__fastcall ***)(__int64, __int16 *))v7; if ( v10 == v9 ) { v12 = &word_140704614; } else { memset(v13, 125, sizeof(v13)); v12 = (__int16 *)v13; } (*v11)(v7, v12); LOBYTE(v8) = -1; } else { (**(void (__fastcall ***)(__int64, __int16 *))v7)(v7, &word_140704610); LOBYTE(v8) = 100; } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 40LL))(v7, v8); ++v3; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 704)); } while ( v3 < result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source