// // SecretLayer5::showDialog from 0x10047dbb0 to 0x10047e352 (1954 bytes) // // 0 xrefs: // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall SecretLayer5::showDialog(SecretLayer5 *a1, int a2) { cocos2d::CCArray *v2; // r14 char *v3; // rax void **v4; // r15 char *v5; // rax char *v6; // rax char *v7; // rax DialogLayer *v8; // r14 char *v9; // rax char *v10; // rax char *v11; // rax char *v12; // rax char *v13; // rax char *v14; // rax std::string v15; // [rsp+8h] [rbp-208h] BYREF __int128 v16; // [rsp+20h] [rbp-1F0h] BYREF __int64 v17; // [rsp+30h] [rbp-1E0h] BYREF std::string v18; // [rsp+38h] [rbp-1D8h] BYREF __int128 v19; // [rsp+50h] [rbp-1C0h] BYREF __int64 v20; // [rsp+60h] [rbp-1B0h] BYREF std::string v21; // [rsp+68h] [rbp-1A8h] BYREF __int128 v22; // [rsp+80h] [rbp-190h] BYREF __int64 v23; // [rsp+90h] [rbp-180h] BYREF std::string v24; // [rsp+98h] [rbp-178h] BYREF __int128 v25; // [rsp+B0h] [rbp-160h] BYREF __int64 v26; // [rsp+C0h] [rbp-150h] BYREF std::string v27; // [rsp+C8h] [rbp-148h] BYREF __int128 v28; // [rsp+E0h] [rbp-130h] BYREF __int64 v29; // [rsp+F0h] [rbp-120h] BYREF __int128 v30; // [rsp+F8h] [rbp-118h] BYREF void *v31; // [rsp+108h] [rbp-108h] std::string v32; // [rsp+110h] [rbp-100h] BYREF __int128 v33; // [rsp+128h] [rbp-E8h] BYREF void *v34; // [rsp+138h] [rbp-D8h] std::string v35; // [rsp+140h] [rbp-D0h] BYREF __int128 v36; // [rsp+158h] [rbp-B8h] BYREF void *v37; // [rsp+168h] [rbp-A8h] std::string v38; // [rsp+170h] [rbp-A0h] BYREF __int128 v39; // [rsp+188h] [rbp-88h] BYREF void *v40; // [rsp+198h] [rbp-78h] std::string v41; // [rsp+1A0h] [rbp-70h] BYREF __int128 v42; // [rsp+1B8h] [rbp-58h] BYREF void *v43; // [rsp+1C8h] [rbp-48h] std::string v44; // [rsp+1D0h] [rbp-40h] BYREF v2 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2); switch ( a2 ) { case 1: LOBYTE(v30) = 28; strcpy((char *)&v30 + 1, "The Gatekeeper"); v15.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v15.__r_.__value_.__r.__words[0] = 33; v15.__r_.__value_.__l.__size_ = 24; strcpy(v15.__r_.__value_.__l.__data_, "This is random message 1"); v3 = DialogObject::create(&v30, &v15, 3, 1, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v3); if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v15.__r_.__value_.__l.__data_); if ( (v30 & 1) != 0 ) operator delete(v31); v4 = (void **)&v17; LOBYTE(v16) = 28; strcpy((char *)&v16 + 1, "The Gatekeeper"); strcpy((char *)&v32, "(Random message 1 end"); v5 = DialogObject::create(&v16, &v32, 3, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v5); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v32.__r_.__value_.__l.__data_); if ( (v16 & 1) != 0 ) goto LABEL_17; goto LABEL_18; case 2: LOBYTE(v33) = 28; strcpy((char *)&v33 + 1, "The Gatekeeper"); v18.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v18.__r_.__value_.__r.__words[0] = 33; v18.__r_.__value_.__l.__size_ = 24; strcpy(v18.__r_.__value_.__l.__data_, "This is random message 2"); v13 = DialogObject::create(&v33, &v18, 3, 1, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v13); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v18.__r_.__value_.__l.__data_); if ( (v33 & 1) != 0 ) operator delete(v34); v4 = (void **)&v20; LOBYTE(v19) = 28; strcpy((char *)&v19 + 1, "The Gatekeeper"); strcpy((char *)&v35, "(Random message 2 end"); v14 = DialogObject::create(&v19, &v35, 3, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v14); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v35.__r_.__value_.__l.__data_); if ( (v19 & 1) == 0 ) goto LABEL_18; goto LABEL_17; case 3: LOBYTE(v36) = 28; strcpy((char *)&v36 + 1, "The Gatekeeper"); v21.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v21.__r_.__value_.__r.__words[0] = 33; v21.__r_.__value_.__l.__size_ = 24; strcpy(v21.__r_.__value_.__l.__data_, "This is random message 3"); v9 = DialogObject::create(&v36, &v21, 3, 1, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v9); if ( (*(_BYTE *)&v21.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v21.__r_.__value_.__l.__data_); if ( (v36 & 1) != 0 ) operator delete(v37); v4 = (void **)&v23; LOBYTE(v22) = 28; strcpy((char *)&v22 + 1, "The Gatekeeper"); strcpy((char *)&v38, "(Random message 3 end"); v10 = DialogObject::create(&v22, &v38, 3, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v10); if ( (*(_BYTE *)&v38.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v38.__r_.__value_.__l.__data_); if ( (v22 & 1) == 0 ) goto LABEL_18; goto LABEL_17; case 4: LOBYTE(v39) = 28; strcpy((char *)&v39 + 1, "The Gatekeeper"); v24.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v24.__r_.__value_.__r.__words[0] = 33; v24.__r_.__value_.__l.__size_ = 24; strcpy(v24.__r_.__value_.__l.__data_, "This is random message 4"); v11 = DialogObject::create(&v39, &v24, 3, 1, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v11); if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v24.__r_.__value_.__l.__data_); if ( (v39 & 1) != 0 ) operator delete(v40); v4 = (void **)&v26; LOBYTE(v25) = 28; strcpy((char *)&v25 + 1, "The Gatekeeper"); strcpy((char *)&v41, "(Random message 4 end"); v12 = DialogObject::create(&v25, &v41, 3, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v12); if ( (*(_BYTE *)&v41.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v41.__r_.__value_.__l.__data_); if ( (v25 & 1) == 0 ) goto LABEL_18; goto LABEL_17; case 5: LOBYTE(v42) = 28; strcpy((char *)&v42 + 1, "The Gatekeeper"); v27.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v27.__r_.__value_.__r.__words[0] = 33; v27.__r_.__value_.__l.__size_ = 24; strcpy(v27.__r_.__value_.__l.__data_, "This is random message 5"); v6 = DialogObject::create(&v42, &v27, 3, 1, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v6); if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v27.__r_.__value_.__l.__data_); if ( (v42 & 1) != 0 ) operator delete(v43); v4 = (void **)&v29; LOBYTE(v28) = 28; strcpy((char *)&v28 + 1, "The Gatekeeper"); strcpy((char *)&v44, "(Random message 5 end"); v7 = DialogObject::create(&v28, &v44, 3, 0, 0xFFFFFF, 1.0); sub_10071FCD0(v2, v7); if ( (*(_BYTE *)&v44.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v44.__r_.__value_.__l.__data_); if ( (v28 & 1) != 0 ) LABEL_17: operator delete(*v4); LABEL_18: v8 = DialogLayer::createWithObjects(v2, 2); v8->m_delegate = &a1->DialogDelegate; ((void (__fastcall *)(SecretLayer5 *, DialogLayer *, __int64))a1->addChild_0)(a1, v8, 100); DialogLayer::updateChatPlacement(v8, Center); DialogLayer::animateIn(v8, FromLeft); break; default: return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source