// // SecretLayer5::onlineRewardStatusFinished from 0xa928e0 to 0xa92ac4 (484 bytes) // // 3 xrefs: // > `non-virtual thunk to'SecretLayer5::onlineRewardStatusFinished @ 0xa92ac8 // > @ 0x7d598 // > @ 0x11f3808 // // 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 // __int64 __fastcall SecretLayer5::onlineRewardStatusFinished(SecretLayer5 *a1, __int64 a2) { GameStatsManager *v4; // x21 __int64 RewardForSpecialChest; // x24 char *v6; // x0 GameStatsManager *v7; // x24 int isSpecialChestUnlocked; // w24 char *v9; // x0 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x20 int v14; // w1 std::string v15; // [xsp+50h] [xbp+50h] BYREF v4 = GameStatsManager::sharedState(); sub_D18D28(&v15); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest((__int64)v4, &v15); v6 = (char *)v15.m_data.m_data - 24; if ( (__int64 *)v15.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)((char *)v15.m_data.m_data - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v15.m_data.m_data - 2); *((_DWORD *)v15.m_data.m_data - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v6); } if ( !RewardForSpecialChest ) goto LABEL_8; v7 = GameStatsManager::sharedState(); sub_D18D28(&v15); isSpecialChestUnlocked = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v7, (char **)&v15); v9 = (char *)v15.m_data.m_data - 24; if ( (__int64 *)v15.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)((char *)v15.m_data.m_data - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v15.m_data.m_data - 2); *((_DWORD *)v15.m_data.m_data - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v9); } if ( isSpecialChestUnlocked ) { LABEL_8: a1->onlineRewardStatusFailed(a1); } else { a1->m_rewardStatus = 1; sub_D18EA8(&a1->m_chestID, a2); if ( !a1->m_loading ) SecretLayer5::handleSecretResponse(a1); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source