{"type": "func", "start": 4300604240, "end": 4300604481, "name": "GJUserScore::isCurrentUser", "pseudocode": "// \n// GJUserScore::isCurrentUser from 0x100560350 to 0x100560441 (241 bytes)\n// \n// 4 xrefs:\n// > GJScoreCell::loadFromScore @ 0x100249b5e\n// > GJScoreCell::loadFromScore @ 0x100249bd9\n// > GJLevelScoreCell::loadFromScore @ 0x10024b1a9\n// > CustomListView::setupList @ 0x10024da62\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\nbool __fastcall GJUserScore::isCurrentUser(GJUserScore *a1)\n{\n  double v1; // xmm0_8\n  GJAccountManager *v2; // rax\n  int v3; // ecx\n  bool v4; // r15\n  GameManager *v5; // rax\n  std::string *p_m_playerUDID; // rax\n  char v7; // r12\n  void *v8; // r14\n  unsigned int sizex2; // eax\n  std::size_t size; // rax\n  std::array<char, 23> *longStorage; // rbx\n  size_t v12; // rdx\n  char *v13; // rsi\n  bool v14; // zf\n  bool v15; // r13\n  bool v16; // r15\n  __int128 v18; // [rsp+0h] [rbp-40h] BYREF\n  void *__s2; // [rsp+10h] [rbp-30h]\n\n  v2 = GJAccountManager::sharedState();\n  v3 = v2->m_accountID - v2->m_unkInt1;\n  if ( !v3 || (v4 = 1, v3 != a1->m_accountID) )\n  {\n    v5 = GameManager::sharedState();\n    if ( (v5->m_playerUDID.m_data.m_short.sizex2 & 1) != 0 )\n    {\n      sub_100006B70(&v18, v5->m_playerUDID.m_data.m_long.longStorage, v5->m_playerUDID.m_data.m_long.size, v1);\n    }\n    else\n    {\n      p_m_playerUDID = &v5->m_playerUDID;\n      __s2 = p_m_playerUDID->m_data.m_long.longStorage;\n      v18 = *(_OWORD *)&p_m_playerUDID->m_data.m_short.sizex2;\n    }\n    v7 = v18;\n    v8 = __s2;\n    sizex2 = a1->m_userUDID.m_data.m_short.sizex2;\n    if ( (sizex2 & 1) != 0 )\n    {\n      size = a1->m_userUDID.m_data.m_long.size;\n      longStorage = (std::array<char, 23> *)a1->m_userUDID.m_data.m_long.longStorage;\n    }\n    else\n    {\n      size = sizex2 >> 1;\n      longStorage = &a1->m_userUDID.m_data.m_short.shortStorage;\n    }\n    v12 = (unsigned __int8)v18 >> 1;\n    if ( (v18 & 1) != 0 )\n      v12 = *((_QWORD *)&v18 + 1);\n    v13 = (char *)&v18 + 1;\n    if ( (v18 & 1) != 0 )\n      v13 = (char *)__s2;\n    v14 = v12 == size;\n    if ( v12 >= size )\n      v12 = size;\n    v15 = v14;\n    v16 = memcmp(longStorage, v13, v12) == 0;\n    if ( (v7 & 1) != 0 )\n      operator delete(v8);\n    return v15 && v16;\n  }\n  return v4;\n}", "assembly": "; \n; GJUserScore::isCurrentUser from 0x100560350 to 0x100560441 (241 bytes)\n; \n; 4 xrefs:\n; > GJScoreCell::loadFromScore @ 0x100249b5e\n; > GJScoreCell::loadFromScore @ 0x100249bd9\n; > GJLevelScoreCell::loadFromScore @ 0x10024b1a9\n; > CustomListView::setupList @ 0x10024da62\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    rbp                                                            ; +0x0, 0x100560350\nmov     rbp, rsp                                                       ; +0x1, 0x100560351\npush    r15                                                            ; +0x4, 0x100560354\npush    r14                                                            ; +0x6, 0x100560356\npush    r13                                                            ; +0x8, 0x100560358\npush    r12                                                            ; +0xa, 0x10056035a\npush    rbx                                                            ; +0xc, 0x10056035c\nsub     rsp, 18h                                                       ; +0xd, 0x10056035d\nmov     rbx, rdi                                                       ; +0x11, 0x100560361\ncall    GJAccountManager__sharedState                                  ; +0x14, 0x100560364\nmov     ecx, [rax+160h]                                                ; +0x19, 0x100560369\nsub     ecx, [rax+164h]                                                ; +0x1f, 0x10056036f\njz      short loc_100560386                                            ; +0x25, 0x100560375\nmov     r15b, 1                                                        ; +0x27, 0x100560377\ncmp     ecx, [rbx+178h]                                                ; +0x2a, 0x10056037a\njz      loc_10056042F                                                  ; +0x30, 0x100560380\ncall    GameManager__sharedState                                       ; +0x36, 0x100560386\ntest    byte ptr [rax+238h], 1                                         ; +0x3b, 0x10056038b\njnz     short loc_1005603AB                                            ; +0x42, 0x100560392\nadd     rax, 238h                                                      ; +0x44, 0x100560394\nmov     rcx, [rax+10h]                                                 ; +0x4a, 0x10056039a\nmov     [rbp+__s2], rcx                                                ; +0x4e, 0x10056039e\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x52, 0x1005603a2\nmovaps  [rbp+var_40], xmm0                                             ; +0x55, 0x1005603a5\njmp     short loc_1005603C2                                            ; +0x59, 0x1005603a9\nmov     rdx, [rax+240h]                                                ; +0x5b, 0x1005603ab\nmov     rsi, [rax+248h]                                                ; +0x62, 0x1005603b2\nlea     rdi, [rbp+var_40]                                              ; +0x69, 0x1005603b9\ncall    sub_100006B70                                                  ; +0x6d, 0x1005603bd\nmovzx   r12d, byte ptr [rbp+var_40]                                    ; +0x72, 0x1005603c2\nmov     r14, [rbp+__s2]                                                ; +0x77, 0x1005603c7\nmovzx   eax, byte ptr [rbx+158h]                                       ; +0x7b, 0x1005603cb\ntest    al, 1                                                          ; +0x82, 0x1005603d2\njz      short loc_1005603E6                                            ; +0x84, 0x1005603d4\nmov     rax, [rbx+160h]                                                ; +0x86, 0x1005603d6\nmov     rbx, [rbx+168h]                                                ; +0x8d, 0x1005603dd\njmp     short loc_1005603EF                                            ; +0x94, 0x1005603e4\nshr     eax, 1                                                         ; +0x96, 0x1005603e6\nadd     rbx, 159h                                                      ; +0x98, 0x1005603e8\nmov     edx, r12d                                                      ; +0x9f, 0x1005603ef\nshr     edx, 1                                                         ; +0xa2, 0x1005603f2\ntest    r12b, 1                                                        ; +0xa4, 0x1005603f4\ncmovnz  rdx, qword ptr [rbp+var_40+8]                                  ; +0xa8, 0x1005603f8\nlea     rsi, [rbp+var_40+1]                                            ; +0xad, 0x1005603fd\ncmovnz  rsi, r14; __s2                                                 ; +0xb1, 0x100560401\ncmp     rdx, rax                                                       ; +0xb5, 0x100560405\ncmovnb  rdx, rax; __n                                                  ; +0xb8, 0x100560408\nsetz    r13b                                                           ; +0xbc, 0x10056040c\nmov     rdi, rbx; __s1                                                 ; +0xc0, 0x100560410\ncall    _memcmp                                                        ; +0xc3, 0x100560413\ntest    eax, eax                                                       ; +0xc8, 0x100560418\nsetz    r15b                                                           ; +0xca, 0x10056041a\ntest    r12b, 1                                                        ; +0xce, 0x10056041e\njz      short loc_10056042C                                            ; +0xd2, 0x100560422\nmov     rdi, r14; __p                                                  ; +0xd4, 0x100560424\ncall    __ZdlPv; operator delete(void *)                               ; +0xd7, 0x100560427\nand     r15b, r13b                                                     ; +0xdc, 0x10056042c\nmov     eax, r15d                                                      ; +0xdf, 0x10056042f\nadd     rsp, 18h                                                       ; +0xe2, 0x100560432\npop     rbx                                                            ; +0xe6, 0x100560436\npop     r12                                                            ; +0xe7, 0x100560437\npop     r13                                                            ; +0xe9, 0x100560439\npop     r14                                                            ; +0xeb, 0x10056043b\npop     r15                                                            ; +0xed, 0x10056043d\npop     rbp                                                            ; +0xef, 0x10056043f\nretn                                                                   ; +0xf0, 0x100560440", "xrefs": ["GJScoreCell::loadFromScore @ 0x100249b5e", "GJScoreCell::loadFromScore @ 0x100249bd9", "GJLevelScoreCell::loadFromScore @ 0x10024b1a9", "CustomListView::setupList @ 0x10024da62"], "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"}