// // GameLevelManager::onBanUserCompleted from 0x140234f70 to 0x1402352c3 (851 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x14021a3ab // > @ 0x14091bfa4 // // 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:31 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall GameLevelManager::onBanUserCompleted(__int64 a1, const void **a2, __int64 a3) { const void *v6; // rcx unsigned __int64 v7; // rbx size_t v8; // r8 cocos2d::CCString *v9; // rax const char *CString; // rax size_t v11; // rbx size_t v12; // r8 __int128 *p_Buf2; // rdx void *v14; // rcx cocos2d::CCString *v15; // rax const char *v16; // rax size_t v17; // r8 __int128 *v18; // rdx void *v19; // rcx cocos2d::CCString *v20; // rax const char *v21; // rax size_t v22; // r8 __int128 *v23; // rdx void *v24; // rcx cocos2d::CCString *v25; // rax const char *v26; // rax __int128 *v27; // rdx void *v28; // rcx __int128 Buf2; // [rsp+48h] [rbp-28h] BYREF __int128 v30; // [rsp+58h] [rbp-18h] Buf2 = 0; *(_QWORD *)&v30 = 2; *((_QWORD *)&v30 + 1) = 15; strcpy((char *)&Buf2, "-1"); v6 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v6 = *a2; v7 = (unsigned __int64)a2[2]; v8 = v7; if ( v7 > 2 ) v8 = 2; if ( !memcmp(v6, &Buf2, v8) && v7 == 2 ) goto LABEL_40; v9 = cocos2d::CCString::createWithFormat("lb_%i_%i", 1, 0); CString = cocos2d::CCString::getCString(v9); Buf2 = 0; v30 = 0; v11 = -1; v12 = -1; do ++v12; while ( CString[v12] ); sub_14003D230(&Buf2, CString, v12); p_Buf2 = &Buf2; if ( *((_QWORD *)&v30 + 1) > 0xFu ) p_Buf2 = (__int128 *)Buf2; GameLevelManager::resetTimerForKey(a1, p_Buf2); if ( *((_QWORD *)&v30 + 1) > 0xFu ) { v14 = (void *)Buf2; if ( (unsigned __int64)(*((_QWORD *)&v30 + 1) + 1LL) >= 0x1000 ) { v14 = *(void **)(Buf2 - 8); if ( (unsigned __int64)(Buf2 - (_QWORD)v14 - 8) > 0x1F ) goto LABEL_38; } j_j_free(v14); } v15 = cocos2d::CCString::createWithFormat("lb_%i_%i", 1, 1); v16 = cocos2d::CCString::getCString(v15); Buf2 = 0; v30 = 0; v17 = -1; do ++v17; while ( v16[v17] ); sub_14003D230(&Buf2, v16, v17); v18 = &Buf2; if ( *((_QWORD *)&v30 + 1) > 0xFu ) v18 = (__int128 *)Buf2; GameLevelManager::resetTimerForKey(a1, v18); if ( *((_QWORD *)&v30 + 1) > 0xFu ) { v19 = (void *)Buf2; if ( (unsigned __int64)(*((_QWORD *)&v30 + 1) + 1LL) >= 0x1000 ) { v19 = *(void **)(Buf2 - 8); if ( (unsigned __int64)(Buf2 - (_QWORD)v19 - 8) > 0x1F ) goto LABEL_38; } j_j_free(v19); } v20 = cocos2d::CCString::createWithFormat("lb_%i_%i", 1, 2); v21 = cocos2d::CCString::getCString(v20); Buf2 = 0; v30 = 0; v22 = -1; do ++v22; while ( v21[v22] ); sub_14003D230(&Buf2, v21, v22); v23 = &Buf2; if ( *((_QWORD *)&v30 + 1) > 0xFu ) v23 = (__int128 *)Buf2; GameLevelManager::resetTimerForKey(a1, v23); if ( *((_QWORD *)&v30 + 1) > 0xFu ) { v24 = (void *)Buf2; if ( (unsigned __int64)(*((_QWORD *)&v30 + 1) + 1LL) < 0x1000 || (v24 = *(void **)(Buf2 - 8), (unsigned __int64)(Buf2 - (_QWORD)v24 - 8) <= 0x1F) ) { j_j_free(v24); goto LABEL_31; } LABEL_38: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } LABEL_31: v25 = cocos2d::CCString::createWithFormat("lb_%i_%i", 1, 3); v26 = cocos2d::CCString::getCString(v25); Buf2 = 0; v30 = 0; do ++v11; while ( v26[v11] ); sub_14003D230(&Buf2, v26, v11); v27 = &Buf2; if ( *((_QWORD *)&v30 + 1) > 0xFu ) v27 = (__int128 *)Buf2; GameLevelManager::resetTimerForKey(a1, v27); if ( *((_QWORD *)&v30 + 1) > 0xFu ) { v28 = (void *)Buf2; if ( (unsigned __int64)(*((_QWORD *)&v30 + 1) + 1LL) >= 0x1000 ) { v28 = *(void **)(Buf2 - 8); if ( (unsigned __int64)(Buf2 - (_QWORD)v28 - 8) > 0x1F ) goto LABEL_38; } j_j_free(v28); } LABEL_40: sub_14003D310((__int64)a2); sub_14003D310(a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source