//
// sub_100902930 from 0x100902930 to 0x100902a80 (336 bytes)
//
// 1 xrefs:
// > sub_100902CA0 @ 0x100902cfe
//
// 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:03 +0000
//
_QWORD *__fastcall sub_100902930(_QWORD *a1)
{
__int64 v1; // rax
_QWORD *v2; // rbx
float v4[8]; // [rsp+0h] [rbp-20h] BYREF
*(_QWORD *)v4 = v1;
v2 = operator new(0x4D8u);
__bzero(v2, 1240);
EditorWindowPopup::EditorWindowPopup((__int64)v2);
*v2 = off_100BB8E50;
v2[40] = off_100BB9460;
v2[41] = &off_100BB94D0;
v2[42] = off_100BB94E8;
v2[43] = off_100BB9508;
v2[44] = off_100BB9530;
v2[51] = off_100BB9560;
v2[54] = off_100BB95E0;
v2[68] = off_100BB9600;
v2[83] = &off_100BB9648;
v2[84] = off_100BB9660;
*((_OWORD *)v2 + 73) = 0;
v2[148] = 0;
sub_1002787A0(v2 + 149);
*((_DWORD *)v2 + 302) = -1;
*((_OWORD *)v2 + 76) = 0;
v2[154] = 0;
sub_1002782D0(v4, a1);
if ( (unsigned __int8)EmotePickerPopup::init((__int64)v2, 0, v4, 0, 0) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
return v2;
}