{"type": "func", "start": 5371866160, "end": 5371866432, "name": "LevelLeaderboard::loadLeaderboardFailed", "pseudocode": "// \n// LevelLeaderboard::loadLeaderboardFailed from 0x140302c30 to 0x140302d40 (272 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140588588\n// > <???> @ 0x1406d4400\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\nvoid LevelLeaderboard::loadLeaderboardFailed(LevelLeaderboard *a1, const char *a2)\n{\n  GJAccountManager *v3; // rax\n  __int64 v4; // rdx\n  __int64 v5; // rdx\n  __int128 v6; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v7; // [rsp+30h] [rbp-18h]\n  __int64 v8; // [rsp+38h] [rbp-10h]\n\n  if ( LevelLeaderboard::isCorrect((LevelLeaderboard *)((char *)a1 - 632), a2) )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uOrderOfArrival + 320LL))(\n      *(_QWORD *)&a1->m_uOrderOfArrival,\n      0);\n    v3 = GJAccountManager::sharedState();\n    if ( v3->m_accountID - v3->m_unkInt1 <= 0 )\n    {\n      v6 = 0;\n      *(_QWORD *)&v6 = sub_14003AA10(0x50u);\n      v7 = 71;\n      v8 = 79;\n      strcpy((char *)v6, \"Create an <cg>account</c> to\\ncompare scores\\nwith <cl>other players</c>!\");\n      TextArea::setString(*(TextArea **)&a1->m_fRotationX, (__int64)&v6);\n      LOBYTE(v5) = 1;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_fRotationX + 320LL))(\n        *(_QWORD *)&a1->m_fRotationX,\n        v5);\n    }\n    LOBYTE(v4) = a1->m_uAutoReleaseCount != 3;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_fScaleX + 320LL))(*(_QWORD *)&a1->m_fScaleX, v4);\n  }\n}", "assembly": "; \n; LevelLeaderboard::loadLeaderboardFailed from 0x140302c30 to 0x140302d40 (272 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140588588\n; > <???> @ 0x1406d4400\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\npush    rbx                                                            ; +0x0, 0x140302c30\nsub     rsp, 40h                                                       ; +0x2, 0x140302c32\nmov     rbx, rcx                                                       ; +0x6, 0x140302c36\nadd     rcx, 0FFFFFFFFFFFFFD88h                                        ; +0x9, 0x140302c39\ncall    LevelLeaderboard__isCorrect                                    ; +0x10, 0x140302c40\ntest    al, al                                                         ; +0x15, 0x140302c45\njz      loc_140302D3A                                                  ; +0x17, 0x140302c47\nmov     rcx, [rbx+30h]                                                 ; +0x1d, 0x140302c4d\nxor     edx, edx                                                       ; +0x21, 0x140302c51\nmov     rax, [rcx]                                                     ; +0x23, 0x140302c53\ncall    qword ptr [rax+140h]                                           ; +0x26, 0x140302c56\ncall    GJAccountManager__sharedState                                  ; +0x2c, 0x140302c5c\nmov     rcx, rax                                                       ; +0x31, 0x140302c61\nmov     eax, [rax+168h]                                                ; +0x34, 0x140302c64\nsub     eax, [rcx+16Ch]                                                ; +0x3a, 0x140302c6a\ntest    eax, eax                                                       ; +0x40, 0x140302c70\njg      loc_140302D20                                                  ; +0x42, 0x140302c72\nxorps   xmm0, xmm0                                                     ; +0x48, 0x140302c78\nmov     [rsp+48h+var_18], 0                                            ; +0x4b, 0x140302c7b\nmov     ecx, 50h ; 'P'                                                 ; +0x54, 0x140302c84\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x59, 0x140302c89\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x62, 0x140302c92\ncall    sub_14003AA10                                                  ; +0x67, 0x140302c97\nmovaps  xmm0, cs:xmmword_140587F50                                     ; +0x6c, 0x140302c9c\nlea     rdx, [rsp+48h+var_28]                                          ; +0x73, 0x140302ca3\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x78, 0x140302ca8\nmov     rcx, rax                                                       ; +0x7d, 0x140302cad\nmov     [rsp+48h+var_18], 47h ; 'G'                                    ; +0x80, 0x140302cb0\nmov     [rsp+48h+var_10], 4Fh ; 'O'                                    ; +0x89, 0x140302cb9\nmovups  xmmword ptr [rax], xmm0                                        ; +0x92, 0x140302cc2\nmovaps  xmm1, cs:xmmword_140587F60                                     ; +0x95, 0x140302cc5\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x9c, 0x140302ccc\nmovaps  xmm0, cs:xmmword_140587F70                                     ; +0xa0, 0x140302cd0\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xa7, 0x140302cd7\nmovaps  xmm1, cs:xmmword_140587F80                                     ; +0xab, 0x140302cdb\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xb2, 0x140302ce2\nmov     eax, cs:dword_140587F90                                        ; +0xb6, 0x140302ce6\nmov     [rcx+40h], eax                                                 ; +0xbc, 0x140302cec\nmovzx   eax, cs:word_140587F94                                         ; +0xbf, 0x140302cef\nmov     [rcx+44h], ax                                                  ; +0xc6, 0x140302cf6\nmovzx   eax, cs:byte_140587F96                                         ; +0xca, 0x140302cfa\nmov     [rcx+46h], al                                                  ; +0xd1, 0x140302d01\nmov     byte ptr [rcx+47h], 0                                          ; +0xd4, 0x140302d04\nmov     rcx, [rbx+38h]                                                 ; +0xd8, 0x140302d08\ncall    TextArea__setString                                            ; +0xdc, 0x140302d0c\nmov     rcx, [rbx+38h]                                                 ; +0xe1, 0x140302d11\nmov     dl, 1                                                          ; +0xe5, 0x140302d15\nmov     rax, [rcx]                                                     ; +0xe7, 0x140302d17\ncall    qword ptr [rax+140h]                                           ; +0xea, 0x140302d1a\nmov     rcx, [rbx+40h]                                                 ; +0xf0, 0x140302d20\ncmp     dword ptr [rbx+18h], 3                                         ; +0xf4, 0x140302d24\nsetnz   dl                                                             ; +0xf8, 0x140302d28\nmov     rax, [rcx]                                                     ; +0xfb, 0x140302d2b\nadd     rsp, 40h                                                       ; +0xfe, 0x140302d2e\npop     rbx                                                            ; +0x102, 0x140302d32\njmp     qword ptr [rax+140h]                                           ; +0x103, 0x140302d33\nadd     rsp, 40h                                                       ; +0x10a, 0x140302d3a\npop     rbx                                                            ; +0x10e, 0x140302d3e\nretn                                                                   ; +0x10f, 0x140302d3f", "xrefs": ["<???> @ 0x140588588", "<???> @ 0x1406d4400"], "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"}