//
// sub_1405324A0 from 0x1405324a0 to 0x1405325c2 (290 bytes)
//
// 2 xrefs:
// > sub_140523E00 @ 0x140523f87
// > ??> @ 0x14092b910
//
// 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 11:33:44 +0000
//
__int64 __fastcall sub_1405324A0(__int64 a1, unsigned int *a2)
{
bool v4; // zf
__int16 *v5; // rax
__int128 v7; // [rsp+20h] [rbp-28h] BYREF
_BYTE v8[24]; // [rsp+30h] [rbp-18h] BYREF
fmt::BasicWriter::operator<<(a1, *a2);
v7 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v8, a1 + 528);
fmt::BasicWriter::operator<<(a1, &v7);
fmt::BasicWriter::operator<<(a1, a2[1]);
v7 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v8, a1 + 528);
fmt::BasicWriter::operator<<(a1, &v7);
fmt::BasicWriter::operator<<(a1, a2[2]);
v7 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v8, a1 + 528);
fmt::BasicWriter::operator<<(a1, &v7);
v4 = *((_BYTE *)a2 + 12) == 0;
v5 = (__int16 *)"0";
*((_QWORD *)&v7 + 1) = 0;
if ( !v4 )
v5 = &word_14070D060;
*(_QWORD *)&v7 = v5;
fmt::BasicWriter::operator<<(a1, &v7);
v7 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v8, a1 + 528);
fmt::BasicWriter::operator<<(a1, &v7);
return WriteArchive::process_1(a1, (_QWORD *)a2 + 2);
}