// // cocos2d::CCFileUtils::fullPathFromRelativeFile from 0xd79458 to 0xd79680 (552 bytes) // // 3 xrefs: // > @ 0x49570 // > @ 0x152d920 // > @ 0x152dde0 // // 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 // char *__fastcall cocos2d::CCFileUtils::fullPathFromRelativeFile(cocos2d::CCFileUtils *this, const char *a2, char *a3) { size_t v6; // x0 cocos2d::CCObject *v7; // x20 __int64 v8; // x0 size_t v9; // x3 char *v10; // x2 size_t v11; // x3 char *CString; // x19 char *v14; // x0 int v15; // w1 char *v16; // x0 int v17; // t1 __int64 v18; // [xsp+58h] [xbp+58h] BYREF __int64 v19; // [xsp+60h] [xbp+60h] void *v20; // [xsp+68h] [xbp+68h] __int64 v21; // [xsp+70h] [xbp+70h] BYREF size_t v22; // [xsp+78h] [xbp+78h] void *v23; // [xsp+80h] [xbp+80h] v18 = 0; v19 = 0; v20 = nullptr; v6 = strlen(a3); std::string::__init(&v18, a3, v6); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, &byte_11B8890, 0); v7 = cocos2d::CCString::create(&v21); if ( (v21 & 1) != 0 ) operator delete(v23); if ( (v18 & 1) != 0 ) { v8 = v19; v9 = 0; v10 = (char *)v20; if ( !v19 ) goto LABEL_5; } else { v8 = (unsigned __int8)v18 >> 1; v10 = (char *)&v18 + 1; v9 = 0; if ( !((unsigned __int8)v18 >> 1) ) goto LABEL_5; } v14 = &v10[v8]; if ( v10 != v14 ) { v15 = (unsigned __int8)*(v14 - 1); v16 = v14 - 1; if ( v15 != 47 ) { while ( v16 != v10 ) { v17 = (unsigned __int8)*--v16; if ( v17 == 47 ) goto LABEL_22; } std::string::basic_string(&v21, (__int64)&v18, 0, 0); if ( (*((_BYTE *)v7 + 56) & 1) != 0 ) goto LABEL_6; goto LABEL_19; } LABEL_22: v9 = v16 - v10 + 1; } LABEL_5: std::string::basic_string(&v21, (__int64)&v18, 0, v9); if ( (*((_BYTE *)v7 + 56) & 1) != 0 ) { LABEL_6: **((_BYTE **)v7 + 9) = 0; *((_QWORD *)v7 + 8) = 0; goto LABEL_7; } LABEL_19: *((_BYTE *)v7 + 57) = 0; *((_BYTE *)v7 + 56) = 0; LABEL_7: std::string::reserve((__int64 *)v7 + 7, 0); v11 = v22; *((_QWORD *)v7 + 7) = v21; *((_QWORD *)v7 + 8) = v11; *((_QWORD *)v7 + 9) = v23; (*(void (__fastcall **)(__int64 *__return_ptr, cocos2d::CCFileUtils *, const char *))(*(_QWORD *)this + 200LL))( &v21, this, a2); if ( (v21 & 1) != 0 ) { std::string::append((__int64)v7 + 56, v23, v22); if ( (v21 & 1) == 0 ) goto LABEL_9; } else { std::string::append((__int64)v7 + 56, (char *)&v21 + 1, (unsigned __int8)v21 >> 1); if ( (v21 & 1) == 0 ) goto LABEL_9; } operator delete(v23); LABEL_9: CString = cocos2d::CCString::getCString(v7); if ( (v18 & 1) != 0 ) operator delete(v20); return CString; }
GD Web Decomp Icon

GD Web Decomp

Raw Source