// // GameManager::applicationWillEnterForeground from 0x140189c50 to 0x140189fa4 (852 bytes) // // 3 xrefs: // > AppDelegate::applicationWillBecomeActive @ 0x140082dd3 // > AppDelegate::applicationWillEnterForeground @ 0x140082f95 // > @ 0x1406cb6a0 // // 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 // // Hidden C++ exception states: #wind=9 void GameManager::applicationWillEnterForeground(GameManager *a1) { double m_socialsDuration; // xmm6_8 double v3; // xmm0_8 GameManager *v4; // rcx bool v5; // r9 GameManager *v6; // rcx GameManager *v7; // rcx bool v8; // r9 GameManager *v9; // rcx GameManager *v10; // rcx bool v11; // r9 GameManager *v12; // rcx GameManager *v13; // rcx GameManager *v14; // rcx GameManager *v15; // rcx GameRateDelegate *m_gameRateDelegate1; // rcx GameRateDelegate *m_gameRateDelegate2; // rcx void *v18; // [rsp+40h] [rbp+8h] void *v19; // [rsp+40h] [rbp+8h] void *v20; // [rsp+40h] [rbp+8h] void *v21; // [rsp+40h] [rbp+8h] void *v22; // [rsp+40h] [rbp+8h] void *v23; // [rsp+40h] [rbp+8h] void *v24; // [rsp+40h] [rbp+8h] void *v25; // [rsp+40h] [rbp+8h] void *v26; // [rsp+40h] [rbp+8h] m_socialsDuration = a1->m_socialsDuration; v3 = sub_14003CF30() - m_socialsDuration; if ( m_socialsDuration == 0.0 || v3 >= 4.0 || v3 <= 0.0 ) { if ( a1->m_clickedFacebook ) { v4 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v18 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v4 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v4, (const char *)&word_14054444C, 1); v6 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v19 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v6 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v6, "geometry.ach.facebook", 100, v5); } if ( a1->m_clickedYouTube ) { v7 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v20 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v7 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v7, "22", 1); v9 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v21 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v9 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v9, "geometry.ach.youtube", 100, v8); } if ( a1->m_clickedTwitter ) { v10 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v22 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v22); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v10 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v10, "24", 1); v12 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v23 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v12 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v12, "geometry.ach.twitter", 100, v11); } if ( a1->m_clickedTwitch ) { v13 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v24 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v24); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v13 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v13, "26", 1); } if ( a1->m_clickedDiscord ) { v14 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v25 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v25); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v14 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v14, "27", 1); } if ( a1->m_clickedReddit ) { v15 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v26 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v26); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v15 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v15, (const char *)&word_1405579D4, 1); } m_gameRateDelegate1 = a1->m_gameRateDelegate1; if ( m_gameRateDelegate1 ) m_gameRateDelegate1->updateRate(m_gameRateDelegate1); m_gameRateDelegate2 = a1->m_gameRateDelegate2; if ( m_gameRateDelegate2 ) m_gameRateDelegate2->updateRate(m_gameRateDelegate2); } }