// // LevelBrowserLayer::onInfo from 0x100483a40 to 0x100483dc2 (898 bytes) // // 1 xrefs: // > LevelBrowserLayer::init @ 0x100481a47 // // 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 12:30:42 +0000 // void __fastcall LevelBrowserLayer::onInfo(__int64 a1) { __int64 v1; // rbx __int64 v2; // rax const std::string::value_type *v3; // rsi std::string::pointer data; // r14 const char *v5; // r15 size_t v6; // rax size_t v7; // r12 char *v8; // r13 char *v9; // rbx size_t v10; // r14 __int64 v11; // rbx std::string::pointer v12; // r8 __int64 v13; // rbx _QWORD __dst[2]; // [rsp+8h] [rbp-88h] BYREF void *__p; // [rsp+18h] [rbp-78h] std::string v16; // [rsp+20h] [rbp-70h] BYREF std::string __src; // [rsp+38h] [rbp-58h] BYREF std::string v18; // [rsp+50h] [rbp-40h] BYREF v1 = a1; v18.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)8; strcpy(v18.__r_.__value_.__s.__data_, "Info"); __src.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x98u); __src.__r_.__value_.__r.__words[0] = 153; __src.__r_.__value_.__l.__size_ = 145; strcpy( __src.__r_.__value_.__l.__data_, "Green users are unregistered.\n" "Gold users are unique registered.\n" "Blue songs are official.\n" "Purple songs are custom."); *(_WORD *)&v16.__r_.__value_.__l.0 = 0; v2 = *(_QWORD *)(a1 + 664); if ( v2 ) { if ( *(_DWORD *)(v2 + 432) == 1 ) { std::string::assign(&v18, "Lists"); std::string::assign( &__src, "A list may have rewards if it is rated by RobTop. The difficulty face is manually set by the creator of " "the list.\n" "Usernames are gold for registered users and green for unregistered users. A song is blue" " if it is official and pink if it is custom."); if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 6 ) { std::string::assign(&v18, "Top Lists"); v3 = "These lists have been rated by RobTop. The rewards for each one are also decided by him and are var" "iable from list to list. Note that rated lists can only be Featured and do not reward Creator Points."; LABEL_7: std::string::assign(&__src, v3); } } else { std::string::assign(&v18, "Levels"); std::string::assign( &__src, "A level rewards Stars if it is rated by RobTop. For unrated levels, the difficulty face is set b" "y 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" " if it is official and pink if it is custom."); switch ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) ) { case 3: std::string::assign(&v18, "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."; goto LABEL_7; case 6: std::string::assign(&v16, "Info"); std::string::assign(&v18, "Featured"); v3 = "Levels on this list have been rated and featured by RobTop. The extra visual around the difficulty face i" "ndicates how much he likes a specific level. In order of increasing quality:\n" "Featured, Epic, Legendary, and Mythic."; goto LABEL_7; case 9: std::string::assign(&v18, "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."; goto LABEL_7; case 0x15: case 0x16: case 0x17: case 0x20: case 0x21: case 0x22: std::string::assign(&v18, "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 Stars only, with no diamonds or orbs. Weekly and Event levels still give the" "ir chest rewards.\n" "Check: Show only levels you have not beaten.\n" "Clock: Play levels as normal online levels."; goto LABEL_7; case 0x1C: std::string::assign(&v18, "Weekly Levels"); v3 = "New levels are released every week.\nCheck back later for more updates!"; goto LABEL_7; case 0x1D: std::string::assign(&v18, "Bonus Levels"); v3 = "New levels are released from time to time.\nCheck back later for more updates!"; goto LABEL_7; case 0x1F: std::string::assign(&v18, "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."; goto LABEL_7; default: break; } } } if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) { data = v18.__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_10: v5 = __src.__r_.__value_.__s.__data_; goto LABEL_13; } } else { data = v18.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_10; } v5 = __src.__r_.__value_.__l.__data_; LABEL_13: v6 = strlen(v5); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v7 = v6; if ( v6 >= 0x17 ) { v9 = data; v10 = 26; if ( (v6 | 7) != 0x17 ) v10 = (v6 | 7) + 1; v8 = (char *)operator new(v10); __p = v8; __dst[0] = v10 | 1; __dst[1] = v7; data = v9; v1 = a1; goto LABEL_20; } LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( v6 ) LABEL_20: memmove(v8, v5, v7); v11 = v1 + 552; v8[v7] = 0; if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) { if ( v16.__r_.__value_.__l.__size_ ) v12 = v16.__r_.__value_.__l.__data_; else v12 = nullptr; } else { v12 = nullptr; if ( v16.__r_.__value_.__s.0 ) v12 = v16.__r_.__value_.__s.__data_; } v13 = FLAlertLayer::create_1(v11, data, __dst, "OK", v12, 380.0); if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) == 0 ) { if ( !(*(_BYTE *)&v16.__r_.__value_.__l.0 >> 1) ) goto LABEL_35; goto LABEL_34; } if ( v16.__r_.__value_.__l.__size_ ) LABEL_34: (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 72LL))(v13, 6); LABEL_35: (*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1312LL))(v13); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v16.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_37: if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_38; } } else if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_37; } operator delete(__src.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) LABEL_38: operator delete(v18.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source