// // FileOperation::getFilePath from 0x80a2b0 to 0x80a404 (340 bytes) // // 7 xrefs: // > FileOperation::saveFile @ 0x80a420 // > FileOperation::readFile @ 0x80a488 // > DS_Dictionary::loadRootSubDictFromFile @ 0x80ccc4 // > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x80cdfa // > DS_Dictionary::saveRootSubDictToFile @ 0x80e31e // > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x80e634 // > DS_Dictionary::copyFile @ 0x80e9b2 // // 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:29 +0000 // FileOperation *__fastcall FileOperation::getFilePath(FileOperation *this) { int v1; // r3 cocos2d::CCFileUtils *v3; // r0 int v4; // r0 size_t v5; // r1 char *v6; // r2 char *v7; // r3 size_t v8; // r7 int v9; // r6 int v10; // r1 size_t v11; // r6 unsigned int v12; // r9 char *v13; // r4 char *v14; // r0 size_t v15; // r6 char *v16; // r10 unsigned int v17; // r4 unsigned int v18; // r4 unsigned int v19; // r4 _BYTE *v20; // r0 const void *v21; // r3 _BYTE *v22; // r11 unsigned int v24; // [sp+4h] [bp-20h] char *v25; // [sp+Ch] [bp-18h] int v26; // [sp+10h] [bp-14h] BYREF size_t v27; // [sp+14h] [bp-10h] char *v28; // [sp+18h] [bp-Ch] int v29; // [sp+1Ch] [bp-8h] *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; v1 = _stack_chk_guard; *(_DWORD *)this = 0; v29 = v1; v3 = (cocos2d::CCFileUtils *)std::string::__init((int *)this, &unk_B6B226, 0); v4 = cocos2d::CCFileUtils::sharedFileUtils(v3); v26 = 0; v27 = 0; v28 = nullptr; if ( (*(_BYTE *)(v4 + 56) & 1) != 0 ) { std::string::__init(&v26, *(const void **)(v4 + 64), *(_DWORD *)(v4 + 60)); } else { v5 = *(_DWORD *)(v4 + 60); v6 = *(char **)(v4 + 64); v26 = *(_DWORD *)(v4 + 56); v27 = v5; v28 = v6; } if ( (v26 & 1) != 0 ) { v7 = v28; v8 = v27; } else { v8 = (int)(unsigned __int8)v26 >> 1; v7 = (char *)&v26 + 1; } v9 = *(unsigned __int8 *)this; v10 = v9 & 1; if ( (v9 & 1) != 0 ) { v11 = *((_DWORD *)this + 1); v12 = (*(_DWORD *)this & 0xFFFFFFFE) - 1; } else { v11 = v9 >> 1; v12 = 10; } if ( v12 - v11 < v8 ) { v24 = v11 + v8; if ( v10 ) v16 = *((char **)this + 2); else v16 = (char *)this + 1; if ( v12 > 0x7FFFFFE6 ) { v18 = -18; } else { v17 = 2 * v12; if ( 2 * v12 < v24 ) v17 = v11 + v8; if ( v17 <= 0xA ) v18 = 10; else v18 = ((v17 + 16) & 0xFFFFFFF0) - 1; } v19 = v18 + 1; v25 = v7; v20 = (_BYTE *)operator new(v19); v21 = v25; v22 = v20; if ( v11 ) { std::char_traits::copy(v20, v16, v11); v21 = v25; } std::char_traits::copy(&v22[v11], v21, v8); if ( v12 != 10 ) operator delete(v16); *((_DWORD *)this + 2) = v22; *((_DWORD *)this + 1) = v24; *(_DWORD *)this = v19 | 1; v22[v24] = 0; } else if ( v8 ) { if ( v10 ) v13 = *((char **)this + 2); else v13 = (char *)this + 1; v14 = &v13[v11]; v15 = v11 + v8; std::char_traits::copy(v14, v7, v8); if ( (*(_BYTE *)this & 1) != 0 ) *((_DWORD *)this + 1) = v15; else *(_BYTE *)this = 2 * v15; v13[v15] = 0; } std::string::~string((int)&v26); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source