{"type": "func", "start": 5373077584, "end": 5373077850, "name": "LevelLeaderboard::loadLeaderboardFailed", "pseudocode": "// \n// LevelLeaderboard::loadLeaderboardFailed from 0x14042a850 to 0x14042a95a (266 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14078d8c8\n// > <???> @ 0x140926abc\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::loadLeaderboardFailed(__int64 a1, _BYTE *a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rax\n  __int64 v5; // rdx\n  __int64 v6; // rdx\n  __int128 v7; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v8; // [rsp+30h] [rbp-18h]\n  __int64 v9; // [rsp+38h] [rbp-10h]\n\n  result = LevelLeaderboard::isCorrect(a1 - 664, a2);\n  if ( (_BYTE)result )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 48) + 336LL))(*(_QWORD *)(a1 + 48), 0);\n    v4 = GJAccountManager::sharedState();\n    if ( *(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364) <= 0 )\n    {\n      v7 = 0;\n      *(_QWORD *)&v7 = sub_14003D460(0x50u);\n      v8 = 71;\n      v9 = 79;\n      strcpy((char *)v7, \"Create an <cg>account</c> to\\ncompare scores\\nwith <cl>other players</c>!\");\n      TextArea::setString(*(__int64 **)(a1 + 56), (__int64)&v7);\n      LOBYTE(v6) = 1;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 56) + 336LL))(*(_QWORD *)(a1 + 56), v6);\n    }\n    LOBYTE(v5) = *(_DWORD *)(a1 + 24) != 3;\n    return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 64) + 336LL))(*(_QWORD *)(a1 + 64), v5);\n  }\n  return result;\n}", "assembly": "; \n; LevelLeaderboard::loadLeaderboardFailed from 0x14042a850 to 0x14042a95a (266 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14078d8c8\n; > <???> @ 0x140926abc\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; \npush    rbx                                                            ; +0x0, 0x14042a850\nsub     rsp, 40h                                                       ; +0x2, 0x14042a852\nmov     rbx, rcx                                                       ; +0x6, 0x14042a856\nadd     rcx, 0FFFFFFFFFFFFFD68h                                        ; +0x9, 0x14042a859\ncall    LevelLeaderboard__isCorrect                                    ; +0x10, 0x14042a860\ntest    al, al                                                         ; +0x15, 0x14042a865\njz      loc_14042A954                                                  ; +0x17, 0x14042a867\nmov     rcx, [rbx+30h]                                                 ; +0x1d, 0x14042a86d\nxor     edx, edx                                                       ; +0x21, 0x14042a871\nmov     rax, [rcx]                                                     ; +0x23, 0x14042a873\ncall    qword ptr [rax+150h]                                           ; +0x26, 0x14042a876\ncall    GJAccountManager__sharedState                                  ; +0x2c, 0x14042a87c\nmov     rcx, rax                                                       ; +0x31, 0x14042a881\nmov     eax, [rax+168h]                                                ; +0x34, 0x14042a884\nsub     eax, [rcx+16Ch]                                                ; +0x3a, 0x14042a88a\ntest    eax, eax                                                       ; +0x40, 0x14042a890\njg      loc_14042A93A                                                  ; +0x42, 0x14042a892\nxor     eax, eax                                                       ; +0x48, 0x14042a898\nxorps   xmm0, xmm0                                                     ; +0x4a, 0x14042a89a\nmov     ecx, 50h ; 'P'                                                 ; +0x4d, 0x14042a89d\nmov     [rsp+48h+var_18], rax                                          ; +0x52, 0x14042a8a2\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x57, 0x14042a8a7\nmov     [rsp+48h+var_10], rax                                          ; +0x5c, 0x14042a8ac\ncall    sub_14003D460                                                  ; +0x61, 0x14042a8b1\nmovaps  xmm0, cs:xmmword_14078DB00                                     ; +0x66, 0x14042a8b6\nlea     rdx, [rsp+48h+var_28]                                          ; +0x6d, 0x14042a8bd\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x72, 0x14042a8c2\nmov     rcx, rax                                                       ; +0x77, 0x14042a8c7\nmov     [rsp+48h+var_18], 47h ; 'G'                                    ; +0x7a, 0x14042a8ca\nmov     [rsp+48h+var_10], 4Fh ; 'O'                                    ; +0x83, 0x14042a8d3\nmovups  xmmword ptr [rax], xmm0                                        ; +0x8c, 0x14042a8dc\nmovaps  xmm1, cs:xmmword_14078DB10                                     ; +0x8f, 0x14042a8df\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x96, 0x14042a8e6\nmovaps  xmm0, cs:xmmword_14078DB20                                     ; +0x9a, 0x14042a8ea\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xa1, 0x14042a8f1\nmovaps  xmm1, cs:xmmword_14078DB30                                     ; +0xa5, 0x14042a8f5\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xac, 0x14042a8fc\nmov     eax, cs:dword_14078DB40                                        ; +0xb0, 0x14042a900\nmov     [rcx+40h], eax                                                 ; +0xb6, 0x14042a906\nmovzx   eax, cs:word_14078DB44                                         ; +0xb9, 0x14042a909\nmov     [rcx+44h], ax                                                  ; +0xc0, 0x14042a910\nmovzx   eax, cs:byte_14078DB46                                         ; +0xc4, 0x14042a914\nmov     [rcx+46h], al                                                  ; +0xcb, 0x14042a91b\nmov     byte ptr [rcx+47h], 0                                          ; +0xce, 0x14042a91e\nmov     rcx, [rbx+38h]                                                 ; +0xd2, 0x14042a922\ncall    TextArea__setString                                            ; +0xd6, 0x14042a926\nmov     rcx, [rbx+38h]                                                 ; +0xdb, 0x14042a92b\nmov     dl, 1                                                          ; +0xdf, 0x14042a92f\nmov     rax, [rcx]                                                     ; +0xe1, 0x14042a931\ncall    qword ptr [rax+150h]                                           ; +0xe4, 0x14042a934\nmov     rcx, [rbx+40h]                                                 ; +0xea, 0x14042a93a\ncmp     dword ptr [rbx+18h], 3                                         ; +0xee, 0x14042a93e\nsetnz   dl                                                             ; +0xf2, 0x14042a942\nmov     rax, [rcx]                                                     ; +0xf5, 0x14042a945\nadd     rsp, 40h                                                       ; +0xf8, 0x14042a948\npop     rbx                                                            ; +0xfc, 0x14042a94c\njmp     qword ptr [rax+150h]                                           ; +0xfd, 0x14042a94d\nadd     rsp, 40h                                                       ; +0x104, 0x14042a954\npop     rbx                                                            ; +0x108, 0x14042a958\nretn                                                                   ; +0x109, 0x14042a959", "xrefs": ["<???> @ 0x14078d8c8", "<???> @ 0x140926abc"], "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"}