// // cocos2d::CCFileUtils::removeSearchPath from 0x7e97d4 to 0x7e999c (456 bytes) // // 0 xrefs: // // 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:00:57 +0000 // int __fastcall cocos2d::CCFileUtils::removeSearchPath(cocos2d::CCFileUtils *this, const char *a2) { size_t v4; // r0 int v5; // r0 int v6; // r1 char *v7; // r2 int v8; // r3 int v9; // r3 char *v10; // r2 unsigned __int8 *v11; // r4 unsigned __int8 *v12; // r10 int v13; // r9 int v14; // r11 int v15; // r7 unsigned __int8 *v16; // r3 int v17; // r2 int v18; // r1 size_t v19; // r2 int v20; // r0 char *v21; // r1 unsigned __int8 *v22; // r1 unsigned __int8 *v23; // r0 unsigned __int8 *v24; // r2 int v25; // r0 int v26; // t1 unsigned __int8 *i; // r4 unsigned __int8 *v28; // r11 unsigned __int8 *v29; // r7 char v30; // r3 int *v31; // r0 int v32; // r1 int v33; // r2 unsigned __int8 *v34; // r0 int v35; // r0 unsigned __int8 *v37; // [sp+4h] [bp-30h] _DWORD v38[3]; // [sp+8h] [bp-2Ch] BYREF int v39; // [sp+14h] [bp-20h] BYREF int v40; // [sp+18h] [bp-1Ch] char *v41; // [sp+1Ch] [bp-18h] int v42; // [sp+20h] [bp-14h] BYREF int v43; // [sp+24h] [bp-10h] char *v44; // [sp+28h] [bp-Ch] memset(v38, 0, sizeof(v38)); v39 = 0; v40 = 0; v41 = nullptr; v4 = strlen(a2); std::string::__init(&v39, a2, v4); if ( !(*(int (__fastcall **)(cocos2d::CCFileUtils *, int *))(*(_DWORD *)this + 84))(this, &v39) ) std::string::operator=((unsigned __int8 *)v38, (unsigned __int8 *)this + 32); std::operator+(&v42, (unsigned __int8 *)v38, (unsigned __int8 *)&v39); if ( (v39 & 1) != 0 ) { *v41 = 0; v40 = 0; } else { LOWORD(v39) = 0; } std::string::reserve(&v39, 0); v5 = v42; v6 = v43; v7 = v44; v42 = 0; v43 = 0; v44 = nullptr; v39 = v5; v40 = v6; v41 = v7; std::string::~string((int)&v42); if ( (v39 & 1) != 0 ) { v8 = v40; if ( !v40 ) goto LABEL_15; LABEL_10: v9 = v8 - 1; if ( (v39 & 1) != 0 ) v10 = v41; else v10 = (char *)&v39 + 1; if ( v10[v9] != 47 ) std::string::append(&v39, "/"); goto LABEL_15; } v8 = (int)(unsigned __int8)v39 >> 1; if ( v8 ) goto LABEL_10; LABEL_15: v11 = *((unsigned __int8 **)this + 5); v12 = *((unsigned __int8 **)this + 6); v13 = v39 & 1; v14 = v40; v15 = (int)(unsigned __int8)v39 >> 1; v16 = (unsigned __int8 *)v41; while ( v11 != v12 ) { v17 = *v11; v18 = v17 & 1; if ( (v17 & 1) != 0 ) v19 = *((_DWORD *)v11 + 1); else v19 = v17 >> 1; if ( v13 ) v20 = v14; else v20 = v15; if ( v19 == v20 ) { if ( !v18 ) { if ( v13 ) v22 = v16; else v22 = (unsigned __int8 *)&v39 + 1; v23 = v11; v24 = &v22[v19]; while ( v22 != v24 ) { v26 = *++v23; if ( v26 != *v22 ) goto LABEL_38; ++v22; } break; } if ( v13 ) v21 = (char *)v16; else v21 = (char *)&v39 + 1; v37 = v16; v25 = std::char_traits::compare(*((const void **)v11 + 2), v21, v19); v16 = v37; if ( !v25 ) break; } LABEL_38: v11 += 12; } for ( i = v11 + 24; ; *((_DWORD *)i - 4) = 0 ) { v28 = i - 12; v29 = i - 24; if ( v12 == i - 12 ) break; v30 = *(i - 24); v31 = (int *)(i - 24); i += 12; if ( (v30 & 1) != 0 ) { **((_BYTE **)i - 7) = 0; *((_DWORD *)i - 8) = 0; } else { *(i - 35) = 0; *(i - 36) = 0; } std::string::reserve(v31, 0); v32 = *((_DWORD *)v28 + 1); v33 = *((_DWORD *)v28 + 2); *(_DWORD *)v29 = *(_DWORD *)v28; *((_DWORD *)v29 + 1) = v32; *((_DWORD *)v29 + 2) = v33; *((_DWORD *)i - 6) = 0; *((_DWORD *)i - 5) = 0; } while ( 1 ) { v34 = *((unsigned __int8 **)this + 6); if ( v29 == v34 ) break; v35 = (int)(v34 - 12); *((_DWORD *)this + 6) = v35; std::string::~string(v35); } std::string::~string((int)&v39); return std::string::~string((int)v38); }
GD Web Decomp Icon

GD Web Decomp

Raw Source