{"type": "func", "start": 5371829504, "end": 5371829726, "name": "LevelInfoLayer::onLevelLeaderboard", "pseudocode": "// \n// LevelInfoLayer::onLevelLeaderboard from 0x1402f9d00 to 0x1402f9dde (222 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x1402f83cf\n// > <???> @ 0x1406d4130\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid LevelInfoLayer::onLevelLeaderboard(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rdi\n  GameManager *v4; // rbx\n  LevelLeaderboardMode IntGameVariable; // ebx\n  LevelLeaderboardType v6; // eax\n  LevelLeaderboard *v7; // rax\n  void *v8; // [rsp+30h] [rbp+8h]\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  if ( !a1->m_isBusy )\n  {\n    v3 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v8 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = (GameManager *)qword_1406C2ED8;\n    }\n    v4 = v3;\n    if ( !v3 )\n    {\n      v9 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = (GameManager *)qword_1406C2ED8;\n    }\n    IntGameVariable = GameManager::getIntGameVariable(v4, \"0164\");\n    v6 = GameManager::getIntGameVariable(v3, \"0098\");\n    v7 = LevelLeaderboard::create(a1->m_level, v6, IntGameVariable);\n    v7->show(v7);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onLevelLeaderboard from 0x1402f9d00 to 0x1402f9dde (222 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x1402f83cf\n; > <???> @ 0x1406d4130\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402f9d00\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1402f9d05\npush    rdi                                                            ; +0xa, 0x1402f9d0a\nsub     rsp, 20h                                                       ; +0xb, 0x1402f9d0b\nmov     rsi, rcx                                                       ; +0xf, 0x1402f9d0f\ncmp     byte ptr [rcx+1E0h], 0                                         ; +0x12, 0x1402f9d12\njnz     loc_1402F9DCE                                                  ; +0x19, 0x1402f9d19\nmov     rdi, cs:qword_1406C2ED8                                        ; +0x1f, 0x1402f9d1f\ntest    rdi, rdi                                                       ; +0x26, 0x1402f9d26\njnz     short loc_1402F9D5A                                            ; +0x29, 0x1402f9d29\nmov     ecx, 668h; Size                                                ; +0x2b, 0x1402f9d2b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x30, 0x1402f9d30\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x1402f9d35\nmov     rcx, rax                                                       ; +0x3a, 0x1402f9d3a\ncall    sub_14017AB00                                                  ; +0x3d, 0x1402f9d3d\nnop                                                                    ; +0x42, 0x1402f9d42\nmov     cs:qword_1406C2ED8, rax                                        ; +0x43, 0x1402f9d43\nmov     rdx, [rax]                                                     ; +0x4a, 0x1402f9d4a\nmov     rcx, rax                                                       ; +0x4d, 0x1402f9d4d\ncall    qword ptr [rdx+48h]                                            ; +0x50, 0x1402f9d50\nmov     rdi, cs:qword_1406C2ED8                                        ; +0x53, 0x1402f9d53\nmov     rbx, rdi                                                       ; +0x5a, 0x1402f9d5a\ntest    rdi, rdi                                                       ; +0x5d, 0x1402f9d5d\njnz     short loc_1402F9D91                                            ; +0x60, 0x1402f9d60\nmov     ecx, 668h; Size                                                ; +0x62, 0x1402f9d62\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x67, 0x1402f9d67\nmov     [rsp+28h+arg_0], rax                                           ; +0x6c, 0x1402f9d6c\nmov     rcx, rax                                                       ; +0x71, 0x1402f9d71\ncall    sub_14017AB00                                                  ; +0x74, 0x1402f9d74\nnop                                                                    ; +0x79, 0x1402f9d79\nmov     cs:qword_1406C2ED8, rax                                        ; +0x7a, 0x1402f9d7a\nmov     rdx, [rax]                                                     ; +0x81, 0x1402f9d81\nmov     rcx, rax                                                       ; +0x84, 0x1402f9d84\ncall    qword ptr [rdx+48h]                                            ; +0x87, 0x1402f9d87\nmov     rdi, cs:qword_1406C2ED8                                        ; +0x8a, 0x1402f9d8a\nlea     rdx, a0164; \"0164\"                                             ; +0x91, 0x1402f9d91\nmov     rcx, rbx                                                       ; +0x98, 0x1402f9d98\ncall    GameManager__getIntGameVariable                                ; +0x9b, 0x1402f9d9b\nmov     ebx, eax                                                       ; +0xa0, 0x1402f9da0\nlea     rdx, a0098; \"0098\"                                             ; +0xa2, 0x1402f9da2\nmov     rcx, rdi                                                       ; +0xa9, 0x1402f9da9\ncall    GameManager__getIntGameVariable                                ; +0xac, 0x1402f9dac\nmov     edx, eax                                                       ; +0xb1, 0x1402f9db1\nmov     r8d, ebx                                                       ; +0xb3, 0x1402f9db3\nmov     rcx, [rsi+1F0h]                                                ; +0xb6, 0x1402f9db6\ncall    LevelLeaderboard__create                                       ; +0xbd, 0x1402f9dbd\nmov     rdx, [rax]                                                     ; +0xc2, 0x1402f9dc2\nmov     rcx, rax                                                       ; +0xc5, 0x1402f9dc5\ncall    qword ptr [rdx+410h]                                           ; +0xc8, 0x1402f9dc8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xce, 0x1402f9dce\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xd3, 0x1402f9dd3\nadd     rsp, 20h                                                       ; +0xd8, 0x1402f9dd8\npop     rdi                                                            ; +0xdc, 0x1402f9ddc\nretn                                                                   ; +0xdd, 0x1402f9ddd", "xrefs": ["LevelInfoLayer::init @ 0x1402f83cf", "<???> @ 0x1406d4130"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}