// // SecretLayer3::firstInteractionStep2 from 0x1004a60c0 to 0x1004a642d (877 bytes) // // 2 xrefs: // > SecretLayer3::onBack @ 0x1004a5fcb // > SecretLayer3::firstInteractionStep1 @ 0x1004a608b // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall SecretLayer3::firstInteractionStep2(SecretLayer3 *a1) { __int64 v1; // rsi cocos2d::CCArray *v2; // r14 char *v3; // rax char *v4; // rax char *v5; // rax char *v6; // rax DialogLayer *v7; // r14 __int128 v8; // [rsp+0h] [rbp-D0h] BYREF void *v9; // [rsp+10h] [rbp-C0h] __int128 v10; // [rsp+18h] [rbp-B8h] BYREF void *v11; // [rsp+28h] [rbp-A8h] __int128 v12; // [rsp+30h] [rbp-A0h] BYREF void *v13; // [rsp+40h] [rbp-90h] __int128 v14; // [rsp+48h] [rbp-88h] BYREF void *v15; // [rsp+58h] [rbp-78h] std::string v16; // [rsp+60h] [rbp-70h] BYREF std::string v17; // [rsp+78h] [rbp-58h] BYREF std::string v18; // [rsp+90h] [rbp-40h] BYREF std::string v19; // [rsp+A8h] [rbp-28h] BYREF v2 = (cocos2d::CCArray *)sub_10071F9E0(a1, v1); LOBYTE(v8) = 6; *(_DWORD *)((char *)&v8 + 1) = 3026478; v16.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x48u); v16.__r_.__value_.__r.__words[0] = 73; v16.__r_.__value_.__l.__size_ = 65; strcpy(v16.__r_.__value_.__l.__data_, "Well, well, well.\nWhat do we have here?"); v3 = DialogObject::create(&v8, &v16, 15, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v3); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v16.__r_.__value_.__l.__data_); if ( (v8 & 1) != 0 ) operator delete(v9); LOBYTE(v10) = 6; *(_DWORD *)((char *)&v10 + 1) = 3026478; v17.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x50u); v17.__r_.__value_.__r.__words[0] = 81; v17.__r_.__value_.__l.__size_ = 78; strcpy( v17.__r_.__value_.__l.__data_, "You look like someone who is interested in a deal..."); v4 = DialogObject::create(&v10, &v17, 15, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v4); if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v17.__r_.__value_.__l.__data_); if ( (v10 & 1) != 0 ) operator delete(v11); LOBYTE(v12) = 6; *(_DWORD *)((char *)&v12 + 1) = 3026478; v18.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x48u); v18.__r_.__value_.__r.__words[0] = 73; v18.__r_.__value_.__l.__size_ = 69; strcpy(v18.__r_.__value_.__l.__data_, "Help me get out of here, and I will make it worth your while."); v5 = DialogObject::create(&v12, &v18, 15, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v5); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v18.__r_.__value_.__l.__data_); if ( (v12 & 1) != 0 ) operator delete(v13); LOBYTE(v14) = 6; *(_DWORD *)((char *)&v14 + 1) = 3026478; v19.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x48u); v19.__r_.__value_.__r.__words[0] = 73; v19.__r_.__value_.__l.__size_ = 66; strcpy(v19.__r_.__value_.__l.__data_, "See those locks over there?\nYou need to unlock them."); v6 = DialogObject::create(&v14, &v19, 15, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v6); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v19.__r_.__value_.__l.__data_); if ( (v14 & 1) != 0 ) operator delete(v15); v7 = DialogLayer::createWithObjects(v2, 4); ((void (__fastcall *)(SecretLayer3 *, DialogLayer *, __int64))a1->addChild_0)(a1, v7, 100); v7->m_delegate = &a1->DialogDelegate; ((void (__fastcall *)(DialogLayer *, __int64))v7->setTag)(v7, 1); DialogLayer::updateChatPlacement(v7, Top); DialogLayer::animateIn(v7, FromCenter); SecretLayer3::animateEyes(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source