// // SecretRewardsLayer::showDialog01 from 0x1007117b0 to 0x100712f01 (5969 bytes) // // 1 xrefs: // > SecretRewardsLayer::onShop @ 0x10070f4bb // // 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:36:07 +0000 // __int64 __fastcall SecretRewardsLayer::showDialog01(_DWORD *a1, __m128 a2) { __int64 v3; // r12 __int64 v4; // rax __int64 v5; // rax char *v6; // rax char *v7; // rax char *v8; // rax char *v9; // rax char v10; // r15 char *v11; // rax char *v12; // rax char *v13; // rax std::string::pointer data; // rdi __int64 v15; // rax const char *CString; // r15 size_t v17; // rax std::string::size_type v18; // r12 char *v19; // r13 char *v20; // rax char *v21; // rax char *v22; // rax char *v23; // rax char *v24; // rax char *v25; // rax char *v26; // rax char *v27; // rax char *v28; // rax char *v29; // rax char *v30; // rax char *v31; // rax __int64 v32; // rax const char *v33; // r15 size_t v34; // rax std::string::size_type v35; // r12 char *v36; // r13 size_t v37; // r14 char *v38; // rax __int64 v39; // rax const char *v40; // r15 size_t v41; // rax std::string::size_type v42; // r12 char *v43; // r13 size_t v44; // r14 char *v45; // rax char *v46; // rax char *v47; // rax size_t v48; // r14 char *v49; // rax char *v50; // rax char *v51; // rax char *v52; // rax __int64 v53; // rax int v54; // eax int v55; // ecx char *v56; // r14 std::string v58; // [rsp+0h] [rbp-540h] BYREF std::string v59; // [rsp+18h] [rbp-528h] BYREF std::string v60; // [rsp+30h] [rbp-510h] BYREF std::string v61; // [rsp+48h] [rbp-4F8h] BYREF std::string v62; // [rsp+60h] [rbp-4E0h] BYREF std::string v63; // [rsp+78h] [rbp-4C8h] BYREF std::string v64; // [rsp+90h] [rbp-4B0h] BYREF std::string v65; // [rsp+A8h] [rbp-498h] BYREF std::string v66; // [rsp+C0h] [rbp-480h] BYREF std::string v67; // [rsp+D8h] [rbp-468h] BYREF std::string v68; // [rsp+F0h] [rbp-450h] BYREF std::string v69; // [rsp+108h] [rbp-438h] BYREF std::string v70; // [rsp+120h] [rbp-420h] BYREF std::string v71; // [rsp+138h] [rbp-408h] BYREF std::string v72; // [rsp+150h] [rbp-3F0h] BYREF std::string v73; // [rsp+168h] [rbp-3D8h] BYREF std::string v74; // [rsp+180h] [rbp-3C0h] BYREF std::string v75; // [rsp+198h] [rbp-3A8h] BYREF std::string v76; // [rsp+1B0h] [rbp-390h] BYREF std::string v77; // [rsp+1C8h] [rbp-378h] BYREF std::string v78; // [rsp+1E0h] [rbp-360h] BYREF std::string v79; // [rsp+1F8h] [rbp-348h] BYREF std::string v80; // [rsp+210h] [rbp-330h] BYREF std::string v81; // [rsp+228h] [rbp-318h] BYREF std::string v82; // [rsp+240h] [rbp-300h] BYREF std::string v83; // [rsp+258h] [rbp-2E8h] BYREF std::string v84; // [rsp+270h] [rbp-2D0h] BYREF std::string v85; // [rsp+288h] [rbp-2B8h] BYREF std::string v86; // [rsp+2A0h] [rbp-2A0h] BYREF std::string v87; // [rsp+2B8h] [rbp-288h] BYREF std::string v88; // [rsp+2D0h] [rbp-270h] BYREF std::string v89; // [rsp+2E8h] [rbp-258h] BYREF std::string v90; // [rsp+300h] [rbp-240h] BYREF std::string v91; // [rsp+318h] [rbp-228h] BYREF std::string v92; // [rsp+330h] [rbp-210h] BYREF std::string v93; // [rsp+348h] [rbp-1F8h] BYREF std::string v94; // [rsp+360h] [rbp-1E0h] BYREF std::string v95; // [rsp+378h] [rbp-1C8h] BYREF std::string v96; // [rsp+390h] [rbp-1B0h] BYREF std::string v97; // [rsp+3A8h] [rbp-198h] BYREF std::string v98; // [rsp+3C0h] [rbp-180h] BYREF std::string v99; // [rsp+3D8h] [rbp-168h] BYREF std::string v100; // [rsp+3F0h] [rbp-150h] BYREF std::string v101; // [rsp+408h] [rbp-138h] BYREF std::string v102; // [rsp+420h] [rbp-120h] BYREF std::string v103; // [rsp+438h] [rbp-108h] BYREF std::string v104; // [rsp+450h] [rbp-F0h] BYREF std::string v105; // [rsp+468h] [rbp-D8h] BYREF std::string v106; // [rsp+480h] [rbp-C0h] BYREF std::string v107; // [rsp+498h] [rbp-A8h] BYREF std::string v108; // [rsp+4B0h] [rbp-90h] BYREF std::string __dst; // [rsp+4C8h] [rbp-78h] BYREF std::string v110; // [rsp+4E0h] [rbp-60h] BYREF std::string v111; // [rsp+4F8h] [rbp-48h] BYREF __int64 v112; // [rsp+510h] [rbp-30h] v3 = sub_1007FE900(a1); v4 = GameStatsManager::sharedState(); if ( (int)GameStatsManager::getStat(v4, "13", a2) >= 500 ) { v5 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getUGV(v5, "10") ) { v76.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v76.__r_.__value_.__s.__data_, "Scratch"); v58.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v58.__r_.__value_.__r.__words[0] = 57; v58.__r_.__value_.__l.__size_ = 53; strcpy(v58.__r_.__value_.__l.__data_, "Oh, the diamonds.\nYou found them."); v6 = DialogObject::create(&v76, &v58, 10, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v6); if ( (*(_BYTE *)&v58.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v58.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v76.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v76.__r_.__value_.__l.__data_); v77.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v77.__r_.__value_.__s.__data_, "Scratch"); v59.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v59.__r_.__value_.__r.__words[0] = 57; v59.__r_.__value_.__l.__size_ = 55; strcpy(v59.__r_.__value_.__l.__data_, "Alright come in, quickly before someone sees you."); v7 = DialogObject::create(&v77, &v59, 13, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v7); if ( (*(_BYTE *)&v59.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v59.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v77.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v77.__r_.__value_.__l.__data_); v78.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v78.__r_.__value_.__s.__data_, "Scratch"); v60.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x28u); v60.__r_.__value_.__r.__words[0] = 41; v60.__r_.__value_.__l.__size_ = 37; strcpy(v60.__r_.__value_.__l.__data_, "You never know who might be watching."); v8 = DialogObject::create(&v78, &v60, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v8); if ( (*(_BYTE *)&v60.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v60.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v78.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v78.__r_.__value_.__l.__data_); v79.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v79.__r_.__value_.__s.__data_, "Scratch"); strcpy((char *)&v80, "*..."); v9 = DialogObject::create(&v79, &v80, 9, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v9); if ( (*(_BYTE *)&v80.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v80.__r_.__value_.__l.__data_); v10 = 1; if ( (*(_BYTE *)&v79.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v79.__r_.__value_.__l.__data_); goto LABEL_141; } } switch ( a1[142] ) { case 0: v81.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v81.__r_.__value_.__s.__data_, "Scratch"); v61.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v61.__r_.__value_.__r.__words[0] = 33; v61.__r_.__value_.__l.__size_ = 28; strcpy(v61.__r_.__value_.__l.__data_, "Uhm, there is no rope."); v11 = DialogObject::create(&v81, &v61, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v11); if ( (*(_BYTE *)&v61.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v61.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v81.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v81.__r_.__value_.__l.__data_); v82.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v82.__r_.__value_.__s.__data_, "Scratch"); v62.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v62.__r_.__value_.__r.__words[0] = 57; v62.__r_.__value_.__l.__size_ = 54; strcpy(v62.__r_.__value_.__l.__data_, "Just... Pretend this never happened."); v12 = DialogObject::create(&v82, &v62, 9, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v12); if ( (*(_BYTE *)&v62.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v62.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v82.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v82.__r_.__value_.__l.__data_); v83.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v83.__r_.__value_.__s.__data_, "Scratch"); strcpy((char *)&v84, "*..."); v13 = DialogObject::create(&v83, &v84, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v13); if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v84.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v83.__r_.__value_.__s.0 & 1) != 0 ) { data = v83.__r_.__value_.__l.__data_; goto LABEL_116; } goto LABEL_138; case 1: v85.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v85.__r_.__value_.__s.__data_, "Scratch"); v63.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x28u); v63.__r_.__value_.__r.__words[0] = 41; v63.__r_.__value_.__l.__size_ = 38; strcpy(v63.__r_.__value_.__l.__data_, "I'm gonna need you to stop doing that."); v29 = DialogObject::create(&v85, &v63, 13, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v29); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v63.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v85.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v85.__r_.__value_.__l.__data_); v86.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v86.__r_.__value_.__s.__data_, "Scratch"); v64.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v64.__r_.__value_.__r.__words[0] = 57; v64.__r_.__value_.__l.__size_ = 48; strcpy(v64.__r_.__value_.__l.__data_, "If RubRub sees this I am in BIG trouble."); v30 = DialogObject::create(&v86, &v64, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v30); if ( (*(_BYTE *)&v64.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v64.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v86.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v86.__r_.__value_.__l.__data_); v87.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v87.__r_.__value_.__s.__data_, "Scratch"); v65.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x28u); v65.__r_.__value_.__r.__words[0] = 41; v65.__r_.__value_.__l.__size_ = 36; strcpy(v65.__r_.__value_.__l.__data_, "I hate that guy..."); v31 = DialogObject::create(&v87, &v65, 12, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v31); if ( (*(_BYTE *)&v65.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v65.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v87.__r_.__value_.__s.0 & 1) != 0 ) { data = v87.__r_.__value_.__l.__data_; goto LABEL_116; } goto LABEL_138; case 2: v88.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v88.__r_.__value_.__s.__data_, "Scratch"); v66.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v66.__r_.__value_.__r.__words[0] = 65; v66.__r_.__value_.__l.__size_ = 59; strcpy(v66.__r_.__value_.__l.__data_, "Finally, I thought you wou..."); v20 = DialogObject::create(&v88, &v66, 10, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v20); if ( (*(_BYTE *)&v66.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v66.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v88.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v88.__r_.__value_.__l.__data_); v89.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v89.__r_.__value_.__s.__data_, "Scratch"); v67.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x30u); v67.__r_.__value_.__r.__words[0] = 49; v67.__r_.__value_.__l.__size_ = 40; strcpy(v67.__r_.__value_.__l.__data_, "Wait, You're not the delivery guy."); v21 = DialogObject::create(&v89, &v67, 11, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v21); if ( (*(_BYTE *)&v67.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v67.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v89.__r_.__value_.__l.__data_); v90.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v90.__r_.__value_.__s.__data_, "Scratch"); v68.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x48u); v68.__r_.__value_.__r.__words[0] = 73; v68.__r_.__value_.__l.__size_ = 64; strcpy(v68.__r_.__value_.__l.__data_, "How am I supposed to run a shop if I don't have any merchandise?"); v22 = DialogObject::create(&v90, &v68, 12, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v22); if ( (*(_BYTE *)&v68.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v68.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v90.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v90.__r_.__value_.__l.__data_); v91.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v91.__r_.__value_.__s.__data_, "Scratch"); v69.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v69.__r_.__value_.__r.__words[0] = 33; v69.__r_.__value_.__l.__size_ = 24; strcpy(v69.__r_.__value_.__l.__data_, "I mean, what shop?"); v23 = DialogObject::create(&v91, &v69, 13, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v23); if ( (*(_BYTE *)&v69.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v69.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v91.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v91.__r_.__value_.__l.__data_); v92.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v92.__r_.__value_.__s.__data_, "Scratch"); strcpy((char *)&v93, "*..."); v24 = DialogObject::create(&v92, &v93, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v24); if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v93.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v92.__r_.__value_.__s.0 & 1) != 0 ) { data = v92.__r_.__value_.__l.__data_; goto LABEL_116; } goto LABEL_138; case 3: v94.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v94.__r_.__value_.__s.__data_, "Scratch"); v70.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x60u); v70.__r_.__value_.__r.__words[0] = 97; v70.__r_.__value_.__l.__size_ = 89; strcpy( v70.__r_.__value_.__l.__data_, "Look, I can't let you in.\nNot without the... stuff."); v25 = DialogObject::create(&v94, &v70, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v25); if ( (*(_BYTE *)&v70.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v70.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v94.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v94.__r_.__value_.__l.__data_); v95.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v95.__r_.__value_.__s.__data_, "Scratch"); v71.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x48u); v71.__r_.__value_.__r.__words[0] = 73; v71.__r_.__value_.__l.__size_ = 64; strcpy(v71.__r_.__value_.__l.__data_, "I'm not even supposed to be here.\nI'm just a glitch in the code."); v26 = DialogObject::create(&v95, &v71, 13, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v26); if ( (*(_BYTE *)&v71.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v71.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v95.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v95.__r_.__value_.__l.__data_); v96.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v96.__r_.__value_.__s.__data_, "Scratch"); v72.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au); v72.__r_.__value_.__r.__words[0] = 27; v72.__r_.__value_.__l.__size_ = 23; strcpy(v72.__r_.__value_.__l.__data_, "Did you hear something?"); v27 = DialogObject::create(&v96, &v72, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v27); if ( (*(_BYTE *)&v72.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v72.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v96.__r_.__value_.__l.__data_); v97.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v97.__r_.__value_.__s.__data_, "Scratch"); strcpy((char *)&v98, "*..."); v28 = DialogObject::create(&v97, &v98, 9, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v28); if ( (*(_BYTE *)&v98.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v98.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v97.__r_.__value_.__s.0 & 1) != 0 ) { data = v97.__r_.__value_.__l.__data_; goto LABEL_116; } goto LABEL_138; case 4: v112 = v3; v99.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v99.__r_.__value_.__s.__data_, "Scratch"); v15 = sub_10088E820( "Alright, alright. If you collect\n%i Diamonds I will let you in.", *(_BYTE *)&v58.__r_.__value_.__l.0); CString = (const char *)cocos2d::CCString::getCString(v15); v17 = strlen(CString); if ( v17 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v18 = v17; if ( v17 >= 0x17 ) { v37 = 26; if ( (v17 | 7) != 0x17 ) v37 = (v17 | 7) + 1; v19 = (char *)operator new(v37); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)v19; __dst.__r_.__value_.__r.__words[0] = v37 | 1; __dst.__r_.__value_.__l.__size_ = v18; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v17); v19 = __dst.__r_.__value_.__s.__data_; if ( !v17 ) goto LABEL_92; } memmove(v19, CString, v18); LABEL_92: v19[v18] = 0; v38 = DialogObject::create(&v99, &__dst, 10, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v112, v38); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v99.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v99.__r_.__value_.__l.__data_); v100.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v100.__r_.__value_.__s.__data_, "Scratch"); v39 = sub_10088E820("Usually the limit is %i, but you look a bit scary.", *(_BYTE *)&v58.__r_.__value_.__l.0); v40 = (const char *)cocos2d::CCString::getCString(v39); v41 = strlen(v40); if ( v41 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v42 = v41; if ( v41 >= 0x17 ) { v48 = 26; if ( (v41 | 7) != 0x17 ) v48 = (v41 | 7) + 1; v43 = (char *)operator new(v48); v110.__r_.__value_.__r.__words[2] = (std::string::size_type)v43; v110.__r_.__value_.__r.__words[0] = v48 | 1; v110.__r_.__value_.__l.__size_ = v42; } else { v110.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v41); v43 = v110.__r_.__value_.__s.__data_; if ( !v41 ) goto LABEL_121; } memmove(v43, v40, v42); LABEL_121: v43[v42] = 0; v49 = DialogObject::create(&v100, &v110, 13, 0, 0xFFFFFF, 1.0); v3 = v112; sub_1007FEBF0(v112, v49); if ( (*(_BYTE *)&v110.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v110.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v100.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v100.__r_.__value_.__l.__data_); v101.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v101.__r_.__value_.__s.__data_, "Scratch"); v73.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v73.__r_.__value_.__r.__words[0] = 57; v73.__r_.__value_.__l.__size_ = 52; strcpy(v73.__r_.__value_.__l.__data_, "Just, get out of here before someone sees you."); v50 = DialogObject::create(&v101, &v73, 11, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v50); if ( (*(_BYTE *)&v73.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v73.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v101.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v101.__r_.__value_.__l.__data_); v102.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v102.__r_.__value_.__s.__data_, "Scratch"); v74.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v74.__r_.__value_.__r.__words[0] = 33; v74.__r_.__value_.__l.__size_ = 29; strcpy(v74.__r_.__value_.__l.__data_, "Do you smell burning chicken?"); v51 = DialogObject::create(&v102, &v74, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v51); if ( (*(_BYTE *)&v74.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v74.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v102.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v102.__r_.__value_.__l.__data_); v103.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v103.__r_.__value_.__s.__data_, "Scratch"); strcpy((char *)&v104, "*..."); v52 = DialogObject::create(&v103, &v104, 9, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v52); if ( (*(_BYTE *)&v104.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v104.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v103.__r_.__value_.__l.__data_); v53 = GameManager::sharedState(); GameManager::setUGV(v53, "10"); LABEL_138: v54 = a1[142]; v55 = v54 + 1; v10 = 0; if ( v54 >= 5 ) v55 = 0; a1[142] = v55; LABEL_141: v56 = DialogLayer::createWithObjects(v3, 2u); (*(void (__fastcall **)(_DWORD *, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v56, 100); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v56 + 72LL))(v56, 1); if ( v10 ) *((_QWORD *)v56 + 78) = a1 + 102; DialogLayer::updateChatPlacement((__int64)v56, 0); return DialogLayer::animateInRandomSide((__int64)v56); case 5: v112 = v3; v105.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v105.__r_.__value_.__s.__data_, "Scratch"); v32 = sub_10088E820( "Collect %i Diamonds and I will let you in.", *(_BYTE *)&v58.__r_.__value_.__l.0); v33 = (const char *)cocos2d::CCString::getCString(v32); v34 = strlen(v33); if ( v34 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v35 = v34; if ( v34 >= 0x17 ) { v44 = 26; if ( (v34 | 7) != 0x17 ) v44 = (v34 | 7) + 1; v36 = (char *)operator new(v44); v111.__r_.__value_.__r.__words[2] = (std::string::size_type)v36; v111.__r_.__value_.__r.__words[0] = v44 | 1; v111.__r_.__value_.__l.__size_ = v35; } else { v111.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v34); v36 = v111.__r_.__value_.__s.__data_; if ( !v34 ) { LABEL_104: v36[v35] = 0; v45 = DialogObject::create(&v105, &v111, 10, 0, 0xFFFFFF, 0.80000001); v3 = v112; sub_1007FEBF0(v112, v45); if ( (*(_BYTE *)&v111.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v111.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v105.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v105.__r_.__value_.__l.__data_); v106.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v106.__r_.__value_.__s.__data_, "Scratch"); v75.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x28u); v75.__r_.__value_.__r.__words[0] = 41; v75.__r_.__value_.__l.__size_ = 38; strcpy(v75.__r_.__value_.__l.__data_, "Now go away, RubRub might be watching."); v46 = DialogObject::create(&v106, &v75, 8, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v46); if ( (*(_BYTE *)&v75.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v75.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v106.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v106.__r_.__value_.__l.__data_); v107.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v107.__r_.__value_.__s.__data_, "Scratch"); strcpy((char *)&v108, "*..."); v47 = DialogObject::create(&v107, &v108, 9, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v3, v47); if ( (*(_BYTE *)&v108.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v108.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v107.__r_.__value_.__s.0 & 1) != 0 ) { data = v107.__r_.__value_.__l.__data_; LABEL_116: operator delete(data); } goto LABEL_138; } } memmove(v36, v33, v35); goto LABEL_104; default: goto LABEL_138; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source