// // sub_1004CB79C from 0x1004cb79c to 0x1004cb8c4 (296 bytes) // // 2 xrefs: // > sub_1004D3A2C @ 0x1004d3a88 // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1004d3ecc // // This function is hookable on this platform (idp: arm, 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 11:06:25 +0000 // std::string *__fastcall sub_1004CB79C(_QWORD *a1, int a2, int a3, std::string *a4) { __int64 v7; // x0 __int64 v8; // x22 _OWORD *v9; // x23 const std::string::value_type *v10; // x1 void *v11; // x24 int v13; // [xsp+Ch] [xbp-54h] BYREF void *__p[2]; // [xsp+10h] [xbp-50h] BYREF __int64 v15; // [xsp+20h] [xbp-40h] v7 = sub_1004CB010((__int64)a1, a2); if ( !v7 ) { if ( !a4 ) return a4; v10 = "List not found."; LABEL_18: std::string::assign(a4, v10); return nullptr; } v8 = v7; if ( *(_BYTE *)(v7 + 496) != 1 ) goto LABEL_16; v9 = (_OWORD *)(v7 + 472); if ( *(char *)(v7 + 495) < 0 ) { sub_1000097D0(__p, *(void **)(v7 + 472), *(_QWORD *)(v7 + 480)); } else { *(_OWORD *)__p = *v9; v15 = *(_QWORD *)(v7 + 488); } if ( v15 >= 0 ) v11 = (void *)SHIBYTE(v15); else v11 = __p[1]; if ( (SHIBYTE(v15) & 0x8000000000000000LL) != 0 ) { operator delete(__p[0]); if ( v11 ) goto LABEL_13; goto LABEL_16; } if ( !v11 ) { LABEL_16: if ( !a4 ) return a4; v10 = "List has no data."; goto LABEL_18; } LABEL_13: v13 = a3; if ( *(char *)(v8 + 495) < 0 ) { sub_1000097D0(__p, *(void **)(v8 + 472), *(_QWORD *)(v8 + 480)); } else { *(_OWORD *)__p = *v9; v15 = *(_QWORD *)(v8 + 488); } a4 = (std::string *)EditorSFXManager::importFromString(a1, (__int64)__p, &v13, a4); if ( SHIBYTE(v15) < 0 ) operator delete(__p[0]); return a4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source