//
// sub_100642E60 from 0x100642e60 to 0x100642ef4 (148 bytes)
//
// 1 xrefs:
// > DS_Dictionary::saveRootSubDictToFile @ 0x10017b5a9
//
// 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
//
bool __fastcall sub_100642E60(unsigned __int64 *a1, const char *a2, const char *a3, unsigned int a4, unsigned int a5)
{
const char *v9; // rsi
FILE *v10; // rax
FILE *v11; // r12
int v12; // ebx
_QWORD v14[7]; // [rsp+8h] [rbp-38h] BYREF
v9 = "w";
if ( (a4 & 0x20) == 0 )
v9 = "wb";
v10 = fopen(a2, v9);
if ( !v10 )
return 0;
v11 = v10;
v14[0] = off_100985DE0;
v14[1] = v10;
sub_100642AF0(a1, (__int64)v14, a3, a4, a5);
v12 = ferror(v11);
fclose(v11);
return v12 == 0;
}