// // sub_10040D2E8 from 0x10040d2e8 to 0x10040d3f0 (264 bytes) // // 5 xrefs: // > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x10040cba8 // > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x10040cbc0 // > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x10040cbd0 // > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x10040e99c // > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x10040e9ac // // 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 // void __usercall sub_10040D2E8(int a1@, __int64 a2@, std::string *a3@) { const std::string::value_type *v6; // x1 void **v7; // x1 std::string::size_type v8; // x2 const std::string::value_type *v9; // x1 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF unsigned __int8 v11; // [xsp+1Fh] [xbp-21h] sub_100009900(a3, ""); if ( a1 > 3 ) { if ( a1 == 4 ) { v9 = "MainTime"; goto LABEL_21; } if ( a1 == 5 ) { v9 = "Attempts"; LABEL_21: std::string::assign(a3, v9); return; } LABEL_20: v9 = "NA"; goto LABEL_21; } if ( (unsigned int)(a1 - 1) >= 2 ) { if ( a1 == 3 ) { v9 = "Points"; goto LABEL_21; } goto LABEL_20; } if ( a1 == 1 ) v6 = "I"; else v6 = "T"; std::string::assign(a3, v6); GameToolbox::intToString(a2, __p); if ( (v11 & 0x80u) == 0 ) v7 = __p; else v7 = (void **)__p[0]; if ( (v11 & 0x80u) == 0 ) v8 = v11; else v8 = (std::string::size_type)__p[1]; std::string::append(a3, (const std::string::value_type *)v7, v8); if ( (char)v11 < 0 ) operator delete(__p[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source