//
// sub_100642F00 from 0x100642f00 to 0x100642f94 (148 bytes)
//
// 0 xrefs:
//
// 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_100642F00(unsigned __int64 *a1, unsigned int *a2, const char *a3, unsigned int a4, unsigned int a5)
{
void *v9; // rsi
FILE *v10; // rax
FILE *v11; // r12
int v12; // ebx
_QWORD v14[7]; // [rsp+8h] [rbp-38h] BYREF
v9 = &unk_100822850;
if ( (a4 & 0x20) == 0 )
v9 = &unk_100822858;
v10 = sub_100642720(a2, (__int64)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;
}