// // sub_100511188 from 0x100511188 to 0x1005112e4 (348 bytes) // // 1 xrefs: // > sub_100510CBC @ 0x100511094 // // This function is hookable on this platform (idp: arm, 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 11:07:03 +0000 // void __fastcall sub_100511188(__int64 a1) { __int64 v2; // x0 unsigned __int128 v3; // kr00_16 __int64 v4; // x10 __int64 v5; // x0 __int64 v6; // x19 _QWORD *v7; // x0 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v9; // [xsp+1Fh] [xbp-41h] void *v10[2]; // [xsp+20h] [xbp-40h] BYREF char v11; // [xsp+37h] [xbp-29h] std::string __str; // [xsp+38h] [xbp-28h] BYREF v2 = *(_QWORD *)(a1 + 1040); if ( v2 ) CCTextInputNode::getString(v2, &__str); else sub_100009900(&__str, ""); v3 = __PAIR128__(HIBYTE(__str.__r_.__value_.__r.__words[2]), &__str); if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v3 = *(_OWORD *)&__str.__r_.__value_.__l.__data_; if ( !*((_QWORD *)&v3 + 1) ) goto LABEL_14; v4 = 0; while ( *(_BYTE *)(v3 + v4) == 32 ) { if ( *((_QWORD *)&v3 + 1) == ++v4 ) goto LABEL_14; } if ( v4 == -1 ) { LABEL_14: v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272); sub_100009900(v10, "Enter a name"); sub_100009900(__p, ""); v7 = TextAlertPopup::create((__int64)v10, 150, (__int64)__p, 0.5, 0.6); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v7, 1000); if ( v9 < 0 ) operator delete(__p[0]); if ( v11 < 0 ) operator delete(v10[0]); } else { v5 = GameLevelManager::sharedState(); if ( (sub_1000C8838(v5, *(_DWORD *)(*(_QWORD *)(a1 + 1024) + 56LL), 2, (__int64)&__str) & 1) != 0 ) { *(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016; std::string::operator=((std::string *)(a1 + 1048), &__str); *(_BYTE *)(a1 + 1072) = 1; } } if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source