//
// sub_10006CE70 from 0x10006ce70 to 0x10006cf3e (206 bytes)
//
// 1 xrefs:
// > sub_100078D10 @ 0x100078d20
//
// 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:19:46 +0000
//
void __fastcall sub_10006CE70(__int64 a1)
{
const char *v1; // r14
size_t v2; // rax
size_t v3; // rbx
char *v4; // r15
size_t v5; // r12
_QWORD __dst[2]; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
if ( (unsigned __int8)sub_10006CC90(a1) )
{
v1 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 576) + 1248LL))(*(_QWORD *)(a1 + 576));
v2 = strlen(v1);
if ( v2 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v3 = v2;
if ( v2 >= 0x17 )
{
v5 = 26;
if ( (v2 | 7) != 0x17 )
v5 = (v2 | 7) + 1;
v4 = (char *)operator new(v5);
__p = v4;
__dst[0] = v5 + 1;
__dst[1] = v3;
}
else
{
LOBYTE(__dst[0]) = 2 * v2;
v4 = (char *)__dst + 1;
if ( !v2 )
{
LABEL_10:
v4[v3] = 0;
PlatformToolbox::copyToClipboard(__dst);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return;
}
}
memmove(v4, v1, v3);
goto LABEL_10;
}
}