// // sub_18007C5B0 from 0x18007c5b0 to 0x18007c64c (156 bytes) // // 2 xrefs: // > cocos2d::CCImage::_initWithTiffData @ 0x18007b9dd // > @ 0x1801b4e0c // // 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 // __int64 __fastcall sub_18007C5B0(__int64 a1, char *a2, unsigned __int64 a3) { __int64 v3; // r14 unsigned __int64 v4; // rsi int v7; // ecx unsigned int v8; // ebx v3 = 0; v4 = a3; if ( !a3 ) return v3; v7 = *(_DWORD *)(a1 + 12); while ( 1 ) { v8 = 0x80000000; if ( v4 < 0x80000000 ) v8 = v4; if ( (signed int)(v7 + v8) > *(_DWORD *)(a1 + 8) ) break; memcpy(a2, (const void *)(*(_QWORD *)a1 + v7), v8); *(_DWORD *)(a1 + 12) += v8; a2 += v8; v7 = *(_DWORD *)(a1 + 12); v3 += v8; v4 -= v8; if ( !v4 ) return v3; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source