// // LevelLeaderboard::onUpdate from 0x140302810 to 0x140302986 (374 bytes) // // 2 xrefs: // > LevelLeaderboard::init @ 0x14030145d // > @ 0x1406d43dc // // 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=4 void LevelLeaderboard::onUpdate(LevelLeaderboard *a1, cocos2d::CCObject *a2) { GJAccountManager *v3; // rax GameLevelManager *v4; // rcx GameLevelManager *v5; // rcx _BOOL8 v6; // rdx GameLevelManager *v7; // rcx void *v8; // [rsp+40h] [rbp+18h] void *v9; // [rsp+40h] [rbp+18h] void *v10; // [rsp+40h] [rbp+18h] v3 = GJAccountManager::sharedState(); if ( v3->m_accountID - v3->m_unkInt1 > 0 ) { v4 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v8 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v4 = (GameLevelManager *)qword_1406C2EC0; } if ( (unsigned int)(GameLevelManager::getTimeLeft(v4, "upd_ll", 5.0) - 1) > 4 ) { v5 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v9 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v5 = (GameLevelManager *)qword_1406C2EC0; } GameLevelManager::makeTimeStamp(v5, "upd_ll"); a1->m_noInternet->setVisible(a1->m_noInternet, 0); LOBYTE(v6) = 1; a1->m_circle->setVisible(a1->m_circle, v6); a1->m_refreshBtn->setVisible(a1->m_refreshBtn, 0); LevelLeaderboard::setupLeaderboard(a1, nullptr); v7 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v10 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v7 = (GameLevelManager *)qword_1406C2EC0; } v7->m_leaderboardManagerDelegate = &a1->LeaderboardManagerDelegate; GameLevelManager::getLevelLeaderboard(v7, a1->m_level, a1->m_type, a1->m_mode); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source