// // GameManager::applicationWillEnterForeground from 0x10038bb80 to 0x10038bef7 (887 bytes) // // 2 xrefs: // > AppDelegate::applicationWillBecomeActive @ 0x10065c26d // > AppDelegate::applicationWillEnterForeground @ 0x10065c540 // // 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 // void __fastcall GameManager::applicationWillEnterForeground(GameManager *a1) { double m_socialsDuration; // xmm0_8 double v3; // xmm1_8 GameManager *v4; // rdi void *v5; // r14 GameManager *v6; // rdi void *v7; // r14 GameManager *v8; // rdi void *v9; // r14 GameManager *v10; // rdi void *v11; // r14 GameManager *v12; // rdi void *v13; // r14 GameManager *v14; // rdi void *v15; // r14 GameManager *v16; // rdi void *v17; // r14 GameManager *v18; // rdi void *v19; // r14 GameManager *v20; // rdi void *v21; // r14 GameRateDelegate *m_gameRateDelegate1; // rdi GameRateDelegate *m_gameRateDelegate2; // rdi timeb v24; // [rsp+0h] [rbp-20h] BYREF ftime(&v24); m_socialsDuration = a1->m_socialsDuration; if ( m_socialsDuration == 0.0 || (v3 = (double)(v24.millitm + 1000 * (v24.time & 0xFFFFF)) / 1000.0 - m_socialsDuration, v3 >= 4.0) || v3 <= 0.0 ) { if ( a1->m_clickedFacebook ) { v4 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v5 = operator new(0x638u); sub_10038CE40(v5); qword_1009A0E18 = (__int64)v5; (*(void (__fastcall **)(void *))(*(_QWORD *)v5 + 80LL))(v5); v4 = (GameManager *)qword_1009A0E18; } GameManager::setUGV(v4, "23", 1); v6 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v7 = operator new(0x638u); sub_10038CE40(v7); qword_1009A0E18 = (__int64)v7; (*(void (__fastcall **)(void *))(*(_QWORD *)v7 + 80LL))(v7); v6 = (GameManager *)qword_1009A0E18; } GameManager::reportAchievementWithID(v6, "geometry.ach.facebook", 100, 0); } if ( a1->m_clickedYouTube ) { v8 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v9 = operator new(0x638u); sub_10038CE40(v9); qword_1009A0E18 = (__int64)v9; (*(void (__fastcall **)(void *))(*(_QWORD *)v9 + 80LL))(v9); v8 = (GameManager *)qword_1009A0E18; } GameManager::setUGV(v8, "22", 1); v10 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v11 = operator new(0x638u); sub_10038CE40(v11); qword_1009A0E18 = (__int64)v11; (*(void (__fastcall **)(void *))(*(_QWORD *)v11 + 80LL))(v11); v10 = (GameManager *)qword_1009A0E18; } GameManager::reportAchievementWithID(v10, "geometry.ach.youtube", 100, 0); } if ( a1->m_clickedTwitter ) { v12 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v13 = operator new(0x638u); sub_10038CE40(v13); qword_1009A0E18 = (__int64)v13; (*(void (__fastcall **)(void *))(*(_QWORD *)v13 + 80LL))(v13); v12 = (GameManager *)qword_1009A0E18; } GameManager::setUGV(v12, "24", 1); v14 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v15 = operator new(0x638u); sub_10038CE40(v15); qword_1009A0E18 = (__int64)v15; (*(void (__fastcall **)(void *))(*(_QWORD *)v15 + 80LL))(v15); v14 = (GameManager *)qword_1009A0E18; } GameManager::reportAchievementWithID(v14, "geometry.ach.twitter", 100, 0); } if ( a1->m_clickedTwitch ) { v16 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v17 = operator new(0x638u); sub_10038CE40(v17); qword_1009A0E18 = (__int64)v17; (*(void (__fastcall **)(void *))(*(_QWORD *)v17 + 80LL))(v17); v16 = (GameManager *)qword_1009A0E18; } GameManager::setUGV(v16, "26", 1); } if ( a1->m_clickedDiscord ) { v18 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v19 = operator new(0x638u); sub_10038CE40(v19); qword_1009A0E18 = (__int64)v19; (*(void (__fastcall **)(void *))(*(_QWORD *)v19 + 80LL))(v19); v18 = (GameManager *)qword_1009A0E18; } GameManager::setUGV(v18, "27", 1); } if ( a1->m_clickedReddit ) { v20 = (GameManager *)qword_1009A0E18; if ( !qword_1009A0E18 ) { v21 = operator new(0x638u); sub_10038CE40(v21); qword_1009A0E18 = (__int64)v21; (*(void (__fastcall **)(void *))(*(_QWORD *)v21 + 80LL))(v21); v20 = (GameManager *)qword_1009A0E18; } GameManager::setUGV(v20, "32", 1); } m_gameRateDelegate1 = a1->m_gameRateDelegate1; if ( m_gameRateDelegate1 ) ((void (__fastcall *)(GameRateDelegate *))m_gameRateDelegate1->updateRate)(m_gameRateDelegate1); m_gameRateDelegate2 = a1->m_gameRateDelegate2; if ( m_gameRateDelegate2 ) ((void (__fastcall *)(GameRateDelegate *))m_gameRateDelegate2->updateRate)(m_gameRateDelegate2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source