// // sub_100580580 from 0x100580580 to 0x10058063f (191 bytes) // // 5 xrefs: // > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x10057f954 // > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x10057f974 // > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x10057f986 // > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x10058233c // > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x10058234e // // 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 // std::string *__fastcall sub_100580580(std::string *this, int a2, int a3, double a4) { bool v5; // zf const std::string::value_type *v6; // rsi const std::string::value_type *v7; // rsi std::string::size_type v8; // rdx const std::string::value_type *v9; // rsi size_t v11[2]; // [rsp+8h] [rbp-28h] BYREF void *__p; // [rsp+18h] [rbp-18h] *(_WORD *)&this->__r_.__value_.__l.0 = 0; switch ( a2 ) { case 1: case 2: v5 = a2 == 1; v6 = "T"; if ( v5 ) v6 = "I"; std::string::assign(this, v6); GameToolbox::intToString(v11, a3, a4); if ( (v11[0] & 1) != 0 ) { v7 = (const std::string::value_type *)__p; v8 = v11[1]; } else { v8 = LOBYTE(v11[0]) >> 1; v7 = (char *)v11 + 1; } std::string::append(this, v7, v8); if ( (v11[0] & 1) != 0 ) operator delete(__p); return this; case 3: v9 = "Points"; goto LABEL_10; case 4: v9 = "MainTime"; goto LABEL_10; case 5: v9 = "Attempts"; goto LABEL_10; default: v9 = "NA"; LABEL_10: std::string::assign(this, v9); return this; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source