// // EditLevelLayer::onLevelLeaderboard from 0x140179b40 to 0x140179c94 (340 bytes) // // 2 xrefs: // > EditLevelLayer::init @ 0x140179708 // > @ 0x1409186bc // // 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:27:34 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall EditLevelLayer::onLevelLeaderboard(__int64 a1) { __int64 v2; // rbx cocos2d::CCString *v3; // rax unsigned int v4; // ebx void *v5; // r8 __int64 v6; // rax void *v8; // [rsp+30h] [rbp-38h] void *Block[2]; // [rsp+38h] [rbp-30h] BYREF __int64 v10; // [rsp+48h] [rbp-20h] unsigned __int64 v11; // [rsp+50h] [rbp-18h] v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v8 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } *(_OWORD *)Block = 0; v10 = 3; v11 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0164", 4u); v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 432), Block); v4 = cocos2d::CCString::intValue(v3); if ( v11 > 0xF ) { v5 = Block[0]; if ( v11 + 1 >= 0x1000 ) { v5 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v5); } v6 = LevelLeaderboard::create(*(_QWORD *)(a1 + 472), 3, v4); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1064LL))(v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source