{"type": "func", "start": 5371864816, "end": 5371864969, "name": "LevelLeaderboard::onChangeType", "pseudocode": "// \n// LevelLeaderboard::onChangeType from 0x1403026f0 to 0x140302789 (153 bytes)\n// \n// 2 xrefs:\n// > LevelLeaderboard::init @ 0x1403018a9\n// > <???> @ 0x1406d43c4\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=1\nvoid LevelLeaderboard::onChangeType(LevelLeaderboard *a1, cocos2d::CCObject *a2)\n{\n  GJAccountManager *v4; // rax\n  LevelLeaderboardType v5; // ebx\n  GameManager *v6; // rcx\n  void *v7; // [rsp+40h] [rbp+18h]\n\n  v4 = GJAccountManager::sharedState();\n  if ( v4->m_accountID - v4->m_unkInt1 > 0 )\n  {\n    v5 = a2->getTag(a2);\n    v6 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v6 = (GameManager *)qword_1406C2ED8;\n    }\n    GameManager::setIntGameVariable(v6, \"0098\", v5);\n    LevelLeaderboard::reloadLeaderboard(a1, v5, a1->m_mode);\n  }\n}", "assembly": "; \n; LevelLeaderboard::onChangeType from 0x1403026f0 to 0x140302789 (153 bytes)\n; \n; 2 xrefs:\n; > LevelLeaderboard::init @ 0x1403018a9\n; > <???> @ 0x1406d43c4\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_0], rbx                                               ; +0x0, 0x1403026f0\npush    rdi                                                            ; +0x5, 0x1403026f5\nsub     rsp, 20h                                                       ; +0x6, 0x1403026f6\nmov     rbx, rdx                                                       ; +0xa, 0x1403026fa\nmov     rdi, rcx                                                       ; +0xd, 0x1403026fd\ncall    GJAccountManager__sharedState                                  ; +0x10, 0x140302700\nmov     r8d, [rax+168h]                                                ; +0x15, 0x140302705\nsub     r8d, [rax+16Ch]                                                ; +0x1c, 0x14030270c\ntest    r8d, r8d                                                       ; +0x23, 0x140302713\njle     short loc_14030277E                                            ; +0x26, 0x140302716\nmov     rax, [rbx]                                                     ; +0x28, 0x140302718\nmov     rcx, rbx                                                       ; +0x2b, 0x14030271b\ncall    qword ptr [rax+38h]                                            ; +0x2e, 0x14030271e\nmov     ebx, eax                                                       ; +0x31, 0x140302721\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x33, 0x140302723\ntest    rcx, rcx                                                       ; +0x3a, 0x14030272a\njnz     short loc_14030275E                                            ; +0x3d, 0x14030272d\nmov     ecx, 668h; Size                                                ; +0x3f, 0x14030272f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x44, 0x140302734\nmov     [rsp+28h+arg_10], rax                                          ; +0x49, 0x140302739\nmov     rcx, rax                                                       ; +0x4e, 0x14030273e\ncall    sub_14017AB00                                                  ; +0x51, 0x140302741\nnop                                                                    ; +0x56, 0x140302746\nmov     cs:qword_1406C2ED8, rax                                        ; +0x57, 0x140302747\nmov     rdx, [rax]                                                     ; +0x5e, 0x14030274e\nmov     rcx, rax                                                       ; +0x61, 0x140302751\ncall    qword ptr [rdx+48h]                                            ; +0x64, 0x140302754\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x67, 0x140302757\nmov     r8d, ebx                                                       ; +0x6e, 0x14030275e\nlea     rdx, a0098; \"0098\"                                             ; +0x71, 0x140302761\ncall    GameManager__setIntGameVariable                                ; +0x78, 0x140302768\nmov     r8d, [rdi+294h]                                                ; +0x7d, 0x14030276d\nmov     edx, ebx                                                       ; +0x84, 0x140302774\nmov     rcx, rdi                                                       ; +0x86, 0x140302776\ncall    LevelLeaderboard__reloadLeaderboard                            ; +0x89, 0x140302779\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x14030277e\nadd     rsp, 20h                                                       ; +0x93, 0x140302783\npop     rdi                                                            ; +0x97, 0x140302787\nretn                                                                   ; +0x98, 0x140302788", "xrefs": ["LevelLeaderboard::init @ 0x1403018a9", "<???> @ 0x1406d43c4"], "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"}