// // GJRateLevelLayer::onRate from 0x1402f6ab0 to 0x1402f6c19 (361 bytes) // // 2 xrefs: // > GJRateLevelLayer::init @ 0x1402f5361 // > @ 0x1406d4070 // // 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 // // Hidden C++ exception states: #wind=2 void GJRateLevelLayer::onRate(GJRateLevelLayer *a1, cocos2d::CCObject *a2) { int v3; // ebx GameLevelManager *v4; // rcx char v5; // al __int64 v6; // rax UploadActionPopup *m_uploadPopup; // rax UploadActionPopup *v8; // rax __int128 v9; // [rsp+20h] [rbp-28h] BYREF __int64 v10; // [rsp+30h] [rbp-18h] __int64 v11; // [rsp+38h] [rbp-10h] void *v12; // [rsp+50h] [rbp+8h] void *v13; // [rsp+50h] [rbp+8h] if ( a1->m_stars != -1 ) { v3 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; v4 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v12 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v4 = (GameLevelManager *)qword_1406C2EC0; } GameLevelManager::suggestLevelStars(v4, v3, a1->m_stars, a1->m_difficultySprite->m_featureState); if ( v5 ) { v6 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v13 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v6 = qword_1406C2EC0; } *(_QWORD *)(v6 + 808) = &a1->UploadActionDelegate; m_uploadPopup = a1->m_uploadPopup; if ( m_uploadPopup ) m_uploadPopup->m_delegate = nullptr; v9 = 0; *(_QWORD *)&v9 = sub_14003AA10(0x20u); v10 = 17; v11 = 31; strcpy((char *)v9, "Sending rating..."); v8 = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, (__int64)&v9); a1->m_uploadPopup = v8; v8->show(v8); } } }