// // sub_951F24 from 0x951f24 to 0x951f9e (122 bytes) // // 6 xrefs: // > sub_9520B0 @ 0x952166 // > sub_9520B0 @ 0x952192 // > sub_9520B0 @ 0x952264 // > sub_9520B0 @ 0x952274 // > sub_9520B0 @ 0x9524aa // > sub_9520B0 @ 0x95260a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:05:24 +0000 // char *__fastcall sub_951F24(int a1, int a2, char *a3) { int v3; // r6 _BYTE *v5; // r5 size_t v6; // r4 char *i; // r0 char *v8; // r0 _BYTE *v9; // r6 _BYTE *v10; // r0 size_t v11; // r5 _BYTE *v12; // r0 _BYTE *v13; // r4 v3 = a1; v5 = (_BYTE *)(a2 + a1); v6 = strlen(a3); for ( i = (char *)v3; ; i = &v8[v6] ) { v8 = (char *)memmem(i, v5 - i, a3, v6); if ( !v8 ) return v8; if ( v8 == (char *)v3 ) goto LABEL_7; if ( *(v8 - 1) == 10 ) break; } v3 = (int)v8; LABEL_7: v8 = (char *)memchr((const void *)(v3 + v6), 58, (size_t)&v5[-v3 - v6]); if ( !v8 ) return v8; if ( v8[1] != 32 ) return nullptr; v9 = v8 + 2; v10 = memchr(v8 + 2, 10, v5 - (v8 + 2)); if ( !v10 ) v10 = v5; v11 = v10 - v9; v12 = malloc(v10 - v9 + 1); v13 = v12; if ( v12 ) { memcpy(v12, v9, v11); v13[v11] = 0; } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source