// // GameLevelManager::onAdminGetReportQueueCompleted from 0x140244ba0 to 0x14024555b (2491 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x14021adc5 // > @ 0x14091c2a4 // // 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:38 +0000 // // Hidden C++ exception states: #wind=8 void __fastcall GameLevelManager::onAdminGetReportQueueCompleted(_QWORD *a1, const void **a2, _QWORD *a3) { _QWORD *v5; // r15 _BYTE *v6; // rdx size_t v7; // r8 void *v8; // rcx const void *v9; // rcx unsigned __int64 v10; // rsi size_t v11; // r8 int v12; // ebx __int64 v13; // r8 const void **v14; // rsi const void *v15; // rax char *v16; // rbx __int64 v17; // rax unsigned __int64 v18; // rdi size_t v19; // r8 const void *v20; // rdx __int64 v21; // rdx __int64 v22; // rcx __int64 v23; // r8 __int64 v24; // r9 unsigned __int64 v25; // rdi const void *v26; // rax size_t v27; // rax size_t v28; // r8 const void **v29; // rax cocos2d::CCArray *v30; // rbx __int64 v31; // rcx cocos2d::CCString *v32; // rax cocos2d::CCString *v33; // rax cocos2d::CCString *v34; // rax cocos2d::CCArray *v35; // rdx cocos2d::CCArray *v36; // r13 unsigned int i; // r15d cocos2d::CCString *v38; // rax const char *CString; // rax size_t v40; // r8 cocos2d::CCArray *v41; // rdi void *v42; // rcx char *v43; // rbx cocos2d::CCString *v44; // rax cocos2d::CCString *v45; // rax const char *v46; // rax size_t v47; // r8 void *v48; // rcx cocos2d::CCString *v49; // rax cocos2d::CCString *v50; // rax cocos2d::CCString *v51; // rax cocos2d::CCString *v52; // rax cocos2d::CCString *v53; // rax const char *v54; // rax cocos2d::CCString *v55; // rax char *v56; // rax size_t v57; // r8 cocos2d::CCString *v58; // rax cocos2d::CCString *v59; // rax cocos2d::CCString *v60; // rax const char *v61; // rax size_t v62; // r8 void *v63; // rcx cocos2d::CCString *v64; // rax char *v65; // rax size_t v66; // r8 cocos2d::CCString *v67; // rax cocos2d::CCString *v68; // rax cocos2d::CCString *v69; // rax cocos2d::CCString *v70; // rax cocos2d::CCString *v71; // rax cocos2d::CCString *v72; // rax const char *v73; // rax cocos2d::CCString *v74; // rax cocos2d::CCString *v75; // rax void **v76; // rax __int64 v77; // rcx __int64 v78; // rcx unsigned int v79; // [rsp+30h] [rbp-D0h] __int128 v80; // [rsp+38h] [rbp-C8h] BYREF __int128 v81; // [rsp+48h] [rbp-B8h] int v82; // [rsp+58h] [rbp-A8h] unsigned int v83; // [rsp+5Ch] [rbp-A4h] __int128 *v84; // [rsp+60h] [rbp-A0h] _QWORD *v85; // [rsp+68h] [rbp-98h] cocos2d::CCArray *v86; // [rsp+70h] [rbp-90h] char *v87; // [rsp+78h] [rbp-88h] const void **v88; // [rsp+80h] [rbp-80h] _QWORD *v89; // [rsp+88h] [rbp-78h] void *Block[2]; // [rsp+90h] [rbp-70h] BYREF __int64 v91; // [rsp+A0h] [rbp-60h] unsigned __int64 v92; // [rsp+A8h] [rbp-58h] __int128 v93; // [rsp+B0h] [rbp-50h] BYREF __int128 v94; // [rsp+C0h] [rbp-40h] __int128 v95; // [rsp+D0h] [rbp-30h] BYREF __int64 v96; // [rsp+E0h] [rbp-20h] __int64 v97; // [rsp+E8h] [rbp-18h] __int128 v98; // [rsp+F0h] [rbp-10h] BYREF __int64 v99; // [rsp+100h] [rbp+0h] __int64 v100; // [rsp+108h] [rbp+8h] v5 = a1; v85 = a1; v88 = a2; v89 = a3; v6 = a3; if ( a3[3] > 0xFu ) v6 = (_BYTE *)*a3; *(_OWORD *)Block = 0; v91 = 0; v92 = 0; v7 = -1; do ++v7; while ( v6[v7] ); sub_14003D230(Block, v6, v7); cocos2d::CCDictionary::removeObjectForKey(v5[150], Block); if ( v92 > 0xF ) { v8 = Block[0]; if ( v92 + 1 >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v8); } *(_OWORD *)Block = 0; v91 = 2; v92 = 15; strcpy((char *)Block, "-1"); v9 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v9 = *a2; v10 = (unsigned __int64)a2[2]; v11 = v10; if ( v10 > 2 ) v11 = 2; v12 = memcmp(v9, Block, v11); if ( !v12 ) { if ( v10 >= 2 ) v12 = v10 > 2; else v12 = -1; } if ( !v12 ) goto LABEL_81; v14 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v14 = (const void **)*a2; v15 = a2[2]; if ( !v15 || (v16 = (char *)v14 + (_QWORD)v15, LOBYTE(v13) = 35, v17 = sub_140677120(v14, (char *)v14 + (_QWORD)v15, v13), (char *)v17 == v16) || (v18 = v17 - (_QWORD)v14, v17 - (_QWORD)v14 == -1) ) { LABEL_81: v78 = v5[173]; if ( v78 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v78 + 296LL))(v78); } else { v95 = 0; v96 = 0; v97 = 0; v19 = v17 - (_QWORD)v14; if ( (unsigned __int64)a2[2] < v18 ) v19 = (size_t)a2[2]; v20 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v20 = *a2; sub_14003D230(&v95, v20, v19); v25 = v18 + 1; v98 = 0; v99 = 0; v100 = 0; v26 = a2[2]; if ( (unsigned __int64)v26 < v25 ) sub_14003F4D0(v22, v21, v23, v24); v27 = (size_t)v26 - v25; v28 = -1; if ( v27 != -1 ) v28 = v27; v29 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v29 = (const void **)*a2; sub_14003D230(&v98, (char *)v29 + v25, v28); v79 = 0; v83 = 0; v82 = 20; v30 = sub_1400D2840((__int64 *)&v98, ":"); if ( cocos2d::CCArray::count(v30) >= 3 ) { v32 = cocos2d::CCArray::stringAtIndex(v30, 0); v79 = cocos2d::CCString::intValue(v32); v33 = cocos2d::CCArray::stringAtIndex(v30, 1u); v83 = cocos2d::CCString::intValue(v33); v34 = cocos2d::CCArray::stringAtIndex(v30, 2u); v82 = cocos2d::CCString::intValue(v34); } v35 = (cocos2d::CCArray *)cocos2d::CCArray::create(v31); v86 = v35; if ( v96 ) { v36 = sub_1400D2840((__int64 *)&v95, (unsigned __int8 *)&word_14070D07C); for ( i = 0; i < cocos2d::CCArray::count(v36); ++i ) { v38 = cocos2d::CCArray::stringAtIndex(v36, i); CString = cocos2d::CCString::getCString(v38); *(_OWORD *)Block = 0; v91 = 0; v92 = 0; v40 = -1; do ++v40; while ( CString[v40] ); sub_14003D230(Block, CString, v40); v41 = sub_1400D2840((__int64 *)Block, ":"); if ( v92 > 0xF ) { v42 = Block[0]; if ( v92 + 1 >= 0x1000 ) { v42 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v42 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v42); } v91 = 0; v92 = 15; LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v41) >= 9 ) { v43 = (char *)operator new(0x108u); v87 = v43; cocos2d::CCObject::CCObject((cocos2d::CCObject *)v43); *(_QWORD *)v43 = &AdminReportQueueEntry::`vftable'; *((_DWORD *)v43 + 14) = 0; *((_OWORD *)v43 + 4) = 0; *((_QWORD *)v43 + 10) = 0; *((_QWORD *)v43 + 11) = 15; v43[64] = 0; *((_QWORD *)v43 + 12) = 0; *((_DWORD *)v43 + 26) = 0; *((_DWORD *)v43 + 27) = -1; *((_QWORD *)v43 + 14) = 0; *(_OWORD *)(v43 + 120) = 0; *((_QWORD *)v43 + 17) = 0; *((_QWORD *)v43 + 18) = 15; v43[120] = 0; *((_QWORD *)v43 + 19) = 0; *((_OWORD *)v43 + 10) = 0; *((_QWORD *)v43 + 22) = 0; *((_QWORD *)v43 + 23) = 15; v43[160] = 0; *((_OWORD *)v43 + 12) = 0; *((_QWORD *)v43 + 26) = 0; *((_QWORD *)v43 + 27) = 15; v43[192] = 0; *((_QWORD *)v43 + 28) = 0; *((_QWORD *)v43 + 29) = 0; *((_DWORD *)v43 + 60) = 0; *((_QWORD *)v43 + 31) = 0; *((_QWORD *)v43 + 32) = 0; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v43); v44 = cocos2d::CCArray::stringAtIndex(v41, 0); *((_DWORD *)v43 + 14) = cocos2d::CCString::intValue(v44); v45 = cocos2d::CCArray::stringAtIndex(v41, 1u); v46 = cocos2d::CCString::getCString(v45); v80 = 0; v81 = 0u; v47 = -1; do ++v47; while ( v46[v47] ); sub_14003D230(&v80, v46, v47); v84 = &v80; if ( (_QWORD)v81 ) { cocos2d::ZipUtils::base64URLDecode(&v93, &v80); } else { v93 = v80; v94 = v81; *(_QWORD *)&v81 = 0; *((_QWORD *)&v81 + 1) = 15; LOBYTE(v80) = 0; } sub_14003D310((__int64)&v80); sub_140059C40((__int64)(v43 + 64), (__int64)&v93); if ( *((_QWORD *)&v94 + 1) > 0xFu ) { v48 = (void *)v93; if ( (unsigned __int64)(*((_QWORD *)&v94 + 1) + 1LL) >= 0x1000 ) { v48 = *(void **)(v93 - 8); if ( (unsigned __int64)(v93 - (_QWORD)v48 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v48); } v49 = cocos2d::CCArray::stringAtIndex(v41, 2u); *((_DWORD *)v43 + 24) = cocos2d::CCString::intValue(v49); v50 = cocos2d::CCArray::stringAtIndex(v41, 3u); *((_DWORD *)v43 + 25) = cocos2d::CCString::intValue(v50); v51 = cocos2d::CCArray::stringAtIndex(v41, 4u); *((_DWORD *)v43 + 26) = cocos2d::CCString::intValue(v51); v52 = cocos2d::CCArray::stringAtIndex(v41, 5u); *((_DWORD *)v43 + 27) = cocos2d::CCString::intValue(v52); v53 = cocos2d::CCArray::stringAtIndex(v41, 6u); v54 = cocos2d::CCString::getCString(v53); *((_QWORD *)v43 + 14) = atoll(v54); v55 = cocos2d::CCArray::stringAtIndex(v41, 7u); v56 = (char *)cocos2d::CCString::getCString(v55); v57 = -1; do ++v57; while ( v56[v57] ); sub_1400405A0((void **)v43 + 15, v56, v57); v58 = cocos2d::CCArray::stringAtIndex(v41, 8u); *((_DWORD *)v43 + 38) = cocos2d::CCString::intValue(v58); if ( cocos2d::CCArray::count(v41) >= 0xC ) { v59 = cocos2d::CCArray::stringAtIndex(v41, 9u); *((_DWORD *)v43 + 39) = cocos2d::CCString::intValue(v59); v60 = cocos2d::CCArray::stringAtIndex(v41, 0xAu); v61 = cocos2d::CCString::getCString(v60); v80 = 0; v81 = 0u; v62 = -1; do ++v62; while ( v61[v62] ); sub_14003D230(&v80, v61, v62); v84 = &v80; if ( (_QWORD)v81 ) { cocos2d::ZipUtils::base64URLDecode(&v93, &v80); } else { v93 = v80; v94 = v81; *(_QWORD *)&v81 = 0; *((_QWORD *)&v81 + 1) = 15; LOBYTE(v80) = 0; } sub_14003D310((__int64)&v80); sub_140059C40((__int64)(v43 + 160), (__int64)&v93); if ( *((_QWORD *)&v94 + 1) > 0xFu ) { v63 = (void *)v93; if ( (unsigned __int64)(*((_QWORD *)&v94 + 1) + 1LL) >= 0x1000 ) { v63 = *(void **)(v93 - 8); if ( (unsigned __int64)(v93 - (_QWORD)v63 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v63); } v64 = cocos2d::CCArray::stringAtIndex(v41, 0xBu); v65 = (char *)cocos2d::CCString::getCString(v64); v66 = -1; do ++v66; while ( v65[v66] ); sub_1400405A0((void **)v43 + 24, v65, v66); } if ( cocos2d::CCArray::count(v41) >= 0x12 ) { v67 = cocos2d::CCArray::stringAtIndex(v41, 0xCu); *((_DWORD *)v43 + 56) = cocos2d::CCString::intValue(v67); v68 = cocos2d::CCArray::stringAtIndex(v41, 0xDu); *((_DWORD *)v43 + 57) = cocos2d::CCString::intValue(v68); v69 = cocos2d::CCArray::stringAtIndex(v41, 0xEu); *((_DWORD *)v43 + 58) = cocos2d::CCString::intValue(v69); v70 = cocos2d::CCArray::stringAtIndex(v41, 0xFu); *((_DWORD *)v43 + 59) = cocos2d::CCString::intValue(v70); v71 = cocos2d::CCArray::stringAtIndex(v41, 0x10u); *((_DWORD *)v43 + 60) = cocos2d::CCString::intValue(v71); v72 = cocos2d::CCArray::stringAtIndex(v41, 0x11u); v73 = cocos2d::CCString::getCString(v72); *((_QWORD *)v43 + 31) = atoll(v73); } if ( cocos2d::CCArray::count(v41) >= 0x14 ) { v74 = cocos2d::CCArray::stringAtIndex(v41, 0x12u); *((_DWORD *)v43 + 64) = cocos2d::CCString::intValue(v74); v75 = cocos2d::CCArray::stringAtIndex(v41, 0x13u); *((_DWORD *)v43 + 65) = cocos2d::CCString::intValue(v75); } v76 = (void **)sub_14003F4F0((__int64)&v93, (__int64)(v43 + 64)); GameLevelManager::storeUserName(v85, 0, *((_DWORD *)v43 + 14), v76); cocos2d::CCArray::addObject(v86, (struct cocos2d::CCObject *)v43); } } v35 = v86; v5 = v85; } v77 = v5[173]; if ( v77 ) (*(void (__fastcall **)(__int64, cocos2d::CCArray *, _QWORD, _QWORD, int))(*(_QWORD *)v77 + 288LL))( v77, v35, v79, v83, v82); sub_14003D310((__int64)&v98); sub_14003D310((__int64)&v95); } sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source