// // sub_756F18 from 0x756f18 to 0x756fa8 (144 bytes) // // 18 xrefs: // > sub_7512BC @ 0x7519a4 // > sub_751BE0 @ 0x7522c8 // > sub_75275C @ 0x752890 // > sub_753514 @ 0x753a72 // > sub_753EC4 @ 0x7543fa // > sub_754588 @ 0x754aa8 // > sub_754C30 @ 0x755150 // > sub_755338 @ 0x7558f2 // > sub_755AA0 @ 0x75602c // > sub_768DC8 @ 0x76947e // > sub_7696C4 @ 0x769d7a // > sub_76A1F8 @ 0x76a334 // > sub_76AEE0 @ 0x76b43a // > sub_76B8A0 @ 0x76bdf6 // > sub_76BF44 @ 0x76c484 // > sub_76C5CC @ 0x76cb0c // > sub_76CCB4 @ 0x76d29a // > sub_76D404 @ 0x76d9ba // // 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 // bool __fastcall sub_756F18(int a1, int a2, unsigned __int8 **a3) { unsigned int v3; // r1 unsigned __int8 *v4; // r7 int v5; // r4 int v6; // lr unsigned __int8 *v7; // r4 int v8; // r5 unsigned int v9; // r2 int v10; // r6 int v11; // t1 int v12; // t1 _BOOL4 v13; // r3 _BOOL4 v15; // r2 unsigned int v16; // r0 unsigned __int8 *v17; // r2 int v18; // t1 _BOOL4 v19; // r1 v3 = a2 - 1; v4 = *a3; v5 = *((_DWORD *)*a3 - 3); v6 = v5 - 1; if ( v3 >= v5 - 1 ) v3 = v5 - 1; if ( v3 ) { v7 = &v4[v5]; v8 = a1 - 1; v9 = 0; do { v11 = *--v7; v10 = v11; ++v9; v12 = *(unsigned __int8 *)++v8; --v6; v13 = v10 == v12; } while ( v9 < v3 && v13 ); } else { v13 = 1; } if ( v6 ) v15 = v13; else v15 = 0; v16 = *(unsigned __int8 *)(a1 + v3); if ( v15 ) { v17 = &v4[v6]; do { v18 = *v17--; --v6; v13 = v18 == v16; v19 = v13; if ( !v6 ) v19 = 0; } while ( v19 ); } if ( (char)v16 > 0 && *v4 > v16 ) return 0; return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source