// // EmotePickerPopup::onPickEmote from 0x1009037c0 to 0x1009038e2 (290 bytes) // // 1 xrefs: // > EmotePickerPopup::addCell @ 0x100903418 // // 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 // void __fastcall EmotePickerPopup::onPickEmote(_QWORD *a1, __int64 a2) { int v3; // eax __int64 v4; // rdi __int64 v5; // rax const char **v6; // r14 __int64 v7; // rax __int64 v8; // r14 __int64 v9; // rdi __int128 v10; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] std::string v12; // [rsp+18h] [rbp-28h] BYREF if ( (unsigned __int8)EmotePickerPopup::canAddEmote(a1) ) { v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v4 = (unsigned int)(v3 - 100000); if ( v3 < 100000 ) v4 = (unsigned int)v3; v5 = EmoteSprite::defAtIndex(v4); if ( v5 ) { v6 = (const char **)v5; v7 = GameManager::sharedState(); sub_1003717F0(v7, *v6); if ( a1[146] ) { *(_WORD *)&v12.__r_.__value_.__l.0 = 14850; v12.__r_.__value_.__s.__data_[1] = 0; std::string::append(&v12, *v6); std::string::append(&v12, ":"); v8 = a1[146]; if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(&v10, v12.__r_.__value_.__l.__data_, v12.__r_.__value_.__l.__size_); } else { __p = v12.__r_.__value_.__l.__data_; v10 = *(_OWORD *)&v12.__r_.__value_.__l.0; } CCTextInputNode::insertAtCursor(v8, (__int64)&v10); if ( (v10 & 1) != 0 ) operator delete(__p); EmotePickerPopup::refreshEnabled((__int64)a1); if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v12.__r_.__value_.__l.__data_); } else { v9 = a1[148]; if ( v9 ) (*(void (__fastcall **)(__int64, _QWORD *, const char **))(*(_QWORD *)v9 + 8LL))(v9, a1, v6); (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1368LL))(a1, 0); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source