{"type": "func", "start": 5370227616, "end": 5370227827, "name": "GJUserScore::isCurrentUser", "pseudocode": "// \n// GJUserScore::isCurrentUser from 0x140172ba0 to 0x140172c73 (211 bytes)\n// \n// 4 xrefs:\n// > CustomListView::setupList @ 0x1400ac0b2\n// > GJScoreCell::loadFromScore @ 0x1400b8954\n// > GJLevelScoreCell::loadFromScore @ 0x1400ba625\n// > <???> @ 0x1406caec0\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\nbool GJUserScore::isCurrentUser(GJUserScore *a1)\n{\n  char v2; // di\n  GJAccountManager *v3; // rax\n  int v4; // edx\n  __int64 v5; // rdx\n  bool v6; // bl\n  void *v8; // [rsp+28h] [rbp-40h]\n  _QWORD Buf2[4]; // [rsp+30h] [rbp-38h] BYREF\n\n  v2 = 0;\n  v3 = GJAccountManager::sharedState();\n  v4 = v3->m_accountID - v3->m_unkInt1;\n  if ( !v4 || v4 != a1->m_accountID )\n  {\n    v5 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v8 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v5 = qword_1406C2ED8;\n    }\n    sub_14003BDB0((__int64)Buf2, v5 + 584);\n    v2 = 3;\n    if ( sub_14003A760(&a1->m_userUDID.m_data.m_bigStorage, Buf2) )\n    {\n      v6 = 0;\nLABEL_8:\n      sub_14003A830((__int64)Buf2);\n      return v6;\n    }\n  }\n  v6 = 1;\n  if ( (v2 & 1) != 0 )\n    goto LABEL_8;\n  return v6;\n}", "assembly": "; \n; GJUserScore::isCurrentUser from 0x140172ba0 to 0x140172c73 (211 bytes)\n; \n; 4 xrefs:\n; > CustomListView::setupList @ 0x1400ac0b2\n; > GJScoreCell::loadFromScore @ 0x1400b8954\n; > GJLevelScoreCell::loadFromScore @ 0x1400ba625\n; > <???> @ 0x1406caec0\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, 0x140172ba0\npush    rdi                                                            ; +0x5, 0x140172ba5\nsub     rsp, 60h                                                       ; +0x6, 0x140172ba6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x140172baa\nxor     rax, rsp                                                       ; +0x11, 0x140172bb1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x140172bb4\nmov     rbx, rcx                                                       ; +0x19, 0x140172bb9\nxor     edi, edi                                                       ; +0x1c, 0x140172bbc\nmov     dword ptr [rsp+68h+var_40], edi                                ; +0x1e, 0x140172bbe\ncall    GJAccountManager__sharedState                                  ; +0x22, 0x140172bc2\nmov     edx, [rax+168h]                                                ; +0x27, 0x140172bc7\nsub     edx, [rax+16Ch]                                                ; +0x2d, 0x140172bcd\njz      short loc_140172BDD                                            ; +0x33, 0x140172bd3\ncmp     edx, [rbx+188h]                                                ; +0x35, 0x140172bd5\njz      short loc_140172C47                                            ; +0x3b, 0x140172bdb\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x3d, 0x140172bdd\ntest    rdx, rdx                                                       ; +0x44, 0x140172be4\njnz     short loc_140172C18                                            ; +0x47, 0x140172be7\nmov     ecx, 668h; Size                                                ; +0x49, 0x140172be9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4e, 0x140172bee\nmov     [rsp+68h+var_40], rax                                          ; +0x53, 0x140172bf3\nmov     rcx, rax                                                       ; +0x58, 0x140172bf8\ncall    sub_14017AB00                                                  ; +0x5b, 0x140172bfb\nnop                                                                    ; +0x60, 0x140172c00\nmov     cs:qword_1406C2ED8, rax                                        ; +0x61, 0x140172c01\nmov     rdx, [rax]                                                     ; +0x68, 0x140172c08\nmov     rcx, rax                                                       ; +0x6b, 0x140172c0b\ncall    qword ptr [rdx+48h]                                            ; +0x6e, 0x140172c0e\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x71, 0x140172c11\nadd     rdx, 248h                                                      ; +0x78, 0x140172c18\nlea     rcx, [rsp+68h+Buf2]                                            ; +0x7f, 0x140172c1f\ncall    sub_14003BDB0                                                  ; +0x84, 0x140172c24\nmov     edi, 3                                                         ; +0x89, 0x140172c29\nlea     rcx, [rbx+160h]; Buf1                                          ; +0x8e, 0x140172c2e\nlea     rdx, [rsp+68h+Buf2]; Buf2                                      ; +0x95, 0x140172c35\ncall    sub_14003A760                                                  ; +0x9a, 0x140172c3a\ntest    eax, eax                                                       ; +0x9f, 0x140172c3f\njz      short loc_140172C47                                            ; +0xa1, 0x140172c41\nxor     bl, bl                                                         ; +0xa3, 0x140172c43\njmp     short loc_140172C4E                                            ; +0xa5, 0x140172c45\nmov     bl, 1                                                          ; +0xa7, 0x140172c47\ntest    bl, dil                                                        ; +0xa9, 0x140172c49\njz      short loc_140172C58                                            ; +0xac, 0x140172c4c\nlea     rcx, [rsp+68h+Buf2]                                            ; +0xae, 0x140172c4e\ncall    sub_14003A830                                                  ; +0xb3, 0x140172c53\nmovzx   eax, bl                                                        ; +0xb8, 0x140172c58\nmov     rcx, [rsp+68h+var_18]                                          ; +0xbb, 0x140172c5b\nxor     rcx, rsp; StackCookie                                          ; +0xc0, 0x140172c60\ncall    __security_check_cookie                                        ; +0xc3, 0x140172c63\nmov     rbx, [rsp+68h+arg_0]                                           ; +0xc8, 0x140172c68\nadd     rsp, 60h                                                       ; +0xcd, 0x140172c6d\npop     rdi                                                            ; +0xd1, 0x140172c71\nretn                                                                   ; +0xd2, 0x140172c72", "xrefs": ["CustomListView::setupList @ 0x1400ac0b2", "GJScoreCell::loadFromScore @ 0x1400b8954", "GJLevelScoreCell::loadFromScore @ 0x1400ba625", "<???> @ 0x1406caec0"], "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"}