// // LevelBrowserLayer::onInfo from 0x100497bd8 to 0x100497edc (772 bytes) // // 1 xrefs: // > LevelBrowserLayer::init @ 0x100496570 // // This function is hookable on this platform (idp: arm, 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:05:57 +0000 // void __fastcall LevelBrowserLayer::onInfo(__int64 a1) { __int64 v2; // x8 const std::string::value_type *v3; // x1 int v4; // w8 unsigned int v5; // w8 std::string *v6; // x20 std::string *v7; // x1 std::string *v8; // x4 void *v9; // x19 std::string::size_type size; // x8 void *__p[2]; // [xsp+0h] [xbp-70h] BYREF char v12; // [xsp+17h] [xbp-59h] std::string v13; // [xsp+18h] [xbp-58h] BYREF std::string v14; // [xsp+30h] [xbp-40h] BYREF std::string v15; // [xsp+48h] [xbp-28h] BYREF sub_100009900(&v15, "Info"); sub_100009900( &v14, "Green users are unregistered.\n" "Gold users are unique registered.\n" "Blue songs are official.\n" "Purple songs are custom."); sub_100009900(&v13, ""); v2 = *(_QWORD *)(a1 + 664); if ( !v2 ) goto LABEL_21; if ( *(_DWORD *)(v2 + 432) == 1 ) { std::string::assign(&v15, "Lists"); std::string::assign( &v14, "A list may have rewards if it is rated by RobTop. The difficulty face is manually set by the creator of th" "e list.\n" "Usernames are gold for registered users and green for unregistered users. A song is blue i" "f it is official and pink if it is custom."); if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) != 6 ) goto LABEL_21; std::string::assign(&v15, "Top Lists"); v3 = "These lists have been rated by RobTop. The rewards for each one are also decided by him and are variabl" "e from list to list. Note that rated lists can only be Featured and do not reward Creator Points."; } else { std::string::assign(&v15, "Levels"); std::string::assign( &v14, "A level rewards Stars if it is rated by RobTop. For unrated levels, the difficulty face is set by " "community votes on each level's page. This is also how Demon difficulties are decided.\n" "Usernames are gold for registered users and green for unregistered users. A song is blue i" "f it is official and pink if it is custom."); v4 = *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL); if ( v4 > 27 ) { if ( v4 <= 31 ) { switch ( v4 ) { case 28: std::string::assign(&v15, "Weekly Levels"); v3 = "New levels are released every week.\nCheck back later for more updates!"; break; case 29: std::string::assign(&v15, "Bonus Levels"); v3 = "New levels are released from time to time.\nCheck back later for more updates!"; break; case 31: std::string::assign(&v15, "Hyped"); v3 = "Levels sent by Rating Advisors enter the\n" "Hyped list for about a week.\n" "The list reshuffles every hour, so every level has a chance to be at the top."; break; default: goto LABEL_21; } goto LABEL_20; } v5 = v4 - 32; } else { if ( v4 <= 20 ) { switch ( v4 ) { case 3: std::string::assign(&v15, "Trending"); v3 = "New popular levels from the last few days.\n" "Only creators with a rated level, or a level sent by a Rating Advisor, can trend."; break; case 6: std::string::assign(&v13, "Info"); std::string::assign(&v15, "Featured"); v3 = "Levels on this list have been rated and featured by RobTop. The extra visual around the difficulty face" " indicates how much he likes a specific level. In order of increasing quality:\n" "Featured, Epic, Legendary, and Mythic."; break; case 9: std::string::assign(&v15, "Map Packs"); v3 = "Map Packs are collections of 3 rated levels of similar difficulty set by RobTop. Once completed" ", they reward Stars and Secret Coins."; break; default: goto LABEL_21; } goto LABEL_20; } v5 = v4 - 21; } if ( v5 >= 3 ) goto LABEL_21; std::string::assign(&v15, "The Safe"); v3 = "Every past Daily, Weekly, and Event level.\n" "Safe: Unlock a past level with Demon Keys and play it as it originally appeared. Dailies give <" "cy>Stars only, with no diamonds or orbs. Weekly and Event levels still give their chest" " rewards.\n" "Check: Show only levels you have not beaten.\n" "Clock: Play levels as normal online levels."; } LABEL_20: std::string::assign(&v14, v3); LABEL_21: if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v6 = &v15; else v6 = (std::string *)v15.__r_.__value_.__r.__words[0]; if ( (v14.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v7 = &v14; else v7 = (std::string *)v14.__r_.__value_.__r.__words[0]; sub_100009900(__p, (char *)v7); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) { if ( v13.__r_.__value_.__l.__size_ ) v8 = (std::string *)v13.__r_.__value_.__r.__words[0]; else v8 = nullptr; } else if ( *((_BYTE *)&v13.__r_.__value_.__s + 23) ) { v8 = &v13; } else { v8 = nullptr; } v9 = FLAlertLayer::create_1(a1 + 552, (__int64)v6, (__int64)__p, (__int64)"OK", (__int64)v8, 380.0); if ( v12 < 0 ) operator delete(__p[0]); size = HIBYTE(v13.__r_.__value_.__r.__words[2]); if ( (v13.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = v13.__r_.__value_.__l.__size_; if ( size ) (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v9 + 72LL))(v9, 6); (*(void (__fastcall **)(void *))(*(_QWORD *)v9 + 1312LL))(v9); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v13.__r_.__value_.__l.__data_); if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v14.__r_.__value_.__l.__data_); if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v15.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source