// // sub_10092F790 from 0x10092f790 to 0x10092fb3d (941 bytes) // // 3 xrefs: // > ThreadViewPopup::keyDown @ 0x100939ebc // > sub_100939ED0 @ 0x100939f46 // > ThreadViewPopup::init @ 0x10092e6a0 // // 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:23 +0000 // void __fastcall sub_10092F790(__int64 a1) { __int64 v1; // rax char v2; // cl unsigned int v3; // edx int v4; // esi __int64 v5; // rsi int v6; // eax __int64 v7; // rax time_t v8; // r14 __int64 v9; // r12 char v10; // r14 __int64 v11; // r14 __int64 v12; // rax _QWORD *v13; // r14 void *v14[3]; // [rsp+20h] [rbp-E0h] BYREF void *v15[3]; // [rsp+38h] [rbp-C8h] BYREF void *v16[3]; // [rsp+50h] [rbp-B0h] BYREF __int128 v17; // [rsp+68h] [rbp-98h] BYREF void *__p; // [rsp+78h] [rbp-88h] std::string v19; // [rsp+80h] [rbp-80h] BYREF void *v20[3]; // [rsp+98h] [rbp-68h] BYREF __int64 v21; // [rsp+B0h] [rbp-50h] int v22; // [rsp+BCh] [rbp-44h] std::string __str; // [rsp+C0h] [rbp-40h] BYREF v1 = *(_QWORD *)(a1 + 752); v2 = *(_BYTE *)(v1 + 264); if ( v2 != 1 || (v3 = *(_DWORD *)(v1 + 268), v3 > 7) || (v4 = 180, !_bittest(&v4, v3)) ) { if ( !*(_BYTE *)(a1 + 790) && !*(_BYTE *)(a1 + 1104) && !*(_BYTE *)(a1 + 1168) && !*(_BYTE *)(v1 + 272) && !*(_BYTE *)(a1 + 791) && (v2 || *(_DWORD *)(v1 + 268) != 8) && *(_BYTE *)(a1 + 789) == 1 && !*(_QWORD *)(a1 + 1176) ) { v5 = *(_QWORD *)(a1 + 928); if ( v5 ) CCTextInputNode::getString(&__str, v5); else sub_10000E4E0(&__str, ""); if ( sub_1009342D0(&__str, " \n", 0) == -1 ) goto LABEL_37; v6 = EmoteSprite::maxEmotesMessage(); if ( (int)EmoteSprite::effectiveLength((unsigned __int8 *)&__str, v6) >= 501 ) { sub_10000E4E0(&v17, "Message is too long."); v7 = sub_100493AB0(0, (__int64)"Message", &v17, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7); if ( (v17 & 1) != 0 ) operator delete(__p); goto LABEL_37; } if ( !*(_QWORD *)(a1 + 968) || sub_10092BE70((unsigned __int8 *)&__str, (unsigned __int8 *)(a1 + 976)) ) { v8 = time(nullptr); *(_QWORD *)(a1 + 968) = (v8 << 20) | rand() & 0xFFFFF; std::string::operator=((std::string *)(a1 + 976), &__str); } v21 = GameLevelManager::sharedState(); v22 = *(_DWORD *)(*(_QWORD *)(a1 + 752) + 56LL); sub_10000E4E0(&v19, ""); v9 = *(_QWORD *)(a1 + 968); sub_10000E4E0(v14, ""); sub_10000E4E0(v15, ""); sub_10000E4E0(v16, ""); v10 = GameLevelManager::sendThreadMessage( v21, v22, 0, &v19, &__str, v9, (unsigned __int8 *)v14, 0, (unsigned __int8 *)v15, (unsigned __int8 *)v16); if ( ((__int64)v16[0] & 1) != 0 ) { operator delete(v16[2]); if ( ((__int64)v15[0] & 1) == 0 ) { LABEL_25: if ( ((__int64)v14[0] & 1) == 0 ) goto LABEL_26; goto LABEL_31; } } else if ( ((__int64)v15[0] & 1) == 0 ) { goto LABEL_25; } operator delete(v15[2]); if ( ((__int64)v14[0] & 1) == 0 ) { LABEL_26: if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_27; goto LABEL_32; } LABEL_31: operator delete(v14[2]); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_27: if ( !v10 ) { LABEL_37: if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); return; } LABEL_33: *(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 672; sub_100931710(a1, 1); v11 = sub_100934360(); v12 = GJAccountManager::sharedState(a1, 1); *(_DWORD *)(v11 + 64) = *(_DWORD *)(v12 + 352) - *(_DWORD *)(v12 + 356); std::string::operator=((std::string *)(v11 + 72), &__str); *(_QWORD *)(v11 + 96) = time(nullptr); sub_1007FEBF0(*(_QWORD *)(a1 + 760), v11); *(_QWORD *)(a1 + 1040) = v11; v13 = *(_QWORD **)(a1 + 928); if ( v13 ) { sub_10000E4E0(v20, ""); CCTextInputNode::setString(v13, (__int64)v20); if ( ((__int64)v20[0] & 1) != 0 ) operator delete(v20[2]); } sub_100931870(a1, 1); sub_100932150(a1, 0); goto LABEL_37; } LABEL_32: operator delete(v19.__r_.__value_.__l.__data_); if ( !v10 ) goto LABEL_37; goto LABEL_33; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source