{"type": "func", "start": 5373077424, "end": 5373077574, "name": "LevelLeaderboard::loadLeaderboardFinished", "pseudocode": "// \n// LevelLeaderboard::loadLeaderboardFinished from 0x14042a7b0 to 0x14042a846 (150 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14078d8c0\n// > <???> @ 0x140926ab0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:12 +0000\n// \n\n__int64 __fastcall LevelLeaderboard::loadLeaderboardFinished(__int64 a1, cocos2d::CCObject *a2, _BYTE *a3)\n{\n  __int64 result; // rax\n  cocos2d::CCObject *v6; // rcx\n  __int64 v7; // rdx\n\n  result = LevelLeaderboard::isCorrect(a1 - 664, a3);\n  if ( (_BYTE)result )\n  {\n    v6 = *(cocos2d::CCObject **)(a1 + 32);\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n    *(_QWORD *)(a1 + 32) = a2;\n    cocos2d::CCObject::retain(a2);\n    LevelLeaderboard::setupLeaderboard(a1 - 664, *(_QWORD *)(a1 + 32));\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 48) + 336LL))(*(_QWORD *)(a1 + 48), 0);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 56) + 336LL))(*(_QWORD *)(a1 + 56), 0);\n    LOBYTE(v7) = *(_DWORD *)(a1 + 24) != 3;\n    return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 64) + 336LL))(*(_QWORD *)(a1 + 64), v7);\n  }\n  return result;\n}", "assembly": "; \n; LevelLeaderboard::loadLeaderboardFinished from 0x14042a7b0 to 0x14042a846 (150 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14078d8c0\n; > <???> @ 0x140926ab0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:12 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14042a7b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14042a7b5\npush    rdi                                                            ; +0xa, 0x14042a7ba\nsub     rsp, 20h                                                       ; +0xb, 0x14042a7bb\nmov     rsi, rdx                                                       ; +0xf, 0x14042a7bf\nmov     rbx, rcx                                                       ; +0x12, 0x14042a7c2\nmov     rdx, r8                                                        ; +0x15, 0x14042a7c5\nadd     rcx, 0FFFFFFFFFFFFFD68h                                        ; +0x18, 0x14042a7c8\ncall    LevelLeaderboard__isCorrect                                    ; +0x1f, 0x14042a7cf\ntest    al, al                                                         ; +0x24, 0x14042a7d4\njz      short loc_14042A836                                            ; +0x26, 0x14042a7d6\nmov     rcx, [rbx+20h]                                                 ; +0x28, 0x14042a7d8\ntest    rcx, rcx                                                       ; +0x2c, 0x14042a7dc\njz      short loc_14042A7E7                                            ; +0x2f, 0x14042a7df\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x31, 0x14042a7e1\nmov     rcx, rsi                                                       ; +0x37, 0x14042a7e7\nmov     [rbx+20h], rsi                                                 ; +0x3a, 0x14042a7ea\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x3e, 0x14042a7ee\nmov     rdx, [rbx+20h]                                                 ; +0x44, 0x14042a7f4\nlea     rcx, [rbx-298h]                                                ; +0x48, 0x14042a7f8\ncall    LevelLeaderboard__setupLeaderboard                             ; +0x4f, 0x14042a7ff\nmov     rcx, [rbx+30h]                                                 ; +0x54, 0x14042a804\nxor     edx, edx                                                       ; +0x58, 0x14042a808\nmov     rax, [rcx]                                                     ; +0x5a, 0x14042a80a\ncall    qword ptr [rax+150h]                                           ; +0x5d, 0x14042a80d\nmov     rcx, [rbx+38h]                                                 ; +0x63, 0x14042a813\nxor     edx, edx                                                       ; +0x67, 0x14042a817\nmov     rax, [rcx]                                                     ; +0x69, 0x14042a819\ncall    qword ptr [rax+150h]                                           ; +0x6c, 0x14042a81c\nmov     rcx, [rbx+40h]                                                 ; +0x72, 0x14042a822\ncmp     dword ptr [rbx+18h], 3                                         ; +0x76, 0x14042a826\nsetnz   dl                                                             ; +0x7a, 0x14042a82a\nmov     rax, [rcx]                                                     ; +0x7d, 0x14042a82d\ncall    qword ptr [rax+150h]                                           ; +0x80, 0x14042a830\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x14042a836\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8b, 0x14042a83b\nadd     rsp, 20h                                                       ; +0x90, 0x14042a840\npop     rdi                                                            ; +0x94, 0x14042a844\nretn                                                                   ; +0x95, 0x14042a845", "xrefs": ["<???> @ 0x14078d8c0", "<???> @ 0x140926ab0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}