// // LeaderboardsLayer::onInfo from 0x1402c3ba0 to 0x1402c4092 (1266 bytes) // // 2 xrefs: // > LeaderboardsLayer::init @ 0x1402c24dc // > @ 0x1406d2a98 // // 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 // // Hidden C++ exception states: #wind=3 void LeaderboardsLayer::onInfo(LeaderboardsLayer *a1, cocos2d::CCObject *a2) { int v2; // ebx unsigned __int64 v3; // rdx unsigned __int64 v4; // r8 __int32 v5; // ecx __int32 v6; // ecx __int32 v7; // ecx char *v8; // rdx int v9; // edi size_t v10; // r8 void **v11; // rbx __int64 v12; // rax FLAlertLayer *v13; // rbx void *v14; // rcx void *v15; // rcx __int128 v16; // [rsp+58h] [rbp-41h] BYREF __int64 v17; // [rsp+68h] [rbp-31h] __int64 v18; // [rsp+70h] [rbp-29h] char v19[32]; // [rsp+80h] [rbp-19h] BYREF void *v20[2]; // [rsp+A0h] [rbp+7h] BYREF __int64 v21; // [rsp+B0h] [rbp+17h] unsigned __int64 v22; // [rsp+B8h] [rbp+1Fh] void *Block[2]; // [rsp+C0h] [rbp+27h] __int64 v24; // [rsp+D0h] [rbp+37h] __int64 v25; // [rsp+D8h] [rbp+3Fh] v2 = (int)a1; *(_OWORD *)v20 = 0; v21 = 0; v3 = 15; v22 = 15; LOBYTE(v20[0]) = 0; *(_OWORD *)Block = 0; v24 = 0; v4 = 15; v25 = 15; LOBYTE(Block[0]) = 0; v5 = a1->m_type - 1; if ( v5 ) { v6 = v5 - 1; if ( v6 ) { v7 = v6 - 1; if ( v7 ) { if ( v7 != 1 ) goto LABEL_14; v21 = 7; qmemcpy(v20, "Friend", 6); HIWORD(v20[0]) = (unsigned __int8)aFriends[6]; v8 = (char *)sub_14003AA10(0x50u); v24 = 77; v25 = 79; strcpy(v8, "The Friends leaderboard shows your friends in order of Stars."); } else { v21 = 8; strcpy((char *)v20, "Creators"); v8 = (char *)sub_14003AA10(0xE0u); v24 = 216; v25 = 223; strcpy( v8, "The Creators leaderboard is sorted by amount of Creator Points. Creating a rated level rewards 1, " "Featured rewards 2, Epic rewards 3, Legendary rewards 4, and Mythic rewards 5."); } } else { v21 = 6; strcpy((char *)v20, "Global"); v8 = (char *)sub_14003AA10(0x80u); v24 = 126; v25 = 127; strcpy( v8, "The Global leaderboard shows players in order of Stars.\n" "Players banned by Leaderboard Moderators are excluded."); } } else { v21 = 7; v20[0] = (void *)0x30303120706F54LL; v8 = (char *)sub_14003AA10(0xE0u); v24 = 208; v25 = 223; strcpy( v8, "The Top 100 leaderboard shows the players with the most Stars in the game. Players must be man" "ually whitelisted by a Leaderboard Moderator to appear here, ensuring legitimate rankings."); } Block[0] = v8; v9 = v2 + 416; v16 = 0; v17 = 0; v18 = 0; v10 = -1; do ++v10; while ( v8[v10] ); sub_14003A930(&v16, v8, v10); v11 = v20; if ( v22 > 0xF ) LODWORD(v11) = v20[0]; v12 = sub_14003BDB0((__int64)v19, (__int64)&v16); v13 = FLAlertLayer::create(v9, (int)v11, v12, (__int64)"OK", (__int64)"Info", 1136525312, 0, 0, 1065353216); sub_14003A830((__int64)&v16); v13->show(v13); v3 = v22; v4 = v25; LABEL_14: if ( v4 > 0xF ) { v14 = Block[0]; if ( v4 + 1 >= 0x1000 ) { v14 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); v3 = v22; } if ( v3 > 0xF ) { v15 = v20[0]; if ( v3 + 1 >= 0x1000 ) { v15 = *((void **)v20[0] - 1); if ( (unsigned __int64)((char *)v20[0] - (char *)v15 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v15); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source