// // sub_100711C90 from 0x100711c90 to 0x100712050 (960 bytes) // // 1 xrefs: // > sub_100712200 @ 0x1007123e4 // // 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:12:57 +0000 // __int64 __fastcall sub_100711C90( const char *a1, signed int a2, __int64 a3, int a4, int a5, __int64 a6, int a7, int8x16_t *a8) { int v15; // w23 __int64 v17; // x26 int v18; // w24 int v19; // w27 int v20; // w9 __int64 v21; // x28 __int64 v22; // x22 int v23; // w8 int v24; // w26 __int64 v25; // x8 unsigned __int64 v26; // x10 int8x16_t *v27; // x12 int8x16_t *v28; // x11 int8x16_t v29; // q0 int8x16_t v30; // t1 int8x16_t v31; // q1 int v32; // w9 char *v33; // x10 __int8 *v34; // x8 char v35; // t1 int v36; // w22 char *v37; // x0 int v38; // [xsp+Ch] [xbp-334h] __int64 v39; // [xsp+10h] [xbp-330h] int v40; // [xsp+24h] [xbp-31Ch] unsigned __int64 v41; // [xsp+30h] [xbp-310h] _BYTE v43[4]; // [xsp+64h] [xbp-2DCh] BYREF _QWORD v44[36]; // [xsp+68h] [xbp-2D8h] BYREF __int64 v45[36]; // [xsp+188h] [xbp-1B8h] BYREF _BYTE __src[16]; // [xsp+2A8h] [xbp-98h] BYREF _BYTE v47[56]; // [xsp+2B8h] [xbp-88h] BYREF v15 = sub_100711410(a6); if ( v15 < 0 ) return 0; sub_1006B8D24(v45); if ( a1 ) { if ( a2 == -1 ) a2 = strlen(a1); } else { a2 = 0; } if ( (unsigned int)sub_1006B8AC4(v45, a1, a2, a6, 0) ) { if ( !a7 ) { LABEL_46: sub_1006B8EC0((char *)v45); return 1; } v17 = a4; v39 = a4; v38 = ~v15; v18 = 1; while ( 1 ) { if ( a7 <= v15 ) v19 = a7; else v19 = v15; v43[0] = HIBYTE(v18); v43[1] = BYTE2(v18); v43[2] = BYTE1(v18); v43[3] = v18; if ( !(unsigned int)sub_1006B8E34((__int64)v44, (__int64)v45) ) goto LABEL_47; if ( !(unsigned int)sub_1006B8D5C(v44, a3, v17) || !(unsigned int)sub_1006B8D5C(v44, (__int64)v43, 4) || !sub_1006B8D74(v44, (__int64)__src, 0) ) { LABEL_51: sub_1006B8EC0((char *)v45); v37 = (char *)v44; goto LABEL_50; } sub_1006B8EC0((char *)v44); memcpy(a8, __src, v19); if ( a5 >= 2 ) break; LABEL_45: a7 -= v19; ++v18; a8 = (int8x16_t *)((char *)a8 + v19); v17 = v39; if ( !a7 ) goto LABEL_46; } if ( v19 >= 1 ) { if ( v38 <= ~a7 ) v20 = ~a7; else v20 = ~v15; v21 = (unsigned int)(-2 - v20); v22 = v21 + 1; if ( v38 <= ~a7 ) v23 = ~a7; else v23 = ~v15; v41 = ((unsigned int)(-2 - v23) + 1LL) & 0xFFFFFFFFFFFFFFE0LL; v40 = ~v23; v24 = 1; while ( 1 ) { if ( !(unsigned int)sub_1006B8E34((__int64)v44, (__int64)v45) ) goto LABEL_49; if ( !(unsigned int)sub_1006B8D5C(v44, (__int64)__src, v15) || !sub_1006B8D74(v44, (__int64)__src, 0) ) goto LABEL_51; sub_1006B8EC0((char *)v44); v25 = v22 & 0x1FFFFFFE0LL; if ( (v22 & 0x1FFFFFFE0LL) != 0 ) { if ( a8 > (int8x16_t *)&__src[v21] ) { v26 = v41; v27 = a8 + 1; v28 = (int8x16_t *)v47; do { LABEL_34: v29 = v28[-1]; v30 = *v28; v28 += 2; v31 = veorq_s8(*v27, v30); v27[-1] = veorq_s8(v27[-1], v29); *v27 = v31; v27 += 2; v26 -= 32LL; } while ( v26 ); goto LABEL_35; } v26 = v41; v27 = a8 + 1; v28 = (int8x16_t *)v47; if ( __src > &a8->i8[v21] ) goto LABEL_34; } v25 = 0; LABEL_35: if ( v21 + 1 != v25 ) { v32 = v40 - v25; v33 = &__src[v25]; v34 = &a8->i8[v25]; do { v35 = *v33++; *v34++ ^= v35; --v32; } while ( v32 ); } if ( ++v24 >= a5 ) goto LABEL_45; } } v36 = 1; while ( (unsigned int)sub_1006B8E34((__int64)v44, (__int64)v45) ) { if ( !(unsigned int)sub_1006B8D5C(v44, (__int64)__src, v15) || !sub_1006B8D74(v44, (__int64)__src, 0) ) goto LABEL_51; sub_1006B8EC0((char *)v44); if ( ++v36 >= a5 ) goto LABEL_45; } LABEL_49: v37 = (char *)v45; } else { LABEL_47: v37 = (char *)v45; } LABEL_50: sub_1006B8EC0(v37); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source