// // sub_7FB8CC from 0x7fb8cc to 0x7fba98 (460 bytes) // // 1 xrefs: // > cocos2d::ZipFile::setFilter @ 0x7fbaa6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:01:15 +0000 // int __fastcall sub_7FB8CC(unsigned __int8 *a1, _DWORD *a2) { int i; // r11 size_t v5; // r0 int v6; // r3 size_t v7; // r3 int *v8; // r0 _DWORD *v9; // r9 int v10; // r3 int v11; // r0 size_t v12; // r2 int v13; // r1 int v14; // r3 char *v15; // r3 unsigned __int8 *v16; // r1 char *v17; // r3 unsigned __int8 *v18; // r2 int v19; // r0 _BOOL4 v20; // r2 int v21; // t1 int *v22; // r0 int v23; // r1 int v24; // r1 int *v26; // [sp+0h] [bp-A8h] int v27; // [sp+Ch] [bp-9Ch] int v28; // [sp+14h] [bp-94h] _BOOL4 v29; // [sp+14h] [bp-94h] int *v30; // [sp+1Ch] [bp-8Ch] int *v31; // [sp+20h] [bp-88h] BYREF _DWORD v32[2]; // [sp+24h] [bp-84h] BYREF int v33[3]; // [sp+2Ch] [bp-7Ch] BYREF int v34; // [sp+38h] [bp-70h] int v35; // [sp+3Ch] [bp-6Ch] int v36; // [sp+40h] [bp-68h] int v37[3]; // [sp+44h] [bp-64h] BYREF _BYTE v38[32]; // [sp+50h] [bp-58h] BYREF int v39; // [sp+70h] [bp-38h] char v40[260]; // [sp+A8h] [bp+0h] BYREF v27 = (int)(a2 + 1); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (int)(a2 + 1), (_DWORD *)a2[2]); a2[3] = 0; a2[1] = a2 + 2; a2[2] = 0; for ( i = cocos2d::unzGoToFirstFile64(*a2, v38, v40, 256); !i; i = cocos2d::unzGoToNextFile64(*a2, v38, v40, 256, v26) ) { if ( cocos2d::unzGetFilePos(*a2, v32) ) continue; memset(v33, 0, sizeof(v33)); v5 = strlen(v40); std::string::__init(v33, v40, v5); v6 = *a1; if ( (v6 & 1) != 0 ) { v7 = *((_DWORD *)a1 + 1); if ( v7 ) goto LABEL_9; } else { v7 = v6 >> 1; if ( v7 ) { LABEL_9: v26 = v33; std::string::basic_string(v37, (unsigned __int8 *)v33, 0, v7); v10 = *a1; v11 = v37[0] & 1; if ( v11 ) v12 = v37[1]; else v12 = (int)LOBYTE(v37[0]) >> 1; v13 = v10 & 1; if ( (v10 & 1) != 0 ) v14 = *((_DWORD *)a1 + 1); else v14 = v10 >> 1; if ( v12 == v14 ) { if ( v11 ) v15 = (char *)v37[2]; else v15 = (char *)v37 + 1; if ( v13 ) v16 = *((unsigned __int8 **)a1 + 2); else v16 = a1 + 1; if ( v11 ) { if ( v12 ) v19 = memcmp(v15, v16, v12); else v19 = 0; v20 = v19 == 0; } else { v17 = v15 - 1; v18 = &v16[v12]; while ( v16 != v18 ) { v21 = (unsigned __int8)*++v17; if ( v21 != *v16 ) goto LABEL_41; ++v16; } v20 = 1; } } else { LABEL_41: v20 = 0; } v29 = v20; std::string::~string((int)v37); if ( !v29 ) goto LABEL_38; } } v34 = v32[0]; v35 = v32[1]; v28 = v39; v8 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__find_equal( v27, &v31, (unsigned __int8 *)v33); v9 = (_DWORD *)*v8; if ( !*v8 ) { v30 = v8; v9 = (_DWORD *)operator new(0x28u); std::string::basic_string(v9 + 4, (int)v33); v22 = v31; v9[7] = 0; v9[8] = 0; v9[9] = 0; *v9 = 0; v9[1] = 0; v9[2] = v22; *v30 = (int)v9; v23 = *(_DWORD *)a2[1]; if ( v23 ) a2[1] = v23; std::__tree_balance_after_insert *>((_DWORD *)a2[2], (_DWORD *)*v30); ++a2[3]; } v36 = v28; v24 = v35; v9[7] = v34; v9[8] = v24; v9[9] = v28; LABEL_38: std::string::~string((int)v33); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source