// // StartPosLayer::onClose from 0x10025d900 to 0x10025da97 (407 bytes) // // 1 xrefs: // > @ 0x100af3ad0 // // 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:27:29 +0000 // __int64 __fastcall StartPosLayer::onClose(__int64 a1, __int64 a2) { __int64 v2; // rax __int64 v3; // rdx char v4; // al _BYTE *v5; // rcx std::string *v6; // r15 __int128 v8; // [rsp+0h] [rbp-90h] BYREF void *__p; // [rsp+10h] [rbp-80h] std::string __str; // [rsp+20h] [rbp-70h] BYREF _BYTE v11[24]; // [rsp+38h] [rbp-58h] BYREF __int128 v12; // [rsp+50h] [rbp-40h] BYREF void *v13; // [rsp+60h] [rbp-30h] v2 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 760)); if ( !v2 ) goto LABEL_22; CCTextInputNode::getString(v11, v2); v4 = v11[0]; if ( (v11[0] & 1) != 0 ) { if ( *(_QWORD *)&v11[8] <= 0x14u ) goto LABEL_10; v5 = *(_BYTE **)&v11[16]; } else { if ( v11[0] <= 0x28u ) goto LABEL_10; v5 = &v11[1]; } LODWORD(v13) = *((_DWORD *)v5 + 4); v12 = *(_OWORD *)v5; if ( (v11[0] & 1) != 0 ) operator delete(*(void **)&v11[16]); v11[0] = 40; *(_OWORD *)&v11[1] = v12; *(_DWORD *)&v11[17] = (_DWORD)v13; v11[21] = 0; v4 = 40; LABEL_10: if ( (v4 & 1) != 0 ) { sub_10001AD30(&v8, *(const void **)&v11[16], *(unsigned __int64 *)&v11[8]); } else { __p = *(void **)&v11[16]; v8 = *(_OWORD *)v11; } LevelTools::base64EncodeString(&v12, &v8); if ( (v8 & 1) != 0 ) operator delete(__p); v6 = *(std::string **)(*(_QWORD *)(a1 + 1016) + 1840LL); if ( (v12 & 1) != 0 ) { sub_10001AD30(&__str, v13, *((unsigned __int64 *)&v12 + 1)); } else { __str.__r_.__value_.__r.__words[2] = (std::string::size_type)v13; *(_OWORD *)&__str.__r_.__value_.__l.0 = v12; } std::string::operator=(v6 + 20, &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 ) { if ( (v12 & 1) == 0 ) goto LABEL_20; LABEL_24: operator delete(v13); if ( (v11[0] & 1) == 0 ) goto LABEL_22; goto LABEL_21; } operator delete(__str.__r_.__value_.__l.__data_); if ( (v12 & 1) != 0 ) goto LABEL_24; LABEL_20: if ( (v11[0] & 1) != 0 ) LABEL_21: operator delete(*(void **)&v11[16]); LABEL_22: SetupTriggerPopup::onClose(a1, a2, v3); return __stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source