// // sub_1005ED34C from 0x1005ed34c to 0x1005ed490 (324 bytes) // // 10 xrefs: // > sub_100562F98 @ 0x100563164 // > sub_1005CF95C @ 0x1005cf9e8 // > sub_1005D84C8 @ 0x1005d84f4 // > sub_1005D8B68 @ 0x1005d8cdc // > sub_1005DA03C @ 0x1005da114 // > sub_1005DA03C @ 0x1005da124 // > sub_1005DA03C @ 0x1005da190 // > sub_1005DA03C @ 0x1005da1cc // > sub_1005F7CC4 @ 0x1005f7d60 // > sub_1005FA31C @ 0x1005fa728 // // 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:09:46 +0000 // _BYTE *__fastcall sub_1005ED34C(char *a1) { __int64 v2; // x19 _BYTE *result; // x0 int v5; // w8 int v6; // w8 int v7; // w9 _BYTE *v8; // x10 _BYTE *v9; // x9 int v10; // w15 v2 = 0; while ( a1[v2++] ) ; result = sub_1005D7364( *((__int64 **)off_1009DA5E8 + 54), v2, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_string.cpp", 362, 0, 0); if ( (((_DWORD)v2 - 1) & 0x80000000) == 0 && result ) { v5 = *a1; if ( v5 < 0 ) { if ( (v5 & 0xE0) == 0xC0 ) { v6 = 2; } else { v7 = v5 & 0xF0; if ( (v5 & 0xF8) == 0xF0 ) v6 = 4; else v6 = 1; if ( v7 == 224 ) v6 = 3; } } else { v6 = 1; } v8 = result; if ( v6 < (unsigned int)v2 ) { v9 = a1 + 1; v8 = result; do { if ( !*(v9 - 1) ) break; *v8++ = *(v9 - 1); LODWORD(v2) = v2 - 1; if ( v6 < 2 ) { if ( (*v9 & 0xF8) == 0xF0 ) v10 = 4; else v10 = 1; if ( (*v9 & 0xF0) == 0xE0 ) v10 = 3; if ( (*v9 & 0xE0) == 0xC0 ) v10 = 2; v6 = (char)*v9 < 0 ? v10 : 1; } else { --v6; } ++v9; } while ( v6 < (int)v2 ); } *v8 = 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source