// // DS_Dictionary::copyFile from 0x80e98c to 0x80eb56 (458 bytes) // // 1 xrefs: // > GManager::loadDataFromFile @ 0x3d46d8 // // 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:35 +0000 // int __fastcall DS_Dictionary::copyFile(DS_Dictionary *this, char *a2, const char *a3) { char *v5; // r5 char *v6; // r6 int v7; // r1 int v8; // r1 _DWORD *v9; // r4 _DWORD *v10; // r6 unsigned __int8 *v11; // r3 unsigned __int8 v12; // r0 int v13; // r1 unsigned __int8 *v14; // r2 int v15; // r3 _BYTE v17[12]; // [sp+Ch] [bp-148h] BYREF int v18[3]; // [sp+18h] [bp-13Ch] BYREF int v19[3]; // [sp+24h] [bp-130h] BYREF _UNKNOWN **v20; // [sp+30h] [bp-124h] BYREF _BYTE v21[100]; // [sp+34h] [bp-120h] BYREF _DWORD v22[20]; // [sp+98h] [bp-BCh] BYREF _DWORD v23[2]; // [sp+E8h] [bp-6Ch] BYREF _BYTE v24[100]; // [sp+F0h] [bp-64h] BYREF _DWORD v25[22]; // [sp+154h] [bp+0h] BYREF FileOperation::getFilePath((FileOperation *)v17); std::string::basic_string(v18, (int)v17); std::string::append(v18, (char *)this); if ( (v18[0] & 1) != 0 ) v5 = (char *)v18[2]; else v5 = (char *)v18 + 1; std::string::basic_string(v19, (int)v17); std::string::append(v19, a2); if ( (v19[0] & 1) != 0 ) v6 = (char *)v19[2]; else v6 = (char *)v19 + 1; v23[0] = &unk_D12DDC; v25[0] = &unk_D12DF0; v23[1] = 0; std::ios_base::init((std::ios_base *)v25, v24); v25[18] = 0; v25[19] = -1; v23[0] = &off_D12E14; v25[0] = &off_D12E28; std::filebuf::basic_filebuf((int)v24, v7, (int)&off_D12E14); if ( !std::filebuf::open((int)v24, v5, 8) ) std::ios_base::clear((std::ios_base *)v25, v25[4] | 4); v20 = (_UNKNOWN **)&unk_D12E3C; v22[0] = &unk_D12E50; std::ios_base::init((std::ios_base *)v22, v21); v22[18] = 0; v22[19] = -1; v22[0] = &off_D12E88; v20 = &off_D12E74; std::filebuf::basic_filebuf((int)v21, v8, (int)&off_D12E74); if ( !std::filebuf::open((int)v21, v6, 16) ) std::ios_base::clear((std::ios_base *)v22, v22[4] | 4); v9 = *(_DWORD **)((char *)&v25[-21] + *(_DWORD *)(v23[0] + 0xFFFFFFF4)); v10 = *(_DWORD **)&v21[(_DWORD)*(v20 - 3) + 20]; while ( v9 && (v9[3] != v9[4] || (*(int (__fastcall **)(_DWORD *))(*v9 + 36))(v9) != -1) ) { v11 = (unsigned __int8 *)v9[3]; if ( v11 == (unsigned __int8 *)v9[4] ) v12 = (*(int (__fastcall **)(_DWORD *))(*v9 + 36))(v9); else v12 = *v11; v13 = v12; if ( v10 ) { v14 = (unsigned __int8 *)v10[6]; if ( v14 == (unsigned __int8 *)v10[7] ) { if ( (*(int (__fastcall **)(_DWORD *, _DWORD))(*v10 + 52))(v10, v12) == -1 ) v10 = nullptr; } else { v10[6] = v14 + 1; *v14 = v12; } } v15 = v9[3]; if ( v15 == v9[4] ) (*(void (__fastcall **)(_DWORD *, int))(*v9 + 40))(v9, v13); else v9[3] = v15 + 1; } std::ofstream::~ofstream(&v20); std::ifstream::~ifstream(v23); std::string::~string((int)v19); std::string::~string((int)v18); return std::string::~string((int)v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source