// // SecretLayer5::onlineRewardStatusFinished from 0x6e508c to 0x6e5142 (182 bytes) // // 1 xrefs: // > `non-virtual thunk to'SecretLayer5::onlineRewardStatusFinished @ 0x6e514c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:57:23 +0000 // _DWORD *__fastcall SecretLayer5::onlineRewardStatusFinished(int a1, unsigned __int8 *a2, int a3, int a4) { int v6; // r8 int RewardForSpecialChest; // r8 GameStatsManager *v8; // r0 int v9; // r8 int isSpecialChestUnlocked; // r8 _DWORD *result; // r0 int v12; // r2 const void *v13; // r1 size_t v14; // r2 int v15[4]; // [sp+0h] [bp-10h] BYREF v15[0] = a1; v15[1] = (int)a2; v15[2] = a3; v15[3] = a4; v6 = GameStatsManager::sharedState((GameStatsManager *)a1); std::string::basic_string(v15, (int)a2); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v6, (int)v15); v8 = (GameStatsManager *)std::string::~string((int)v15); if ( !RewardForSpecialChest ) return (_DWORD *)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 600))(a1); v9 = GameStatsManager::sharedState(v8); std::string::basic_string(v15, (int)a2); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v9, (int)v15); std::string::~string((int)v15); if ( isSpecialChestUnlocked ) return (_DWORD *)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 600))(a1); result = (_DWORD *)(a1 + 388); *(_DWORD *)(a1 + 384) = 1; if ( (unsigned __int8 *)(a1 + 388) != a2 ) { v12 = *a2; if ( (v12 & 1) != 0 ) { v13 = *((const void **)a2 + 2); v14 = *((_DWORD *)a2 + 1); } else { v13 = a2 + 1; v14 = v12 >> 1; } result = std::string::assign(result, v13, v14); } if ( !*(_BYTE *)(a1 + 380) ) return (_DWORD *)SecretLayer5::handleSecretResponse((LoadingCircleSprite **)a1); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source