//
// ThreadViewPopup::levelPicked from 0x100932b00 to 0x100932bed (237 bytes)
//
// 2 xrefs:
// > sub_100932F30 @ 0x100932f3c
// > ??> @ 0x100bc2be8
//
// 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:25 +0000
//
void __fastcall ThreadViewPopup::levelPicked(__int64 a1, __int64 a2)
{
int v3; // esi
bool v4; // cc
int v5; // esi
char *v6; // rax
const char *CString; // r15
size_t v8; // rax
size_t v9; // r14
char *v10; // r12
size_t v11; // r13
_QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
if ( a2 )
{
v3 = *(_DWORD *)(a2 + 328);
v4 = v3 <= *(_DWORD *)(a2 + 332);
v5 = v3 - *(_DWORD *)(a2 + 332);
if ( !v4 )
{
v6 = sub_10088E820("l_%i", v5);
CString = (const char *)cocos2d::CCString::getCString((__int64)v6);
v8 = strlen(CString);
if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v9 = v8;
if ( v8 >= 0x17 )
{
v11 = 26;
if ( (v8 | 7) != 0x17 )
v11 = (v8 | 7) + 1;
v10 = (char *)operator new(v11);
__p = v10;
__dst[0] = v11 + 1;
__dst[1] = v9;
}
else
{
LOBYTE(__dst[0]) = 2 * v8;
v10 = (char *)__dst + 1;
if ( !v8 )
{
LABEL_11:
v10[v9] = 0;
sub_100932C10(a1, __dst);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return;
}
}
memmove(v10, CString, v9);
goto LABEL_11;
}
}
}