// // cocos2d::CCFileUtils::removeFullPath from 0x180070b30 to 0x180070cd4 (420 bytes) // // 6 xrefs: // > @ 0x180100368 // > @ 0x180101090 // > @ 0x18013a5fc // > @ 0x18013a644 // > @ 0x1801438a8 // > @ 0x1801b4290 // // 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 // void __fastcall cocos2d::CCFileUtils::removeFullPath(cocos2d::CCFileUtils *this, const char *a2) { size_t v3; // r8 __int64 *v4; // r13 cocos2d::CCFileUtils *v5; // r12 unsigned __int64 v6; // r15 __int64 *v7; // rbp size_t v8; // rsi void **v9; // r14 __int64 *v10; // rbx void **v11; // rdx const void *v12; // rcx size_t v13; // rdi size_t v14; // r8 int v15; // eax const void *v16; // rdx size_t v17; // rbx void **v18; // rcx size_t v19; // r8 int v20; // eax void **v21; // rax __int64 *v22; // rbx void *Buf2[2]; // [rsp+20h] [rbp-68h] BYREF size_t Size; // [rsp+30h] [rbp-58h] unsigned __int64 v25; // [rsp+38h] [rbp-50h] *(_OWORD *)Buf2 = 0; Size = 0; v25 = 0; v3 = -1; do ++v3; while ( a2[v3] ); sub_18000CE60(Buf2, a2, v3); v4 = *((__int64 **)this + 12); v5 = this + 12; v6 = v25; v7 = v4; v8 = Size; v9 = (void **)Buf2[0]; v10 = (__int64 *)v4[1]; while ( !*((_BYTE *)v10 + 25) ) { v11 = Buf2; v12 = v10 + 4; if ( v6 > 0xF ) v11 = v9; if ( (unsigned __int64)v10[7] > 0xF ) v12 = (const void *)v10[4]; v13 = v10[6]; v14 = v13; if ( v8 < v13 ) v14 = v8; v15 = memcmp(v12, v11, v14); if ( v15 ) { if ( v15 < 0 ) goto LABEL_25; } else if ( v13 < v8 ) { LABEL_25: v10 = (__int64 *)v10[2]; continue; } v7 = v10; v10 = (__int64 *)*v10; } if ( *((_BYTE *)v7 + 25) ) goto LABEL_27; v16 = v7 + 4; if ( (unsigned __int64)v7[7] > 0xF ) v16 = (const void *)v7[4]; v17 = v7[6]; v18 = Buf2; v19 = v8; if ( v6 > 0xF ) v18 = v9; if ( v17 < v8 ) v19 = v7[6]; v20 = memcmp(v18, v16, v19); if ( !v20 ) { if ( v8 >= v17 ) goto LABEL_28; goto LABEL_27; } if ( v20 < 0 ) LABEL_27: v7 = v4; LABEL_28: if ( v6 > 0xF ) { v21 = v9; if ( v6 + 1 >= 0x1000 ) { v9 = (void **)*(v9 - 1); if ( (unsigned __int64)((char *)v21 - (char *)v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v9); } if ( v7 != (__int64 *)v5->__vftable ) { v22 = sub_18000F1F0(v5, v7); sub_18006C9C0((__int64)v5, (__int64)(v22 + 4)); j_j_free_0(v22); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source