// // SecretRewardsLayer::showLockedChest from 0x10070fd90 to 0x10070ff2c (412 bytes) // // 0 xrefs: // // 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:06 +0000 // void __fastcall SecretRewardsLayer::showLockedChest(__int64 a1) { int v1; // r14d const std::string::value_type *v2; // rsi char *v3; // rax __int64 v4; // r14 int v5; // eax int v6; // edx std::string v7; // [rsp+0h] [rbp-60h] BYREF std::string v8; // [rsp+20h] [rbp-40h] BYREF std::string v9; // [rsp+38h] [rbp-28h] BYREF v9.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)6; *(_DWORD *)((char *)&v9.__r_.__value_.__l.0 + 1) = 8026746; v1 = 2; switch ( *(_DWORD *)(a1 + 592) ) { case 0: v2 = "The chest is not ready."; goto LABEL_13; case 1: v2 = "It's still not ready..."; goto LABEL_13; case 2: v2 = "Seriously, stop."; goto LABEL_13; case 3: v1 = 17; std::string::assign(&v9, "Wow it magically opened!"); break; case 4: v2 = "I was wrong."; goto LABEL_13; case 5: v2 = "S T O P"; goto LABEL_13; case 6: v2 = "El cofre esta cerrado."; goto LABEL_13; case 7: v2 = "This is getting ridiculous."; goto LABEL_13; case 8: v2 = "I really can't help you."; goto LABEL_13; case 9: v2 = "Don't make me do it..."; goto LABEL_13; case 0xA: v2 = "Roses are red. Violets are blue. This is not. 2.2"; LABEL_13: std::string::assign(&v9, v2); break; default: break; } v8.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26; strcpy(v8.__r_.__value_.__s.__data_, "The Keymaster"); if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30(&v7, v9.__r_.__value_.__l.__data_, v9.__r_.__value_.__l.__size_); else v7 = v9; v3 = DialogObject::create(&v8, &v7, v1, 0, 0xFFFFFF, 1.0); v4 = DialogLayer::create((__int64)v3, 2u); if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v7.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v8.__r_.__value_.__l.__data_); DialogLayer::addToMainScene(v4, 2); DialogLayer::updateChatPlacement(v4, 0); DialogLayer::animateInRandomSide(v4); v5 = *(_DWORD *)(a1 + 592); v6 = 0; if ( v5 < 10 ) v6 = v5 + 1; *(_DWORD *)(a1 + 592) = v6; if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v9.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source