{"type": "func", "start": 5373029200, "end": 5373029818, "name": "LevelInfoLayer::onLevelLeaderboard", "pseudocode": "// \n// LevelInfoLayer::onLevelLeaderboard from 0x14041eb50 to 0x14041edba (618 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041d1d8\n// > <???> @ 0x140926774\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:08 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall LevelInfoLayer::onLevelLeaderboard(__int64 a1)\n{\n  __int64 v2; // rbx\n  cocos2d::CCString *v3; // rax\n  unsigned int v4; // r14d\n  void *v5; // r8\n  __int64 v6; // rdi\n  cocos2d::CCString *v7; // rax\n  unsigned int v8; // edi\n  void *v9; // r8\n  __int64 v10; // rax\n  void *v11; // [rsp+30h] [rbp-50h]\n  void *v12; // [rsp+30h] [rbp-50h]\n  void *Block[2]; // [rsp+38h] [rbp-48h] BYREF\n  __int64 v14; // [rsp+48h] [rbp-38h]\n  unsigned __int64 v15; // [rsp+50h] [rbp-30h]\n  void *Src[2]; // [rsp+58h] [rbp-28h] BYREF\n  __int64 v17; // [rsp+68h] [rbp-18h]\n  unsigned __int64 v18; // [rsp+70h] [rbp-10h]\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v11 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    *(_OWORD *)Block = 0;\n    v14 = 3;\n    v15 = 15;\n    LODWORD(Block[0]) = 6256231;\n    sub_140044D80(Block, \"0164\", 4u);\n    v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 432), Block);\n    v4 = cocos2d::CCString::intValue(v3);\n    if ( v15 > 0xF )\n    {\n      v5 = Block[0];\n      if ( v15 + 1 >= 0x1000 )\n      {\n        v5 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v5);\n    }\n    v14 = 0;\n    v15 = 15;\n    LOBYTE(Block[0]) = 0;\n    v6 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v12 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v12);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v6 = qword_14090BFD0;\n    }\n    *(_OWORD *)Src = 0;\n    v17 = 3;\n    v18 = 15;\n    LODWORD(Src[0]) = 6256231;\n    sub_140044D80(Src, \"0098\", 4u);\n    v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v6 + 432), Src);\n    v8 = cocos2d::CCString::intValue(v7);\n    if ( v18 > 0xF )\n    {\n      v9 = Src[0];\n      if ( v18 + 1 >= 0x1000 )\n      {\n        v9 = *((void **)Src[0] - 1);\n        if ( (unsigned __int64)((char *)Src[0] - (char *)v9 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v9);\n    }\n    v10 = LevelLeaderboard::create(*(_QWORD *)(a1 + 504), v8, v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1064LL))(v10);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onLevelLeaderboard from 0x14041eb50 to 0x14041edba (618 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041d1d8\n; > <???> @ 0x140926774\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:08 +0000\n; \nmov     [rsp-18h+arg_8], rbx                                           ; +0x0, 0x14041eb50\nmov     [rsp-18h+arg_10], rsi                                          ; +0x5, 0x14041eb55\npush    rbp                                                            ; +0xa, 0x14041eb5a\npush    rdi                                                            ; +0xb, 0x14041eb5b\npush    r14                                                            ; +0xc, 0x14041eb5c\nmov     rbp, rsp                                                       ; +0xe, 0x14041eb5e\nsub     rsp, 80h                                                       ; +0x11, 0x14041eb61\nmov     rax, cs:__security_cookie                                      ; +0x18, 0x14041eb68\nxor     rax, rsp                                                       ; +0x1f, 0x14041eb6f\nmov     [rbp+var_8], rax                                               ; +0x22, 0x14041eb72\nmov     rsi, rcx                                                       ; +0x26, 0x14041eb76\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x29, 0x14041eb79\njnz     loc_14041ED96                                                  ; +0x30, 0x14041eb80\nmov     rbx, cs:qword_14090BFD0                                        ; +0x36, 0x14041eb86\ntest    rbx, rbx                                                       ; +0x3d, 0x14041eb8d\njnz     short loc_14041EBC3                                            ; +0x40, 0x14041eb90\nmov     ecx, 6E8h; Size                                                ; +0x42, 0x14041eb92\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x47, 0x14041eb97\nmov     [rbp+var_50], rax                                              ; +0x4c, 0x14041eb9c\nmov     rcx, rax                                                       ; +0x50, 0x14041eba0\ncall    GameManager__GameManager                                       ; +0x53, 0x14041eba3\nnop                                                                    ; +0x58, 0x14041eba8\nmov     cs:qword_14090BFD0, rax                                        ; +0x59, 0x14041eba9\nmov     rcx, [rax]                                                     ; +0x60, 0x14041ebb0\nmov     rdx, [rcx+48h]                                                 ; +0x63, 0x14041ebb3\nmov     rcx, rax                                                       ; +0x67, 0x14041ebb7\ncall    rdx                                                            ; +0x6a, 0x14041ebba\nmov     rbx, cs:qword_14090BFD0                                        ; +0x6c, 0x14041ebbc\nxorps   xmm0, xmm0                                                     ; +0x73, 0x14041ebc3\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x76, 0x14041ebc6\nmov     [rbp+var_38], 3                                                ; +0x7a, 0x14041ebca\nmov     [rbp+var_30], 0Fh                                              ; +0x82, 0x14041ebd2\nmov     eax, cs:dword_140757618                                        ; +0x8a, 0x14041ebda\nmov     word ptr [rbp+Block], ax                                       ; +0x90, 0x14041ebe0\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x94, 0x14041ebe4\nmov     byte ptr [rbp+Block+2], al                                     ; +0x9b, 0x14041ebeb\nmov     byte ptr [rbp+Block+3], 0                                      ; +0x9e, 0x14041ebee\nmov     r8d, 4; Size                                                   ; +0xa2, 0x14041ebf2\nlea     rdx, a0164; \"0164\"                                             ; +0xa8, 0x14041ebf8\nlea     rcx, [rbp+Block]; Src                                          ; +0xaf, 0x14041ebff\ncall    sub_140044D80                                                  ; +0xb3, 0x14041ec03\nlea     rdx, [rbp+Block]                                               ; +0xb8, 0x14041ec08\nmov     rcx, [rbx+1B0h]                                                ; +0xbc, 0x14041ec0c\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xc3, 0x14041ec13\nmov     rcx, rax                                                       ; +0xc9, 0x14041ec19\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xcc, 0x14041ec1c\nmov     r14d, eax                                                      ; +0xd2, 0x14041ec22\nmov     rdx, [rbp+var_30]                                              ; +0xd5, 0x14041ec25\ncmp     rdx, 0Fh                                                       ; +0xd9, 0x14041ec29\njbe     short loc_14041EC77                                            ; +0xdd, 0x14041ec2d\ninc     rdx                                                            ; +0xdf, 0x14041ec2f\nmov     r8, [rbp+Block]                                                ; +0xe2, 0x14041ec32\nmov     rcx, r8                                                        ; +0xe6, 0x14041ec36\ncmp     rdx, 1000h                                                     ; +0xe9, 0x14041ec39\njb      short loc_14041EC6F                                            ; +0xf0, 0x14041ec40\nadd     rdx, 27h ; '''                                                 ; +0xf2, 0x14041ec42\nmov     r8, [r8-8]                                                     ; +0xf6, 0x14041ec46\nsub     rcx, r8                                                        ; +0xfa, 0x14041ec4a\nsub     rcx, 8                                                         ; +0xfd, 0x14041ec4d\ncmp     rcx, 1Fh                                                       ; +0x101, 0x14041ec51\njbe     short loc_14041EC6F                                            ; +0x105, 0x14041ec55\nxor     ebx, ebx                                                       ; +0x107, 0x14041ec57\nmov     [rsp+80h+Reserved], rbx; Reserved                              ; +0x109, 0x14041ec59\nxor     r9d, r9d; LineNo                                               ; +0x10e, 0x14041ec5e\nxor     r8d, r8d; FileName                                             ; +0x111, 0x14041ec61\nxor     edx, edx; FunctionName                                         ; +0x114, 0x14041ec64\nxor     ecx, ecx; Expression                                           ; +0x116, 0x14041ec66\ncall    cs:_invoke_watson                                              ; +0x118, 0x14041ec68\ndb 0CCh                                                                ; +0x11e, 0x14041ec6e\nmov     rcx, r8; Block                                                 ; +0x11f, 0x14041ec6f\ncall    j_j_free                                                       ; +0x122, 0x14041ec72\nxor     ebx, ebx                                                       ; +0x127, 0x14041ec77\nmov     [rbp+var_38], rbx                                              ; +0x129, 0x14041ec79\nmov     [rbp+var_30], 0Fh                                              ; +0x12d, 0x14041ec7d\nmov     byte ptr [rbp+Block], bl                                       ; +0x135, 0x14041ec85\nmov     rdi, cs:qword_14090BFD0                                        ; +0x138, 0x14041ec88\ntest    rdi, rdi                                                       ; +0x13f, 0x14041ec8f\njnz     short loc_14041ECC5                                            ; +0x142, 0x14041ec92\nmov     ecx, 6E8h; Size                                                ; +0x144, 0x14041ec94\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x149, 0x14041ec99\nmov     [rbp+var_50], rax                                              ; +0x14e, 0x14041ec9e\nmov     rcx, rax                                                       ; +0x152, 0x14041eca2\ncall    GameManager__GameManager                                       ; +0x155, 0x14041eca5\nnop                                                                    ; +0x15a, 0x14041ecaa\nmov     cs:qword_14090BFD0, rax                                        ; +0x15b, 0x14041ecab\nmov     rcx, [rax]                                                     ; +0x162, 0x14041ecb2\nmov     rdx, [rcx+48h]                                                 ; +0x165, 0x14041ecb5\nmov     rcx, rax                                                       ; +0x169, 0x14041ecb9\ncall    rdx                                                            ; +0x16c, 0x14041ecbc\nmov     rdi, cs:qword_14090BFD0                                        ; +0x16e, 0x14041ecbe\nxorps   xmm0, xmm0                                                     ; +0x175, 0x14041ecc5\nmovups  xmmword ptr [rbp+Src], xmm0                                    ; +0x178, 0x14041ecc8\nmov     [rbp+var_18], 3                                                ; +0x17c, 0x14041eccc\nmov     [rbp+var_10], 0Fh                                              ; +0x184, 0x14041ecd4\nmov     eax, cs:dword_140757618                                        ; +0x18c, 0x14041ecdc\nmov     word ptr [rbp+Src], ax                                         ; +0x192, 0x14041ece2\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x196, 0x14041ece6\nmov     byte ptr [rbp+Src+2], al                                       ; +0x19d, 0x14041eced\nmov     byte ptr [rbp+Src+3], 0                                        ; +0x1a0, 0x14041ecf0\nmov     r8d, 4; Size                                                   ; +0x1a4, 0x14041ecf4\nlea     rdx, a0098; \"0098\"                                             ; +0x1aa, 0x14041ecfa\nlea     rcx, [rbp+Src]; Src                                            ; +0x1b1, 0x14041ed01\ncall    sub_140044D80                                                  ; +0x1b5, 0x14041ed05\nlea     rdx, [rbp+Src]                                                 ; +0x1ba, 0x14041ed0a\nmov     rcx, [rdi+1B0h]                                                ; +0x1be, 0x14041ed0e\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x1c5, 0x14041ed15\nmov     rcx, rax                                                       ; +0x1cb, 0x14041ed1b\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x1ce, 0x14041ed1e\nmov     edi, eax                                                       ; +0x1d4, 0x14041ed24\nmov     rdx, [rbp+var_10]                                              ; +0x1d6, 0x14041ed26\ncmp     rdx, 0Fh                                                       ; +0x1da, 0x14041ed2a\njbe     short loc_14041ED76                                            ; +0x1de, 0x14041ed2e\ninc     rdx                                                            ; +0x1e0, 0x14041ed30\nmov     r8, [rbp+Src]                                                  ; +0x1e3, 0x14041ed33\nmov     rcx, r8                                                        ; +0x1e7, 0x14041ed37\ncmp     rdx, 1000h                                                     ; +0x1ea, 0x14041ed3a\njb      short loc_14041ED6E                                            ; +0x1f1, 0x14041ed41\nadd     rdx, 27h ; '''                                                 ; +0x1f3, 0x14041ed43\nmov     r8, [r8-8]                                                     ; +0x1f7, 0x14041ed47\nsub     rcx, r8                                                        ; +0x1fb, 0x14041ed4b\nsub     rcx, 8                                                         ; +0x1fe, 0x14041ed4e\ncmp     rcx, 1Fh                                                       ; +0x202, 0x14041ed52\njbe     short loc_14041ED6E                                            ; +0x206, 0x14041ed56\nmov     [rsp+80h+Reserved], rbx; Reserved                              ; +0x208, 0x14041ed58\nxor     r9d, r9d; LineNo                                               ; +0x20d, 0x14041ed5d\nxor     r8d, r8d; FileName                                             ; +0x210, 0x14041ed60\nxor     edx, edx; FunctionName                                         ; +0x213, 0x14041ed63\nxor     ecx, ecx; Expression                                           ; +0x215, 0x14041ed65\ncall    cs:_invoke_watson                                              ; +0x217, 0x14041ed67\nalign 2                                                                ; +0x21d, 0x14041ed6d\nmov     rcx, r8; Block                                                 ; +0x21e, 0x14041ed6e\ncall    j_j_free                                                       ; +0x221, 0x14041ed71\nmov     r8d, r14d                                                      ; +0x226, 0x14041ed76\nmov     edx, edi                                                       ; +0x229, 0x14041ed79\nmov     rcx, [rsi+1F8h]                                                ; +0x22b, 0x14041ed7b\ncall    LevelLeaderboard__create                                       ; +0x232, 0x14041ed82\nmov     rcx, [rax]                                                     ; +0x237, 0x14041ed87\nmov     rdx, [rcx+428h]                                                ; +0x23a, 0x14041ed8a\nmov     rcx, rax                                                       ; +0x241, 0x14041ed91\ncall    rdx                                                            ; +0x244, 0x14041ed94\nmov     rcx, [rbp+var_8]                                               ; +0x246, 0x14041ed96\nxor     rcx, rsp; StackCookie                                          ; +0x24a, 0x14041ed9a\ncall    __security_check_cookie                                        ; +0x24d, 0x14041ed9d\nlea     r11, [rsp+80h+var_s0]                                          ; +0x252, 0x14041eda2\nmov     rbx, [r11+28h]                                                 ; +0x25a, 0x14041edaa\nmov     rsi, [r11+30h]                                                 ; +0x25e, 0x14041edae\nmov     rsp, r11                                                       ; +0x262, 0x14041edb2\npop     r14                                                            ; +0x265, 0x14041edb5\npop     rdi                                                            ; +0x267, 0x14041edb7\npop     rbp                                                            ; +0x268, 0x14041edb8\nretn                                                                   ; +0x269, 0x14041edb9", "xrefs": ["LevelInfoLayer::init @ 0x14041d1d8", "<???> @ 0x140926774"], "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"}