//
// sub_100718A90 from 0x100718a90 to 0x100718b5b (203 bytes)
//
// 0 xrefs:
//
// 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:36:09 +0000
//
__int64 __fastcall sub_100718A90(_QWORD **a1, __int64 *a2)
{
const char *v2; // r15
const char *v3; // rbx
_QWORD *v4; // rdi
__int64 v5; // rcx
__int64 v6; // rax
__int64 v7; // r14
__int64 v8; // rax
const char *v9; // rax
if ( !*a2 )
return 0;
v2 = *(const char **)(*a2 + 8);
v3 = "";
if ( !v2 )
v2 = "";
v4 = *a1;
if ( !v4 || (v5 = *v4 & 7LL, v5 != 6) && (_DWORD)v5 != 1 )
{
v7 = 0;
v8 = *a2;
if ( !*a2 )
goto LABEL_12;
goto LABEL_10;
}
v6 = sub_100718720((__int64)v4, *(__int64 **)(*v4 & 0xFFFFFFFFFFFFFFE0LL));
if ( v6 )
{
v7 = v6;
sub_100717DB0((const char **)(v6 + 8), (__int64 *)v6, 16, v2);
}
else
{
v7 = 0;
}
v8 = *a2;
if ( *a2 )
{
LABEL_10:
v9 = *(const char **)(v8 + 16);
v3 = "";
if ( v9 )
v3 = v9;
}
LABEL_12:
if ( !v7 )
return 0;
sub_100717DB0((const char **)(v7 + 16), (__int64 *)v7, 8, v3);
return v7;
}