// // sub_1006EB7FC from 0x1006eb7fc to 0x1006ebb94 (920 bytes) // // 1 xrefs: // > sub_1006EBD5C @ 0x1006ebdf0 // // 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:38 +0000 // __int64 __fastcall sub_1006EB7FC(__int64 a1, _QWORD *a2, _BYTE *a3, __int64 a4, __int64 *a5) { char v10; // w25 unsigned int v11; // w28 __int64 v13; // x2 __int64 v14; // x4 int v15; // w0 int v16; // w8 __int64 v17; // x26 void **v18; // x20 __int64 v20; // x21 _QWORD *v21; // x24 int *v22; // x27 __int64 v23; // x2 __int64 v24; // x4 _QWORD *v25; // [xsp+8h] [xbp-58h] if ( !a4 ) { v13 = 100; v14 = 309; goto LABEL_20; } v10 = *a3; v11 = *a3 & 0xFE; if ( v11 > 6 || ((1 << (*a3 & 0xFE)) & 0x55) == 0 ) { v13 = 102; v14 = 318; goto LABEL_20; } if ( (v10 & 0xFB) != 1 ) { if ( (*a3 & 0xFE) == 0 ) { if ( a4 == 1 ) return sub_1006DE4A4(a1, a2); v13 = 102; v14 = 328; goto LABEL_20; } v15 = sub_1006DDFB0(a1); v16 = v15 + 7; if ( v15 + 7 < 0 ) v16 = v15 + 14; v17 = v16 >> 3; if ( (v17 << (v11 != 2)) + 1 != a4 ) { v13 = 102; v14 = 341; goto LABEL_20; } if ( a5 ) { v18 = nullptr; } else { v18 = (void **)sub_1006D1C30(); a5 = (__int64 *)v18; if ( !v18 ) return 0; } sub_1006D1DF8((__int64)a5); v21 = sub_1006D1F64(a5); v25 = sub_1006D1F64(a5); v22 = (int *)sub_1006D1F64(a5); if ( !v22 || !sub_1006D1318(a3 + 1, v17, (__int64)v21) ) goto LABEL_46; if ( (sub_1006D156C((__int64)v21, a1 + 104) & 0x80000000) == 0 ) { sub_100706FB0(16, 160, 102, "ec2_oct.c", 361); LABEL_27: v20 = 0; goto LABEL_47; } if ( v11 == 2 ) { if ( !(unsigned int)sub_1006EBC2C(a1, a2, v21, v10 & 1, a5) ) goto LABEL_46; goto LABEL_42; } if ( !sub_1006D1318(&a3[v17 + 1], v17, (__int64)v25) ) goto LABEL_27; if ( (sub_1006D156C((__int64)v25, a1 + 104) & 0x80000000) == 0 ) { sub_100706FB0(16, 160, 102, "ec2_oct.c", 373); goto LABEL_27; } if ( v11 == 6 ) { if ( !(*(unsigned int (__fastcall **)(__int64, int *, _QWORD *, _QWORD *, __int64 *))(*(_QWORD *)a1 + 272LL))( a1, v22, v25, v21, a5) ) goto LABEL_46; if ( v22[2] <= 0 ) { if ( (v10 & 1) != 0 ) { LABEL_49: v23 = 102; v24 = 380; LABEL_45: sub_100706FB0(16, 160, v23, "ec2_oct.c", v24); goto LABEL_46; } } else if ( (v10 & 1) != (**(_BYTE **)v22 & 1) ) { goto LABEL_49; } } if ( (unsigned int)sub_1006DE5E8(a1, a2) ) { LABEL_42: if ( (int)sub_1006DE900(a1, a2) > 0 ) { v20 = 1; goto LABEL_47; } v23 = 107; v24 = 391; goto LABEL_45; } LABEL_46: v20 = 0; LABEL_47: sub_1006D1EE0((__int64)a5); if ( v18 ) sub_1006D1C94(v18); return v20; } v13 = 102; v14 = 322; LABEL_20: sub_100706FB0(16, 160, v13, "ec2_oct.c", v14); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source