// // sub_1001E9BB0 from 0x1001e9bb0 to 0x1001e9c6e (190 bytes) // // 1 xrefs: // > cocos2d::CCTexturePVR::initWithContentsOfFile @ 0x100272337 // // This function is hookable on this platform (idp: pc, 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 12:26:30 +0000 // __int64 __fastcall sub_1001E9BB0(const char *a1, void **a2) { gzFile v2; // rcx __int64 result; // rax char *v4; // rax unsigned int v5; // r13d unsigned int v6; // ebx size_t v7; // r12 int v8; // eax gzFile_s *file; // [rsp+0h] [rbp-30h] v2 = gzopen(a1, "rb"); result = 0xFFFFFFFFLL; file = v2; if ( v2 ) { v4 = (char *)malloc(0x80000u); v5 = 0x80000; v6 = 0; LODWORD(v7) = 0x80000; while ( 1 ) { *a2 = v4; v8 = gzread(file, &v4[v6], v5); if ( v8 < 0 ) { LABEL_7: free(*a2); *a2 = nullptr; return 0xFFFFFFFFLL; } if ( !v8 ) break; v6 += v8; if ( v8 < v5 ) break; v7 = (unsigned int)v7 + 2 * v5; v4 = (char *)realloc(*a2, v7); v5 *= 2; if ( !v4 ) goto LABEL_7; } gzclose(file); return v6; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source