// // cocos2d::CCFileUtils::removeFullPath from 0xd79eb0 to 0xd7a084 (468 bytes) // // 3 xrefs: // > @ 0xadcc8 // > @ 0x152d908 // > @ 0x152ddc8 // // This function is hookable on this platform (idp: arm, 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 13:08:05 +0000 // __int64 __fastcall cocos2d::CCFileUtils::removeFullPath(cocos2d::CCFileUtils *this, const char *a2) { size_t v3; // x0 size_t v4; // x19 const char *v5; // x1 char *v6; // x3 __int64 *v7; // x19 __int64 *v8; // x1 __int64 *v9; // x0 __int64 *v10; // x0 __int64 v12; // x2 __int64 *v13; // x0 unsigned __int64 v14; // x0 __int64 v15; // x22 char *v16; // x0 __int64 v18; // [xsp+50h] [xbp+50h] BYREF size_t v19; // [xsp+58h] [xbp+58h] void *v20; // [xsp+60h] [xbp+60h] v18 = 0; v19 = 0; v20 = nullptr; v3 = strlen(a2); v4 = v3; v5 = a2; if ( v3 > 0x16 ) { v14 = (v3 + 16) & 0xFFFFFFFFFFFFFFF0LL; v15 = v14 | 1; v16 = (char *)operator new(v14); v18 = v15; v5 = a2; v6 = v16; v20 = v16; v19 = v4; LABEL_21: *((_BYTE *)memcpy(v6, v5, v4) + v4) = 0; v7 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::find( (__int64)this + 88, (__int64)&v18); if ( (v18 & 1) == 0 ) goto LABEL_4; goto LABEL_22; } LOBYTE(v18) = 2 * v3; v6 = (char *)&v18 + 1; if ( v3 ) goto LABEL_21; BYTE1(v18) = 0; v7 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::find( (__int64)this + 88, (__int64)&v18); if ( (v18 & 1) == 0 ) goto LABEL_4; LABEL_22: operator delete(v20); LABEL_4: if ( v7 != (__int64 *)((char *)this + 96) ) { v8 = (__int64 *)v7[1]; v9 = v7; if ( v8 ) { while ( *v8 ) v8 = (__int64 *)*v8; if ( v7 == *((__int64 **)this + 11) ) { LABEL_17: v12 = *((_QWORD *)this + 13); v13 = *((__int64 **)this + 12); *((_QWORD *)this + 11) = v8; *((_QWORD *)this + 13) = v12 - 1; std::__tree_remove *>(v13, v7); if ( (v7[7] & 1) != 0 ) { LABEL_18: operator delete((void *)v7[9]); if ( (v7[4] & 1) != 0 ) goto LABEL_19; goto LABEL_12; } LABEL_11: if ( (v7[4] & 1) != 0 ) LABEL_19: operator delete((void *)v7[6]); LABEL_12: operator delete(v7); return _stack_chk_guard; } } else { while ( 1 ) { v8 = (__int64 *)v9[2]; if ( v9 == (__int64 *)*v8 ) break; v9 = (__int64 *)v9[2]; } if ( v7 == *((__int64 **)this + 11) ) goto LABEL_17; } v10 = *((__int64 **)this + 12); --*((_QWORD *)this + 13); std::__tree_remove *>(v10, v7); if ( (v7[7] & 1) != 0 ) goto LABEL_18; goto LABEL_11; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source