// // sub_1001644F4 from 0x1001644f4 to 0x10016456c (120 bytes) // // 1 xrefs: // > sub_100164270 @ 0x10016439c // // 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_1001644F4(__int64 a1, FILE *a2, int a3) { char v3; // w20 __int64 v4; // x19 *(_QWORD *)(a1 + 120) = a2; if ( !a2 ) return 0; v3 = a3; v4 = a1; *(_DWORD *)(a1 + 392) = a3; if ( *(_DWORD *)(a1 + 396) == 34 ) { setbuf(a2, nullptr); *(_DWORD *)(v4 + 396) = 0; } if ( (v3 & 2) != 0 ) { *(_DWORD *)(v4 + 396) = 0; if ( fseek(*(FILE **)(v4 + 120), 0, 2) ) { fclose(*(FILE **)(v4 + 120)); *(_QWORD *)(v4 + 120) = 0; return 0; } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source