//
// sub_10093F020 from 0x10093f020 to 0x10093f18a (362 bytes)
//
// 1 xrefs:
// > sub_10093E4A0 @ 0x10093ea60
//
// 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:38:30 +0000
//
void __fastcall sub_10093F020(__int64 a1)
{
unsigned int v2; // eax
const char *data; // r14
std::string::size_type size; // rax
std::string::pointer v5; // rcx
std::string::size_type v6; // rdx
std::string::size_type v7; // rsi
std::string::pointer v8; // rcx
std::string::size_type v9; // rax
std::string::size_type v10; // rax
std::string::size_type v11; // rsi
char v13; // r15
__int64 v14; // rax
__int64 v15; // rdi
std::string v16; // [rsp+0h] [rbp-30h] BYREF
if ( (*(_BYTE *)(a1 + 872) & 1) == 0 )
{
v16 = *(std::string *)(a1 + 872);
v2 = (unsigned int)v16.__r_.__value_.__l.0;
data = v16.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_3;
LABEL_6:
v5 = v16.__r_.__value_.__l.__data_;
size = v16.__r_.__value_.__l.__size_;
v6 = -1;
if ( !v16.__r_.__value_.__l.__size_ )
goto LABEL_12;
goto LABEL_7;
}
sub_10001AD30(&v16, *(const void **)(a1 + 888), *(_QWORD *)(a1 + 880));
v2 = (unsigned int)v16.__r_.__value_.__l.0;
data = v16.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_6;
LABEL_3:
size = v2 >> 1;
v5 = v16.__r_.__value_.__s.__data_;
v6 = -1;
if ( !size )
goto LABEL_12;
LABEL_7:
v7 = 0;
while ( v5[v7] == 32 )
{
if ( size == ++v7 )
goto LABEL_12;
}
v6 = v7;
LABEL_12:
std::string::erase(&v16, 0, v6);
if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )
{
v8 = v16.__r_.__value_.__l.__data_;
v9 = v16.__r_.__value_.__l.__size_;
}
else
{
v9 = *(_BYTE *)&v16.__r_.__value_.__l.0 >> 1;
v8 = v16.__r_.__value_.__s.__data_;
}
v10 = v9 + 1;
while ( v10 != 1 )
{
v11 = v10 - 1;
if ( v8[v10-- - 2] != 32 )
goto LABEL_20;
}
v11 = 0;
LABEL_20:
std::string::erase(&v16, v11, 0xFFFFFFFFFFFFFFFFLL);
v13 = *(_BYTE *)&v16.__r_.__value_.__s.0 & 1;
if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )
data = v16.__r_.__value_.__l.__data_;
v14 = atoll(data);
if ( (unsigned __int64)(v14 - 0x80000000LL) >= 0xFFFFFFFF80000001LL )
{
v15 = *(_QWORD *)(a1 + 792);
if ( v15 )
{
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v15 + 16LL))(
v15,
(unsigned int)v14,
*(unsigned __int8 *)(a1 + 809));
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1360LL))(a1, 0);
v13 = *(_BYTE *)&v16.__r_.__value_.__s.0 & 1;
}
}
if ( v13 )
operator delete(v16.__r_.__value_.__l.__data_);
}