// // sub_100602BF0 from 0x100602bf0 to 0x100602e49 (601 bytes) // // 1 xrefs: // > GameSettingsLayer::valueDidChange @ 0x100602ad3 // // 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:34:31 +0000 // void __fastcall sub_100602BF0(__int64 a1) { int v1; // r15d unsigned int v2; // r14d const std::string::value_type *v3; // rsi char *v4; // rax __int64 v5; // rsi __int64 v6; // r14 int v7; // eax int v8; // edx std::string v9; // [rsp+0h] [rbp-80h] BYREF std::string v10; // [rsp+20h] [rbp-60h] BYREF std::string v11; // [rsp+38h] [rbp-48h] BYREF std::string v12; // [rsp+50h] [rbp-30h] BYREF *(_WORD *)&v12.__r_.__value_.__l.0 = 0; v11.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v11.__r_.__value_.__s.__data_, "Scratch"); v1 = 10; v2 = 2; switch ( *(_DWORD *)(a1 + 1144) ) { case 0: std::string::assign( &v12, "You need a Music Unlocker to play normal music in practice mode."); goto LABEL_10; case 1: v1 = 26; std::string::assign(&v12, "I think the Diamond Shopkeeper has one, weird guy..."); goto LABEL_10; case 2: std::string::assign(&v12, "SpaRkle gnAsH Glorp sHiMmerRr crUnCHle bLinGz..."); std::string::assign(&v11, "Diamond Shopkeeper"); v1 = 40; v2 = 4; if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_14; goto LABEL_10; case 3: v3 = "See what I mean?..."; goto LABEL_9; case 4: std::string::assign( &v12, "ShiM gNaw glEaM... bRinG ShiNy!"); std::string::assign(&v11, "Diamond Shopkeeper"); v1 = 41; v2 = 4; if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_14; goto LABEL_10; case 5: v1 = 11; std::string::assign(&v12, "Looks to me like you had enough shiny..."); goto LABEL_10; case 6: std::string::assign( &v12, "ShiMmer... sHim... bLiNg sNap... HA!"); std::string::assign(&v11, "Diamond Shopkeeper"); v1 = 42; v2 = 4; if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_10; LABEL_14: sub_10001AD30(&v9, v11.__r_.__value_.__l.__data_, v11.__r_.__value_.__l.__size_); break; case 7: v3 = "..."; LABEL_9: v1 = 12; std::string::assign(&v12, v3); goto LABEL_10; default: LABEL_10: v9 = v11; break; } if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30(&v10, v12.__r_.__value_.__l.__data_, v12.__r_.__value_.__l.__size_); else v10 = v12; v4 = DialogObject::create(&v9, &v10, v1, 0, 0xFFFFFF, 1.0); v5 = v2; v6 = DialogLayer::create((__int64)v4, v2); if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v10.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v9.__r_.__value_.__l.__data_); DialogLayer::addToMainScene(v6, v5); DialogLayer::updateChatPlacement(v6, 0); DialogLayer::animateIn(v6, 1); v7 = *(_DWORD *)(a1 + 1144); v8 = 0; if ( v7 < 7 ) v8 = v7 + 1; *(_DWORD *)(a1 + 1144) = v8; if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v11.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v12.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source