// // LevelLeaderboard::onChangeType from 0x14042a110 to 0x14042a28d (381 bytes) // // 2 xrefs: // > LevelLeaderboard::init @ 0x140429216 // > @ 0x140926a80 // // 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=2 __int64 __fastcall LevelLeaderboard::onChangeType(__int64 a1, __int64 a2) { __int64 result; // rax unsigned int v5; // esi __int64 v6; // rbx __int64 v7; // rbx struct cocos2d::CCString *v8; // rax void *v9; // rcx void *v10; // [rsp+30h] [rbp-38h] void *Block[2]; // [rsp+38h] [rbp-30h] BYREF __int64 v12; // [rsp+48h] [rbp-20h] unsigned __int64 v13; // [rsp+50h] [rbp-18h] result = GJAccountManager::sharedState(); if ( *(_DWORD *)(result + 360) - *(_DWORD *)(result + 364) > 0 ) { v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v6 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v6 = qword_14090BFD0; } *(_OWORD *)Block = 0; v12 = 3; v13 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0098", 4u); v7 = *(_QWORD *)(v6 + 432); v8 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v5); cocos2d::CCDictionary::setObject(v7, v8, Block); if ( v13 > 0xF ) { v9 = Block[0]; if ( v13 + 1 >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } return LevelLeaderboard::reloadLeaderboard((__int64 *)a1, v5, *(_DWORD *)(a1 + 692)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source