// // sub_CEE964 from 0xcee964 to 0xceedac (1096 bytes) // // 37 xrefs: // > compareStrings @ 0x78be00 // > compareStrings @ 0x78be4c // > compareStrings @ 0x78be68 // > compareStrings @ 0x78beb4 // > compareStrings @ 0x78bef0 // > compareStrings @ 0x78bf00 // > compareStrings @ 0x78bf34 // > compareStrings @ 0x78bf68 // > compareStrings @ 0x78bf74 // > compareStrings @ 0x78bfd8 // > compareStrings @ 0x78c04c // > compareStrings @ 0x78c06c // > cocos2d::ZipUtils::urlDecode @ 0xb29b50 // > cocos2d::ZipUtils::urlDecode @ 0xb29bac // > DS_Dictionary::setVec2ForKey @ 0xb43fa4 // > DS_Dictionary::setVec2ForKey @ 0xb43fc8 // > DS_Dictionary::setVec2ForKey @ 0xb43ff0 // > DS_Dictionary::setRectForKey @ 0xb4465c // > DS_Dictionary::setRectForKey @ 0xb4467c // > DS_Dictionary::setRectForKey @ 0xb446a0 // > DS_Dictionary::setRectForKey @ 0xb446c0 // > DS_Dictionary::setRectForKey @ 0xb446e8 // > DS_Dictionary::setVec2ArrayForKey @ 0xb45104 // > DS_Dictionary::setVec2ArrayForKey @ 0xb45130 // > DS_Dictionary::setVec2ArrayForKey @ 0xb45160 // > DS_Dictionary::setRectArrayForKey @ 0xb458e4 // > DS_Dictionary::setRectArrayForKey @ 0xb45914 // > DS_Dictionary::setRectArrayForKey @ 0xb45940 // > DS_Dictionary::setRectArrayForKey @ 0xb4596c // > DS_Dictionary::setRectArrayForKey @ 0xb45998 // > sub_CEC6B8 @ 0xcec6c0 // > sub_CEEDAC @ 0xceedc4 // > sub_CEEDD0 @ 0xceede8 // > sub_CEEDF4 @ 0xceee0c // > sub_CEEE18 @ 0xceee44 // > sub_CEEE84 @ 0xceeeb0 // > sub_CEEEF0 @ 0xceef1c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 *__fastcall sub_CEE964(__int64 *a1, __int64 a2, __int64 a3) { char *v6; // x20 __int64 v7; // x25 __int64 v8; // x2 char *v9; // x0 __int64 v10; // x1 _BOOL4 v11; // w26 char *v12; // x20 __int64 v13; // x0 bool v15; // zf __int64 v16; // x0 __int64 v17; // x1 __int64 v18; // x2 char *v19; // x20 __int64 v20; // x22 unsigned int v21; // w24 __int64 v22; // x0 _QWORD *v23; // x0 _BYTE *v24; // x1 __int64 v25; // x21 unsigned int v26; // w22 _QWORD *v27; // x0 _BYTE *v28; // x1 _BYTE *v29; // x24 _BYTE *v30; // x22 _BYTE v31[8]; // [xsp+70h] [xbp+70h] BYREF _QWORD *v32; // [xsp+78h] [xbp+78h] sub_CEE150((__int64)v31, a1); if ( v31[0] ) { v6 = (char *)a1 + *(_QWORD *)(*a1 - 24); v7 = *((_QWORD *)v6 + 2); if ( v7 <= a3 ) { v15 = a3 == (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)v6 + 29) + 96LL))( *((_QWORD *)v6 + 29), a2, a3); v16 = *a1; if ( !v15 ) goto LABEL_13; goto LABEL_15; } v8 = *((unsigned int *)v6 + 6); v9 = (char *)a1 + *(_QWORD *)(*a1 - 24); v10 = (unsigned __int8)v8 & 0xB0; v11 = v10 == 32; if ( (_DWORD)v10 != 32 ) { v20 = v7 - a3; if ( v6[225] ) { v21 = (unsigned __int8)v6[224]; v9 = (char *)a1 + *(_QWORD *)(*a1 - 24); } else { v29 = *((_BYTE **)v6 + 30); if ( !v29 ) sub_D13870((unsigned __int8)v6[225], v10, v8); if ( v29[56] ) { v21 = (unsigned __int8)v29[89]; } else { sub_D204B0(*((_QWORD *)v6 + 30)); v21 = (*(unsigned __int8 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v29 + 48LL))(v29, 32); } v6[224] = v21; v6[225] = 1; v6 = (char *)a1 + *(_QWORD *)(*a1 - 24); v9 = v6; } if ( v20 > 0 ) { while ( 1 ) { v23 = *((_QWORD **)v6 + 29); v24 = (_BYTE *)v23[5]; if ( (unsigned __int64)v24 < v23[6] ) { *v24 = v21; ++v23[5]; } else if ( (*(unsigned int (__fastcall **)(_QWORD *, _QWORD))(*v23 + 104LL))(v23, v21) == -1 ) { sub_CCE830((__int64)a1 + *(_QWORD *)(*a1 - 24), *(_DWORD *)((char *)a1 + *(_QWORD *)(*a1 - 24) + 32) | 1); v9 = (char *)a1 + *(_QWORD *)(*a1 - 24); goto LABEL_4; } --v20; v22 = *a1; if ( !v20 ) break; v6 = (char *)a1 + *(_QWORD *)(v22 - 24); } v9 = (char *)a1 + *(_QWORD *)(v22 - 24); } } LABEL_4: if ( *((_DWORD *)v9 + 8) ) goto LABEL_5; if ( a3 != (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)v9 + 29) + 96LL))( *((_QWORD *)v9 + 29), a2, a3) ) sub_CCE830((__int64)a1 + *(_QWORD *)(*a1 - 24), *(_DWORD *)((char *)a1 + *(_QWORD *)(*a1 - 24) + 32) | 1); if ( !v11 ) goto LABEL_14; v19 = (char *)a1 + *(_QWORD *)(*a1 - 24); if ( *((_DWORD *)v19 + 8) ) { v9 = (char *)a1 + *(_QWORD *)(*a1 - 24); goto LABEL_5; } v25 = v7 - a3; if ( v19[225] ) { v26 = (unsigned __int8)v19[224]; v9 = (char *)a1 + *(_QWORD *)(*a1 - 24); } else { v30 = *((_BYTE **)v19 + 30); if ( !v30 ) sub_D13870((unsigned __int8)v19[225], v17, v18); if ( v30[56] ) { v26 = (unsigned __int8)v30[89]; } else { sub_D204B0(*((_QWORD *)v19 + 30)); v26 = (*(unsigned __int8 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v30 + 48LL))(v30, 32); } v19[224] = v26; v19[225] = 1; v19 = (char *)a1 + *(_QWORD *)(*a1 - 24); v9 = v19; } if ( v25 > 0 ) { while ( 1 ) { v27 = *((_QWORD **)v19 + 29); v28 = (_BYTE *)v27[5]; if ( (unsigned __int64)v28 < v27[6] ) { *v28 = v26; ++v27[5]; } else if ( (*(unsigned int (__fastcall **)(_QWORD *, _QWORD))(*v27 + 104LL))(v27, v26) == -1 ) { v16 = *a1; LABEL_13: sub_CCE830((__int64)a1 + *(_QWORD *)(v16 - 24), *(_DWORD *)((char *)a1 + *(_QWORD *)(v16 - 24) + 32) | 1); LABEL_14: v16 = *a1; LABEL_15: v9 = (char *)a1 + *(_QWORD *)(v16 - 24); break; } --v25; v16 = *a1; if ( !v25 ) goto LABEL_15; v19 = (char *)a1 + *(_QWORD *)(v16 - 24); } } LABEL_5: *((_QWORD *)v9 + 2) = 0; } v12 = (char *)v32 + *(_QWORD *)(*v32 - 24LL); if ( (*((_DWORD *)v12 + 6) & 0x2000) == 0 ) return a1; if ( std::uncaught_exception() ) return a1; v13 = *((_QWORD *)v12 + 29); if ( !v13 || (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v13 + 48LL))(v13) != -1 ) return a1; sub_CCE830((__int64)v32 + *(_QWORD *)(*v32 - 24LL), *(_DWORD *)((char *)v32 + *(_QWORD *)(*v32 - 24LL) + 32) | 1); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source