// // sub_100488950 from 0x100488950 to 0x100488b26 (470 bytes) // // 1 xrefs: // > LevelBrowserLayer::cellPerformedAction @ 0x10048869a // // 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:43 +0000 // void __fastcall sub_100488950(__int64 a1, __int64 a2, __m128 a3, double a4, double a5, __m128 a6) { _DWORD *v6; // r14 _QWORD *v7; // rax __int64 v8; // rax __int64 v9; // r14 char *v10; // r15 __int64 v11; // rax __int64 v12; // rax double v13; // xmm0_8 __int64 v14; // rax __int64 v15; // rax __int64 v16; // rax _QWORD v17[2]; // [rsp+8h] [rbp-38h] BYREF void *__p; // [rsp+18h] [rbp-28h] int v19; // [rsp+24h] [rbp-1Ch] v6 = LevelCell::recallLevel(a2); v7 = (_QWORD *)GameStatsManager::sharedState(); v8 = GameStatsManager::completedDailyLevel(v7, v6, a3); if ( v8 ) { v9 = v8; v10 = RewardUnlockLayer::create(*(_DWORD *)(v8 + 64), 0); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v10, 100); RewardUnlockLayer::showCollectReward((__int64)v10, v9); v11 = *(_QWORD *)(a1 + 608); if ( v11 ) goto LABEL_3; goto LABEL_8; } if ( v6[230] - v6[231] < 200001 || (v14 = GameStatsManager::sharedState(), GameStatsManager::hasCompletedDailyLevel(v14, v6[230] - v6[231])) ) { v11 = *(_QWORD *)(a1 + 608); if ( v11 ) { LABEL_3: v12 = *(_QWORD *)(v11 + 544); v19 = *(_DWORD *)(a1 + 776); if ( v12 ) { *(_QWORD *)&v13 = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(v12 + 424) + 488LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(v12 + 424) + 488LL)) + 4); LABEL_10: *(_DWORD *)(a1 + 776) = LODWORD(v13); LevelBrowserLayer::loadPage(a1, *(_QWORD *)(a1 + 664), v13, a4, a5, a6); *(_DWORD *)(a1 + 776) = v19; return; } LABEL_9: v13 = 0.0; goto LABEL_10; } LABEL_8: v19 = *(_DWORD *)(a1 + 776); goto LABEL_9; } v15 = GameLevelManager::sharedState(*(double *)a3.i64); GameLevelManager::downloadLevel(v15, (unsigned int)(v6[82] - v6[83]), 0, (unsigned int)(v6[230] - v6[231])); __p = operator new(0x30u); v17[0] = 49; v17[1] = 45; strcpy((char *)__p, "Fetching the chest, tap it again in a moment."); v16 = FLAlertLayer::create_1(0, "Chest", v17, "OK", 0, 300.0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 1312LL))(v16); if ( (v17[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source