// // GameLevelManager::onGetGJDailyLevelStateCompleted from 0x1402602d0 to 0x140260817 (1351 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x14021a50d // > @ 0x14091c7b4 // // 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 11:28:47 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall GameLevelManager::onGetGJDailyLevelStateCompleted(__int64 a1, __int64 *a2, _QWORD *a3) { _BYTE *v6; // rdx const void *v7; // rcx unsigned __int64 v8; // r15 size_t v9; // r8 int v10; // ebx unsigned int v11; // esi int v12; // ebx const void *v13; // rcx unsigned __int64 v14; // rbx size_t v15; // r8 __int64 v16; // rcx const void *v17; // rcx unsigned __int64 v18; // r13 size_t v19; // r8 int v20; // ebx __int64 v21; // rcx cocos2d::CCArray *v22; // r15 unsigned int v23; // eax bool v24; // cf cocos2d::CCString *v25; // rax signed int v26; // ebx cocos2d::CCString *v27; // rax int v28; // r13d cocos2d::CCString *v29; // rax const char *CString; // rax size_t v31; // r8 cocos2d::CCString *v32; // rax const char *v33; // rax size_t v34; // r8 __int64 v35; // rcx __int64 v36; // r15 __int64 v37; // rcx __int64 v38; // rcx void (__fastcall ***v39)(_QWORD, _QWORD); // rcx __int128 v40; // [rsp+30h] [rbp-59h] BYREF __int64 v41; // [rsp+40h] [rbp-49h] __int64 v42; // [rsp+48h] [rbp-41h] __int128 v43; // [rsp+50h] [rbp-39h] BYREF __int64 v44; // [rsp+60h] [rbp-29h] __int64 v45; // [rsp+68h] [rbp-21h] __int128 *v46; // [rsp+70h] [rbp-19h] __int64 *v47; // [rsp+78h] [rbp-11h] _QWORD *v48; // [rsp+80h] [rbp-9h] struct __timeb64 Buf2; // [rsp+88h] [rbp-1h] BYREF __int64 v50; // [rsp+98h] [rbp+Fh] __int64 v51; // [rsp+A0h] [rbp+17h] v47 = a2; v48 = a3; v6 = a3; if ( a3[3] > 0xFu ) v6 = (_BYTE *)*a3; GameLevelManager::removeDLFromActive(a1, v6); v50 = 12; v51 = 15; strcpy((char *)&Buf2, "weekly_state"); HIBYTE(Buf2.dstflag) = 0; *(&Buf2.dstflag + 1) = 0; v7 = a3; if ( a3[3] > 0xFu ) v7 = (const void *)*a3; v8 = a3[2]; v9 = v8; if ( v8 > 0xC ) v9 = 12; v10 = memcmp(v7, &Buf2, v9); if ( !v10 ) { if ( v8 >= 0xC ) v10 = v8 > 0xC; else v10 = -1; } if ( v10 ) { v50 = 11; v51 = 15; Buf2.time = 0x74735F746E657665LL; *(_QWORD *)&Buf2.millitm = 6648929; v12 = sub_14003D160(a3, &Buf2); sub_14003D310((__int64)&Buf2); v11 = 0; if ( !v12 ) v11 = 2; } else { v11 = 1; } Buf2 = 0; v50 = 2; v51 = 15; strcpy((char *)&Buf2, "-1"); v13 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v13 = (const void *)*a2; v14 = a2[2]; v15 = v14; if ( v14 > 2 ) v15 = 2; if ( !memcmp(v13, &Buf2, v15) && v14 == 2 ) { sub_14003D310((__int64)&Buf2); LABEL_22: v16 = *(_QWORD *)(a1 + 1560); if ( v16 ) (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v16 + 8LL))(v16, v11, 0xFFFFFFFFLL); goto LABEL_65; } sub_14003D310((__int64)&Buf2); Buf2 = 0; v50 = 2; v51 = 15; strcpy((char *)&Buf2, "-2"); v17 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v17 = (const void *)*a2; v18 = a2[2]; v19 = v18; if ( v18 > 2 ) v19 = 2; v20 = memcmp(v17, &Buf2, v19); if ( !v20 ) { if ( v18 >= 2 ) v20 = v18 > 2; else v20 = -1; } if ( !v20 ) { v21 = *(_QWORD *)(a1 + 1560); if ( v21 ) (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v21 + 8LL))(v21, v11, 3); goto LABEL_65; } v22 = sub_1400D2840(a2, (unsigned __int8 *)&word_14070D07C); v23 = cocos2d::CCArray::count(v22); if ( v11 == 2 ) v24 = v23 < 4; else v24 = v23 < 2; if ( v24 ) goto LABEL_22; v25 = cocos2d::CCArray::stringAtIndex(v22, 0); v26 = cocos2d::CCString::intValue(v25); v27 = cocos2d::CCArray::stringAtIndex(v22, 1u); v28 = cocos2d::CCString::intValue(v27); if ( v11 ) { if ( v11 == 1 ) { ftime64(&Buf2); *(_DWORD *)(a1 + 964) = (int)((double)Buf2.millitm / 1000.0 + (double)SLODWORD(Buf2.time) + (double)v28); *(_DWORD *)(a1 + 968) = v26; if ( v26 > *(_DWORD *)(a1 + 992) ) *(_DWORD *)(a1 + 992) = v26; if ( v26 > *(_DWORD *)(a1 + 1016) ) *(_DWORD *)(a1 + 1016) = v26; } else { ftime64(&Buf2); *(_DWORD *)(a1 + 976) = (int)((double)Buf2.millitm / 1000.0 + (double)SLODWORD(Buf2.time) + (double)v28); *(_DWORD *)(a1 + 980) = v26; if ( v26 > *(_DWORD *)(a1 + 996) ) *(_DWORD *)(a1 + 996) = v26; if ( v26 > *(_DWORD *)(a1 + 1020) ) *(_DWORD *)(a1 + 1020) = v26; v46 = &v40; v29 = cocos2d::CCArray::stringAtIndex(v22, 3u); CString = cocos2d::CCString::getCString(v29); v40 = 0; v41 = 0; v42 = 0; v31 = -1; do ++v31; while ( CString[v31] ); sub_14003D230(&v40, CString, v31); v32 = cocos2d::CCArray::stringAtIndex(v22, 2u); v33 = cocos2d::CCString::getCString(v32); v43 = 0; v44 = 0; v45 = 0; v34 = -1; do ++v34; while ( v33[v34] ); sub_14003D230(&v43, v33, v34); v36 = GameLevelManager::parseEventReward(v35, &v43, (const void **)&v40); if ( !v36 ) { v37 = *(_QWORD *)(a1 + 1560); if ( v37 ) (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v37 + 8LL))(v37, 2, 0xFFFFFFFFLL); goto LABEL_65; } v38 = qword_14090BFE0; if ( !qword_14090BFE0 ) { Buf2.time = (__time64_t)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(Buf2.time); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v38 = qword_14090BFE0; } GameStatsManager::storeEventChest(v38, (unsigned int)v26, v36); } } else { ftime64(&Buf2); *(_DWORD *)(a1 + 952) = (int)((double)Buf2.millitm / 1000.0 + (double)SLODWORD(Buf2.time) + (double)v28); *(_DWORD *)(a1 + 956) = v26; if ( v26 > *(_DWORD *)(a1 + 988) ) *(_DWORD *)(a1 + 988) = v26; if ( v26 > *(_DWORD *)(a1 + 1012) ) *(_DWORD *)(a1 + 1012) = v26; } v39 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 1560); if ( v39 ) (**v39)(v39, v11); LABEL_65: sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source