// // LeaderboardsLayer::isCorrect from 0x100513e50 to 0x100513f13 (195 bytes) // // 2 xrefs: // > LeaderboardsLayer::loadLeaderboardFinished @ 0x100513d8d // > LeaderboardsLayer::loadLeaderboardFailed @ 0x100513fd1 // // 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 LeaderboardsLayer::isCorrect(__int64 a1, unsigned __int8 *a2) { unsigned int v2; // r14d GameLevelManager *v3; // rax unsigned int v4; // r15d unsigned __int8 v5; // r13 void *v6; // r14 size_t v7; // r12 char *p_s1; // rdi size_t v9; // r15 const void *v10; // rbx size_t v11; // rdx int v12; // ebx unsigned __int8 v14; // [rsp+0h] [rbp-40h] BYREF char __s1; // [rsp+1h] [rbp-3Fh] BYREF size_t v16; // [rsp+8h] [rbp-38h] void *__p; // [rsp+10h] [rbp-30h] v2 = 0; if ( *(_DWORD *)(a1 + 440) != 3 ) v2 = *(_DWORD *)(a1 + 444); v3 = GameLevelManager::sharedState(); GameLevelManager::getLeaderboardKey(&v14, v3, *(unsigned int *)(a1 + 440), v2); v4 = *a2; v5 = v14; v6 = __p; if ( (v14 & 1) != 0 ) { v7 = v16; p_s1 = (char *)__p; if ( (v4 & 1) == 0 ) { LABEL_5: v9 = v4 >> 1; v10 = a2 + 1; goto LABEL_8; } } else { v7 = v14 >> 1; p_s1 = &__s1; if ( (v4 & 1) == 0 ) goto LABEL_5; } v9 = *((_QWORD *)a2 + 1); v10 = *((const void **)a2 + 2); LABEL_8: v11 = v7; if ( v9 < v7 ) v11 = v9; v12 = memcmp(p_s1, v10, v11); if ( (v5 & 1) != 0 ) operator delete(v6); return v12 == 0 && v9 == v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source