// // LevelLeaderboard::loadScores from 0x140429d00 to 0x140429fe8 (744 bytes) // // 3 xrefs: // > LevelLeaderboard::init @ 0x1404295bc // > LevelLeaderboard::updateUserScoreFinished @ 0x140429ff7 // > @ 0x140926a68 // // 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:12 +0000 // // Hidden C++ exception states: #wind=6 void __fastcall LevelLeaderboard::loadScores(__int64 a1) { int v2; // ebx cocos2d::CCString *v3; // rax const char *CString; // rax size_t v5; // r8 void **v6; // rsi __int64 v7; // rbx cocos2d::CCArray *LocalScores; // rax void **v9; // rbx __int64 v10; // rcx __int64 StoredOnlineLevels; // rax void **v12; // r8 __int64 v13; // rcx __int64 v14; // rdx __int64 v15; // rcx void *v16; // rcx void *v17; // [rsp+30h] [rbp-38h] void *v18; // [rsp+30h] [rbp-38h] void *v19; // [rsp+30h] [rbp-38h] void *v20; // [rsp+30h] [rbp-38h] void *Block[2]; // [rsp+38h] [rbp-30h] BYREF __int64 v22; // [rsp+48h] [rbp-20h] unsigned __int64 v23; // [rsp+50h] [rbp-18h] v2 = *(_DWORD *)(*(_QWORD *)(a1 + 680) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 680) + 332LL); if ( !*(_QWORD *)&qword_14090BFB0 ) { v17 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v17); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); } v3 = cocos2d::CCString::createWithFormat("ll_%i_%i_%i", v2, *(_DWORD *)(a1 + 688), *(_DWORD *)(a1 + 692)); CString = cocos2d::CCString::getCString(v3); *(_OWORD *)Block = 0; v22 = 0; v23 = 0; v5 = -1; do ++v5; while ( CString[v5] ); sub_14003D230(Block, CString, v5); if ( *(_DWORD *)(a1 + 688) == 3 ) { v6 = Block; if ( v23 > 0xF ) v6 = (void **)Block[0]; v7 = *(_QWORD *)(a1 + 664); LocalScores = LevelLeaderboard::getLocalScores(a1); (*(void (__fastcall **)(__int64, cocos2d::CCArray *, void **))(v7 + 16))(a1 + 664, LocalScores, v6); } else { v9 = Block; if ( v23 > 0xF ) v9 = (void **)Block[0]; v10 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v18 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v18); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v10 = *(_QWORD *)&qword_14090BFB0; } StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v10, v9); if ( StoredOnlineLevels ) { v12 = Block; if ( v23 > 0xF ) v12 = (void **)Block[0]; (*(void (__fastcall **)(__int64, __int64, void **))(*(_QWORD *)(a1 + 664) + 16LL))( a1 + 664, StoredOnlineLevels, v12); } else { v13 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v19 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v19); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v13 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::makeTimeStamp(v13, "upd_ll"); LOBYTE(v14) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 712) + 336LL))(*(_QWORD *)(a1 + 712), v14); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 720) + 336LL))(*(_QWORD *)(a1 + 720), 0); LevelLeaderboard::setupLeaderboard(a1, 0); v15 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v20 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v20); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v15 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v15 + 1424) = a1 + 664; GameLevelManager::getLevelLeaderboard(v15, *(_QWORD *)(a1 + 680), *(_DWORD *)(a1 + 688), *(_DWORD *)(a1 + 692)); } } if ( v23 > 0xF ) { v16 = Block[0]; if ( v23 + 1 >= 0x1000 ) { v16 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v16); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source