{"type": "func", "start": 5372758864, "end": 5372759253, "name": "LeaderboardsLayer::loadLeaderboardFailed", "pseudocode": "// \n// LeaderboardsLayer::loadLeaderboardFailed from 0x1403dcb50 to 0x1403dccd5 (389 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140787480\n// > <???> @ 0x140924cd4\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:31:39 +0000\n// \n\n__int64 __fastcall LeaderboardsLayer::loadLeaderboardFailed(__int64 a1, _BYTE *a2)\n{\n  size_t v3; // r8\n  __int64 result; // rax\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  v6 = 0;\n  v7 = 0;\n  v8 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003D230(&v6, a2, v3);\n  result = LeaderboardsLayer::isCorrect(a1 - 408, &v6);\n  if ( (_BYTE)result )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 72) + 336LL))(*(_QWORD *)(a1 + 72), 0);\n    result = *(unsigned int *)(a1 + 32);\n    if ( (_DWORD)result == 4 )\n    {\n      v7 = 0;\n      v8 = 0;\n      v6 = 0;\n      *(_QWORD *)&v6 = sub_14003D460(0x50u);\n      v7 = 65;\n      v8 = 79;\n      strcpy((char *)v6, \"Create an <cg>account</c> to\\ncompare scores\\nwith <cl>Friends</c>!\");\n    }\n    else\n    {\n      if ( (_DWORD)result != 2 )\n        return result;\n      v7 = 0;\n      v8 = 0;\n      v6 = 0;\n      *(_QWORD *)&v6 = sub_14003D460(0x40u);\n      v7 = 60;\n      v8 = 63;\n      strcpy((char *)v6, \"Create an <cg>account</c> to\\ncompare scores\\n <cl>Online</c>!\");\n    }\n    TextArea::setString(*(__int64 **)(a1 + 80), (__int64)&v6);\n    LOBYTE(v5) = 1;\n    return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 80) + 336LL))(*(_QWORD *)(a1 + 80), v5);\n  }\n  return result;\n}", "assembly": "; \n; LeaderboardsLayer::loadLeaderboardFailed from 0x1403dcb50 to 0x1403dccd5 (389 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140787480\n; > <???> @ 0x140924cd4\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:31:39 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403dcb50\npush    rdi                                                            ; +0x5, 0x1403dcb55\nsub     rsp, 40h                                                       ; +0x6, 0x1403dcb56\nxor     edi, edi                                                       ; +0xa, 0x1403dcb5a\nxorps   xmm0, xmm0                                                     ; +0xc, 0x1403dcb5c\nmovups  [rsp+48h+var_28], xmm0                                         ; +0xf, 0x1403dcb5f\nmov     [rsp+48h+var_18], rdi                                          ; +0x14, 0x1403dcb64\nmov     rbx, rcx                                                       ; +0x19, 0x1403dcb69\nmov     [rsp+48h+var_10], rdi                                          ; +0x1c, 0x1403dcb6c\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x21, 0x1403dcb71\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x1403dcb78\ninc     r8                                                             ; +0x30, 0x1403dcb80\ncmp     [rdx+r8], dil                                                  ; +0x33, 0x1403dcb83\njnz     short loc_1403DCB80                                            ; +0x37, 0x1403dcb87\nlea     rcx, [rsp+48h+var_28]                                          ; +0x39, 0x1403dcb89\ncall    sub_14003D230                                                  ; +0x3e, 0x1403dcb8e\nlea     rcx, [rbx-198h]                                                ; +0x43, 0x1403dcb93\nlea     rdx, [rsp+48h+var_28]                                          ; +0x4a, 0x1403dcb9a\ncall    LeaderboardsLayer__isCorrect                                   ; +0x4f, 0x1403dcb9f\ntest    al, al                                                         ; +0x54, 0x1403dcba4\njz      loc_1403DCCCA                                                  ; +0x56, 0x1403dcba6\nmov     rcx, [rbx+48h]                                                 ; +0x5c, 0x1403dcbac\nxor     edx, edx                                                       ; +0x60, 0x1403dcbb0\nmov     rax, [rcx]                                                     ; +0x62, 0x1403dcbb2\ncall    qword ptr [rax+150h]                                           ; +0x65, 0x1403dcbb5\nmov     eax, [rbx+20h]                                                 ; +0x6b, 0x1403dcbbb\ncmp     eax, 4                                                         ; +0x6e, 0x1403dcbbe\njnz     short loc_1403DCC34                                            ; +0x71, 0x1403dcbc1\nxorps   xmm0, xmm0                                                     ; +0x73, 0x1403dcbc3\nmov     [rsp+48h+var_18], rdi                                          ; +0x76, 0x1403dcbc6\nmov     ecx, 50h ; 'P'                                                 ; +0x7b, 0x1403dcbcb\nmov     [rsp+48h+var_10], rdi                                          ; +0x80, 0x1403dcbd0\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x85, 0x1403dcbd5\ncall    sub_14003D460                                                  ; +0x8a, 0x1403dcbda\nmovaps  xmm0, cs:xmmword_1407873F0                                     ; +0x8f, 0x1403dcbdf\nmov     rcx, rax                                                       ; +0x96, 0x1403dcbe6\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x99, 0x1403dcbe9\nmov     [rsp+48h+var_18], 41h ; 'A'                                    ; +0x9e, 0x1403dcbee\nmov     [rsp+48h+var_10], 4Fh ; 'O'                                    ; +0xa7, 0x1403dcbf7\nmovups  xmmword ptr [rax], xmm0                                        ; +0xb0, 0x1403dcc00\nmovaps  xmm1, cs:xmmword_140787400                                     ; +0xb3, 0x1403dcc03\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0xba, 0x1403dcc0a\nmovaps  xmm0, cs:xmmword_140787410                                     ; +0xbe, 0x1403dcc0e\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xc5, 0x1403dcc15\nmovaps  xmm1, cs:xmmword_140787420                                     ; +0xc9, 0x1403dcc19\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xd0, 0x1403dcc20\nmovzx   eax, cs:byte_140787430                                         ; +0xd4, 0x1403dcc24\nmov     [rcx+40h], al                                                  ; +0xdb, 0x1403dcc2b\nmov     [rcx+41h], dil                                                 ; +0xde, 0x1403dcc2e\njmp     short loc_1403DCCAD                                            ; +0xe2, 0x1403dcc32\ncmp     eax, 2                                                         ; +0xe4, 0x1403dcc34\njnz     loc_1403DCCCA                                                  ; +0xe7, 0x1403dcc37\nxorps   xmm0, xmm0                                                     ; +0xed, 0x1403dcc3d\nmov     [rsp+48h+var_18], rdi                                          ; +0xf0, 0x1403dcc40\nmov     ecx, 40h ; '@'                                                 ; +0xf5, 0x1403dcc45\nmov     [rsp+48h+var_10], rdi                                          ; +0xfa, 0x1403dcc4a\nmovups  [rsp+48h+var_28], xmm0                                         ; +0xff, 0x1403dcc4f\ncall    sub_14003D460                                                  ; +0x104, 0x1403dcc54\nmovups  xmm0, cs:xmmword_1407873A8                                     ; +0x109, 0x1403dcc59\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x110, 0x1403dcc60\nmov     rcx, rax                                                       ; +0x115, 0x1403dcc65\nmov     [rsp+48h+var_18], 3Ch ; '<'                                    ; +0x118, 0x1403dcc68\nmov     [rsp+48h+var_10], 3Fh ; '?'                                    ; +0x121, 0x1403dcc71\nmovups  xmmword ptr [rax], xmm0                                        ; +0x12a, 0x1403dcc7a\nmovups  xmm1, cs:xmmword_1407873B8                                     ; +0x12d, 0x1403dcc7d\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x134, 0x1403dcc84\nmovups  xmm0, cs:xmmword_1407873C8                                     ; +0x138, 0x1403dcc88\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x13f, 0x1403dcc8f\nmovsd   xmm0, cs:qword_1407873D8                                       ; +0x143, 0x1403dcc93\nmovsd   qword ptr [rax+30h], xmm0                                      ; +0x14b, 0x1403dcc9b\nmov     eax, cs:dword_1407873E0                                        ; +0x150, 0x1403dcca0\nmov     [rcx+38h], eax                                                 ; +0x156, 0x1403dcca6\nmov     [rcx+3Ch], dil                                                 ; +0x159, 0x1403dcca9\nmov     rcx, [rbx+50h]                                                 ; +0x15d, 0x1403dccad\nlea     rdx, [rsp+48h+var_28]                                          ; +0x161, 0x1403dccb1\ncall    TextArea__setString                                            ; +0x166, 0x1403dccb6\nmov     rcx, [rbx+50h]                                                 ; +0x16b, 0x1403dccbb\nmov     dl, 1                                                          ; +0x16f, 0x1403dccbf\nmov     rax, [rcx]                                                     ; +0x171, 0x1403dccc1\ncall    qword ptr [rax+150h]                                           ; +0x174, 0x1403dccc4\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x17a, 0x1403dccca\nadd     rsp, 40h                                                       ; +0x17f, 0x1403dcccf\npop     rdi                                                            ; +0x183, 0x1403dccd3\nretn                                                                   ; +0x184, 0x1403dccd4", "xrefs": ["<???> @ 0x140787480", "<???> @ 0x140924cd4"], "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"}