// // EmoteSprite::defForName from 0x1009042c0 to 0x1009043ad (237 bytes) // // 3 xrefs: // > EmotePickerPopup::onBuildWindowContent @ 0x1009031a6 // > EmoteSprite::createWithName @ 0x100904594 // > sub_100904A70 @ 0x100904c51 // // 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:04 +0000 // __int64 __fastcall EmoteSprite::defForName(__int128 *a1) { unsigned __int8 v1; // al __int64 v2; // rdx bool v3; // di unsigned __int64 v4; // rcx unsigned __int64 v5; // rsi unsigned __int64 v6; // r8 char *v7; // r8 char v8; // di __int64 v9; // rax __int64 v10; // rbx __int128 v12; // [rsp+0h] [rbp-20h] BYREF void *__p; // [rsp+10h] [rbp-10h] ensureEmotesAreLoaded(); if ( (*(_BYTE *)a1 & 1) != 0 ) { sub_10001AD30(&v12, *((const void **)a1 + 2), *((_QWORD *)a1 + 1)); } else { __p = *((void **)a1 + 2); v12 = *a1; } v1 = v12; v2 = (unsigned __int8)v12 >> 1; v3 = (v12 & 1) == 0; v4 = *((_QWORD *)&v12 + 1); if ( (v12 & 1) != 0 ) v2 = *((_QWORD *)&v12 + 1); if ( v2 ) { v5 = 0; do { v7 = (char *)&v12 + 1; if ( !v3 ) v7 = (char *)__p; v8 = v7[v5]; if ( (unsigned __int8)(v8 - 65) <= 0x19u ) { v7[v5] = v8 | 0x20; v1 = v12; v4 = *((_QWORD *)&v12 + 1); } ++v5; v3 = (v1 & 1) == 0; v6 = v1 >> 1; if ( (v1 & 1) != 0 ) v6 = v4; } while ( v5 < v6 ); } v9 = sub_100309350((__int64)&qword_100BE7330, (unsigned __int8 *)&v12); if ( (__int128 *)v9 == &xmmword_100BE7338 ) { v10 = 0; if ( (v12 & 1) == 0 ) return v10; goto LABEL_17; } v10 = *(_QWORD *)(v9 + 56); if ( (v12 & 1) != 0 ) LABEL_17: operator delete(__p); return v10; }