// // LeaderboardsLayer::onInfo from 0x1403dce30 to 0x1403dd345 (1301 bytes) // // 2 xrefs: // > LeaderboardsLayer::init @ 0x1403db674 // > @ 0x140924cec // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:31:39 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall LeaderboardsLayer::onInfo(__int64 a1) { unsigned __int64 v2; // rdx unsigned __int64 v3; // r8 int v4; // ecx int v5; // ecx int v6; // ecx char *v7; // rdx int v8; // edi size_t v9; // r8 void **v10; // rbx __int64 v11; // rax cocos2d::CCObject *v12; // rbx void *v13; // rcx void *v14; // rcx __int128 v15; // [rsp+58h] [rbp-41h] BYREF __int64 v16; // [rsp+68h] [rbp-31h] __int64 v17; // [rsp+70h] [rbp-29h] char v18[32]; // [rsp+80h] [rbp-19h] BYREF void *v19[2]; // [rsp+A0h] [rbp+7h] BYREF __int64 v20; // [rsp+B0h] [rbp+17h] unsigned __int64 v21; // [rsp+B8h] [rbp+1Fh] void *Block[2]; // [rsp+C0h] [rbp+27h] __int64 v23; // [rsp+D0h] [rbp+37h] __int64 v24; // [rsp+D8h] [rbp+3Fh] *(_OWORD *)v19 = 0; v20 = 0; v2 = 15; v21 = 15; LOBYTE(v19[0]) = 0; *(_OWORD *)Block = 0; v23 = 0; v3 = 15; v24 = 15; LOBYTE(Block[0]) = 0; v4 = *(_DWORD *)(a1 + 440) - 1; if ( v4 ) { v5 = v4 - 1; if ( v5 ) { v6 = v5 - 1; if ( v6 ) { if ( v6 != 1 ) goto LABEL_16; v20 = 7; qmemcpy(v19, "Friend", 6); HIWORD(v19[0]) = (unsigned __int8)aFriends[6]; v7 = (char *)sub_14003D460(0x50u); v23 = 77; v24 = 79; strcpy(v7, "The Friends leaderboard shows your friends in order of Stars."); } else { v20 = 8; strcpy((char *)v19, "Creators"); v7 = (char *)sub_14003D460(0xE0u); v23 = 216; v24 = 223; strcpy( v7, "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 { v20 = 6; strcpy((char *)v19, "Global"); v7 = (char *)sub_14003D460(0x80u); v23 = 126; v24 = 127; strcpy( v7, "The Global leaderboard shows players in order of Stars.\n" "Players banned by Leaderboard Moderators are excluded."); } } else { v20 = 7; v19[0] = (void *)0x30303120706F54LL; v7 = (char *)sub_14003D460(0xE0u); v23 = 208; v24 = 223; strcpy( v7, "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] = v7; v8 = a1 + 416; if ( !a1 ) v8 = 0; v15 = 0; v16 = 0; v17 = 0; v9 = -1; do ++v9; while ( v7[v9] ); sub_14003D230(&v15, v7, v9); v10 = v19; if ( v21 > 0xF ) LODWORD(v10) = v19[0]; v11 = sub_14003F4F0((__int64)v18, (__int64)&v15); v12 = FLAlertLayer::create(v8, (int)v10, v11, (__int64)"OK", (__int64)"Info", 1136525312, 0, 0, 1065353216); sub_14003D310((__int64)&v15); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v12 + 1064LL))(v12); v2 = v21; v3 = v24; LABEL_16: if ( v3 > 0xF ) { v13 = Block[0]; if ( v3 + 1 >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v13); v2 = v21; } if ( v2 > 0xF ) { v14 = v19[0]; if ( v2 + 1 >= 0x1000 ) { v14 = *((void **)v19[0] - 1); if ( (unsigned __int64)((char *)v19[0] - (char *)v14 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v14); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source