// // FollowRewardPage::onSpecialItem from 0x10040d580 to 0x10040db1e (1438 bytes) // // 1 xrefs: // > FollowRewardPage::init @ 0x10040cf17 // // 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:07 +0000 // void __fastcall FollowRewardPage::onSpecialItem(__int64 a1, __int64 a2, double a3, double a4, __m128 a5) { unsigned int v5; // r15d __m128 v6; // xmm0 __int64 v7; // rax char UGV; // r12 __int64 v9; // rax __int64 v10; // rax __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rax __int64 v15; // r15 std::string::pointer v16; // r14 __int64 v17; // rbx std::string::pointer v18; // r8 __int64 *v19; // rbx __int64 v20; // r15 __int64 v21; // r12 __int64 v22; // rax unsigned int *v23; // rax _QWORD *v24; // rbx unsigned __int64 v25; // r14 __int64 v26; // r13 char *v27; // r14 __int128 v28; // [rsp+10h] [rbp-D0h] BYREF void *__p; // [rsp+20h] [rbp-C0h] __int128 v30; // [rsp+30h] [rbp-B0h] BYREF void *data; // [rsp+40h] [rbp-A0h] std::string v32; // [rsp+48h] [rbp-98h] BYREF std::string v33; // [rsp+60h] [rbp-80h] BYREF std::string v34; // [rsp+78h] [rbp-68h] BYREF std::string v35; // [rsp+90h] [rbp-50h] BYREF __int16 v36; // [rsp+B4h] [rbp-2Ch] BYREF char v37; // [rsp+B6h] [rbp-2Ah] v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v6 = 0; memset(&v35, 0, sizeof(v35)); *(_WORD *)&v32.__r_.__value_.__l.0 = 0; *(_WORD *)&v34.__r_.__value_.__l.0 = 0; *(_WORD *)&v33.__r_.__value_.__l.0 = 0; switch ( v5 ) { case 1u: std::string::assign(&v35, "0007"); v7 = GameManager::sharedState(); UGV = GameManager::getUGV(v7, "22"); std::string::assign(&v32, "YouTube"); std::string::assign(&v34, "Subscribe to RobTop Games on YouTube\nto unlock this chest!"); std::string::assign(&v33, "Sub!"); goto LABEL_9; case 2u: std::string::assign(&v35, "0008"); v12 = GameManager::sharedState(); UGV = GameManager::getUGV(v12, "24"); std::string::assign(&v32, "Twitter"); std::string::assign(&v34, "Follow RobTop Games on Twitter\nto unlock this chest!"); std::string::assign(&v33, "Follow!"); goto LABEL_9; case 3u: std::string::assign(&v35, "0009"); v10 = GameManager::sharedState(); UGV = GameManager::getUGV(v10, "23"); std::string::assign(&v32, "Facebook"); std::string::assign(&v34, "Like Geometry Dash on Facebook\nto unlock this chest!"); std::string::assign(&v33, "Like!"); goto LABEL_9; case 4u: std::string::assign(&v35, "0010"); v11 = GameManager::sharedState(); UGV = GameManager::getUGV(v11, "26"); std::string::assign(&v32, "Twitch"); std::string::assign(&v34, "Follow Geometry Dash on Twitch\nto unlock this chest!"); std::string::assign(&v33, "Follow!"); goto LABEL_9; case 5u: std::string::assign(&v35, "0011"); v9 = GameManager::sharedState(); UGV = GameManager::getUGV(v9, "27"); std::string::assign(&v32, "Discord"); std::string::assign(&v34, "Join Geometry Dash on Discord\nto unlock this chest!"); std::string::assign(&v33, "Join!"); goto LABEL_9; case 6u: std::string::assign(&v35, "0024"); v13 = GameManager::sharedState(); UGV = GameManager::getUGV(v13, "32"); std::string::assign(&v32, "Reddit"); std::string::assign(&v34, "Join Geometry Dash on Reddit\nto unlock this chest!"); std::string::assign(&v33, "Join!"); goto LABEL_9; case 7u: std::string::assign(&v35, "0025"); v14 = GameManager::sharedState(); UGV = GameManager::getUGV(v14, "39"); std::string::assign(&v32, "Spotlight"); std::string::assign( &v34, "Subscribe to Geometry Dash Spotlight on YouTube\nto unlock this chest!"); std::string::assign(&v33, "Sub!"); LABEL_9: if ( UGV ) { v15 = GameStatsManager::sharedState(); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(&v30, v35.__r_.__value_.__l.__data_, v35.__r_.__value_.__l.__size_); } else { data = v35.__r_.__value_.__l.__data_; v6 = *(__m128 *)&v35.__r_.__value_.__l.0; v30 = *(_OWORD *)&v35.__r_.__value_.__l.0; } v20 = GameStatsManager::unlockSpecialChest(v15, (__int64)&v30, v6); if ( (v30 & 1) != 0 ) operator delete(data); if ( v20 ) { v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1072LL))(a2); *(_BYTE *)(v21 + 604) = 0; GJChestSprite::switchToState((_DWORD *)v21, 4, 1, *(double *)v6.i64, a4, a5); v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 488LL))(v21); if ( v22 ) { v23 = *(unsigned int **)(v22 + 56); if ( *v23 ) { v24 = *((_QWORD **)v23 + 2); v25 = (unsigned __int64)&v24[*v23 - 1]; do { v26 = *v24; if ( !*v24 ) break; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v26 + 912LL))(*v24, 150); v37 = -106; v36 = -26986; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v26 + 960LL))(v26, &v36); ++v24; } while ( (unsigned __int64)v24 <= v25 ); } } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 1056LL))(a2, 0); v27 = RewardUnlockLayer::create(*(_DWORD *)(v20 + 64), 0); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v27, 100); RewardUnlockLayer::showCollectReward((__int64)v27, v20); } goto LABEL_32; } if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) { v16 = v32.__r_.__value_.__l.__data_; if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_14; LABEL_17: __p = v34.__r_.__value_.__l.__data_; v28 = *(_OWORD *)&v34.__r_.__value_.__l.0; v17 = a1 + 664; if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_15; goto LABEL_18; } v16 = v32.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_17; LABEL_14: sub_10001AD30(&v28, v34.__r_.__value_.__l.__data_, v34.__r_.__value_.__l.__size_); v17 = a1 + 664; if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_15: v18 = v33.__r_.__value_.__l.__data_; goto LABEL_19; } LABEL_18: v18 = v33.__r_.__value_.__s.__data_; LABEL_19: v19 = (__int64 *)FLAlertLayer::create_1(v17, v16, &v28, "Cancel", v18, 380.0); if ( (v28 & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64 *, _QWORD))(*v19 + 72))(v19, v5); ButtonSprite::updateBGImage(v19[77], (__int64)"GJ_button_02.png"); (*(void (__fastcall **)(__int64 *))(*v19 + 1312))(v19); LABEL_32: if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v33.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_34: if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_35; goto LABEL_40; } } else if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_34; } operator delete(v34.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_35: if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_36; } LABEL_40: operator delete(v32.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) == 0 ) return; LABEL_36: operator delete(v35.__r_.__value_.__l.__data_); return; default: goto LABEL_32; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source