// // GJUserScore::isCurrentUser from 0x100560350 to 0x100560441 (241 bytes) // // 4 xrefs: // > GJScoreCell::loadFromScore @ 0x100249b5e // > GJScoreCell::loadFromScore @ 0x100249bd9 // > GJLevelScoreCell::loadFromScore @ 0x10024b1a9 // > CustomListView::setupList @ 0x10024da62 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall GJUserScore::isCurrentUser(GJUserScore *a1) { double v1; // xmm0_8 GJAccountManager *v2; // rax int v3; // ecx bool v4; // r15 GameManager *v5; // rax std::string *p_m_playerUDID; // rax char v7; // r12 void *v8; // r14 unsigned int sizex2; // eax std::size_t size; // rax std::array *longStorage; // rbx size_t v12; // rdx char *v13; // rsi bool v14; // zf bool v15; // r13 bool v16; // r15 __int128 v18; // [rsp+0h] [rbp-40h] BYREF void *__s2; // [rsp+10h] [rbp-30h] v2 = GJAccountManager::sharedState(); v3 = v2->m_accountID - v2->m_unkInt1; if ( !v3 || (v4 = 1, v3 != a1->m_accountID) ) { v5 = GameManager::sharedState(); if ( (v5->m_playerUDID.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70(&v18, v5->m_playerUDID.m_data.m_long.longStorage, v5->m_playerUDID.m_data.m_long.size, v1); } else { p_m_playerUDID = &v5->m_playerUDID; __s2 = p_m_playerUDID->m_data.m_long.longStorage; v18 = *(_OWORD *)&p_m_playerUDID->m_data.m_short.sizex2; } v7 = v18; v8 = __s2; sizex2 = a1->m_userUDID.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { size = a1->m_userUDID.m_data.m_long.size; longStorage = (std::array *)a1->m_userUDID.m_data.m_long.longStorage; } else { size = sizex2 >> 1; longStorage = &a1->m_userUDID.m_data.m_short.shortStorage; } v12 = (unsigned __int8)v18 >> 1; if ( (v18 & 1) != 0 ) v12 = *((_QWORD *)&v18 + 1); v13 = (char *)&v18 + 1; if ( (v18 & 1) != 0 ) v13 = (char *)__s2; v14 = v12 == size; if ( v12 >= size ) v12 = size; v15 = v14; v16 = memcmp(longStorage, v13, v12) == 0; if ( (v7 & 1) != 0 ) operator delete(v8); return v15 && v16; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source