// // LevelInfoLayer::onRateStarsMod from 0x140423a60 to 0x140423de1 (897 bytes) // // 2 xrefs: // > LevelInfoLayer::init @ 0x14041d851 // > @ 0x140926900 // // 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:32:10 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall LevelInfoLayer::onRateStarsMod(__int64 a1) { __int64 v2; // rax cocos2d::CCObject *v3; // rsi _QWORD *v4; // rbx __int64 v5; // r8 int v6; // r9d __int64 (__fastcall *v7)(__int64); // rdx __int64 v8; // rcx bool v9; // di unsigned int v10; // ebx _QWORD *v11; // rsi void *v12; // [rsp+30h] [rbp+8h] if ( !*(_BYTE *)(a1 + 488) ) { v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v12 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } v3 = *(cocos2d::CCObject **)(a1 + 504); if ( *(int *)(v2 + 1080) <= 0 ) { v9 = *((_DWORD *)v3 + 243) == 5; v10 = *((_DWORD *)v3 + 82) - *((_DWORD *)v3 + 83); v11 = operator new(0x300u); FLAlertLayer::FLAlertLayer((__int64)v11); *v11 = &RateStarsModLayer::`vftable'; v11[40] = &RateStarsModLayer::`vftable'; v11[41] = &RateStarsModLayer::`vftable'; v11[42] = &RateStarsModLayer::`vftable'; v11[43] = &RateStarsModLayer::`vftable'; v11[44] = &RateStarsModLayer::`vftable'; v11[51] = &RateStarsModLayer::`vftable'; v11[54] = &RateStarsModLayer::`vftable'; v11[68] = &RateStarsModLayer::`vftable'; v11[83] = &RateStarsModLayer::`vftable'; v11[84] = &RateStarsModLayer::`vftable'; *((_BYTE *)v11 + 680) = 0; v11[86] = 0; v11[87] = 0; v11[88] = 0; v11[89] = 0; *((_BYTE *)v11 + 720) = 0; v11[91] = 0; v11[92] = 0; v11[93] = 0; v11[94] = 0; v11[95] = 0; if ( (unsigned __int8)RateStarsModLayer::init(v11, v10, v9) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11); } else { (*(void (__fastcall **)(_QWORD *, __int64))(*v11 + 8LL))(v11, 1); v11 = nullptr; } v7 = *(__int64 (__fastcall **)(__int64))(*v11 + 1064LL); v8 = (__int64)v11; if ( v7 == FLAlertLayer::show ) { FLAlertLayer::show((__int64)v11); return; } } else { v4 = operator new(0x460u); SetupTriggerPopup::SetupTriggerPopup((__int64)v4); *v4 = &GJRateLevelLayer::`vftable'; v4[40] = &GJRateLevelLayer::`vftable'; v4[41] = &GJRateLevelLayer::`vftable'; v4[42] = &GJRateLevelLayer::`vftable'; v4[43] = &GJRateLevelLayer::`vftable'; v4[44] = &GJRateLevelLayer::`vftable'; v4[51] = &GJRateLevelLayer::`vftable'; v4[54] = &GJRateLevelLayer::`vftable'; v4[68] = &GJRateLevelLayer::`vftable'; v4[83] = &GJRateLevelLayer::`vftable'; v4[84] = &GJRateLevelLayer::`vftable'; v4[125] = &GJRateLevelLayer::`vftable'; v4[126] = &GJRateLevelLayer::`vftable'; v4[127] = &GJRateLevelLayer::`vftable'; v4[128] = &GJRateLevelLayer::`vftable'; v4[129] = 0; *((_BYTE *)v4 + 1040) = 0; v4[131] = 0; v4[132] = 0; *((_DWORD *)v4 + 266) = 0; *((_BYTE *)v4 + 1068) = 0; v4[134] = 0; v4[135] = 0; v4[136] = 0; *((_DWORD *)v4 + 274) = 0; v4[138] = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 139)); if ( GJRateLevelLayer::init((__int64)v4, v3, v5, v6) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4); } else { (*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1); v4 = nullptr; } v7 = *(__int64 (__fastcall **)(__int64))(*v4 + 1064LL); v8 = (__int64)v4; if ( v7 == SetupTriggerPopup::show ) { SetupTriggerPopup::show((__int64)v4); return; } } v7(v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source