// // sub_1008EDE10 from 0x1008ede10 to 0x1008edfb6 (422 bytes) // // 2 xrefs: // > sub_1008F8AA0 @ 0x1008f8b0b // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f9138 // // 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:37:54 +0000 // __int64 __fastcall sub_1008EDE10(_QWORD *a1, int a2, unsigned __int8 a3, std::string *a4) { __int64 v6; // rdi unsigned int v8; // r13d __int64 v9; // rax __int64 v10; // r12 const std::string::value_type *v11; // rsi unsigned int v12; // ebx __int64 v14; // r13 __int64 v15; // r13 __int64 v16; // [rsp+0h] [rbp-50h] int v17; // [rsp+Ch] [rbp-44h] BYREF __int128 v18; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v6 = a1[19]; if ( v6 == 0 || a2 <= 0 || !(unsigned int)sub_1007FEF90(v6) ) { LABEL_10: if ( !a4 ) return 0; v11 = "List not found."; LABEL_12: std::string::assign(a4, v11); return 0; } v8 = 0; while ( 1 ) { v9 = sub_1007FEFE0(a1[19], v8); if ( v9 ) { if ( *(_DWORD *)(v9 + 320) == a2 ) break; } if ( ++v8 >= (unsigned int)sub_1007FEF90(a1[19]) ) goto LABEL_10; } if ( *(_BYTE *)(v9 + 496) != 1 ) goto LABEL_21; v10 = v9 + 472; if ( (*(_BYTE *)(v9 + 472) & 1) != 0 ) { v14 = v9; sub_10001AD30(&v18, *(const void **)(v9 + 488), *(_QWORD *)(v9 + 480)); v9 = v14; } else { __p = *(void **)(v9 + 488); v18 = *(_OWORD *)v10; } if ( (v18 & 1) != 0 ) { v15 = *((_QWORD *)&v18 + 1); v16 = v9; operator delete(__p); v9 = v16; if ( v15 ) goto LABEL_18; goto LABEL_21; } if ( !((unsigned __int8)v18 >> 1) ) { LABEL_21: if ( !a4 ) return 0; v11 = "List has no data."; goto LABEL_12; } LABEL_18: v17 = a3; if ( (*(_BYTE *)v10 & 1) != 0 ) { sub_10001AD30(&v18, *(const void **)(v9 + 488), *(_QWORD *)(v9 + 480)); } else { __p = *(void **)(v10 + 16); v18 = *(_OWORD *)v10; } v12 = EditorSFXManager::importFromString(a1, (unsigned __int8 *)&v18, &v17, a4); if ( (v18 & 1) != 0 ) operator delete(__p); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source