// // sub_1006FD844 from 0x1006fd844 to 0x1006fda90 (588 bytes) // // 8 xrefs: // > sub_1006FCD48 @ 0x1006fcf14 // > sub_1006FCD48 @ 0x1006fcf34 // > sub_1006FCD48 @ 0x1006fcf50 // > sub_1006FCD48 @ 0x1006fcf70 // > sub_1006FCD48 @ 0x1006fcf8c // > sub_1006FF264 @ 0x1006ff438 // > sub_1006FF264 @ 0x1006ff458 // > sub_1006FF264 @ 0x1006ff474 // // 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:46 +0000 // __int64 __fastcall sub_1006FD844(__int64 a1, const char *a2, const char *a3, int a4) { __int64 v6; // x19 __int64 v7; // x21 int v8; // w0 int v9; // w0 __int64 v10; // x2 __int64 v11; // x4 __int64 v13; // x2 const char *v14; // x3 __int64 v15; // x0 __int64 v16; // x1 char *__endptr; // [xsp+8h] [xbp-28h] BYREF v6 = a1; if ( !a1 || !a2 ) { v10 = 67; v11 = 292; goto LABEL_29; } if ( !*(_QWORD *)(a1 + 128) || (a1 = sub_1006FD378(a1, 13, 0, a2, 0), v7 = a1, (int)a1 <= 0) ) { if ( a4 ) { sub_1007072C0(a1); return 1; } v10 = 137; v11 = 311; goto LABEL_29; } v8 = sub_1006FD378(v6, 18, (int)a1, nullptr, 0); if ( v8 < 0 ) { sub_100706FB0(38, 170, 138, "eng_ctrl.c", 237); goto LABEL_18; } if ( (v8 & 7) == 0 ) { LABEL_18: v10 = 134; v11 = 316; goto LABEL_29; } v9 = sub_1006FD378(v6, 18, (int)v7, nullptr, 0); if ( v9 < 0 ) { v10 = 110; v11 = 326; goto LABEL_29; } if ( (v9 & 4) != 0 ) { if ( a3 ) { v10 = 136; v11 = 335; goto LABEL_29; } v13 = 0; v14 = nullptr; v15 = v6; v16 = v7; return (int)sub_1006FD378(v15, v16, v13, v14, 0) > 0; } if ( !a3 ) { v10 = 135; v11 = 351; goto LABEL_29; } if ( (v9 & 2) != 0 ) { v13 = 0; v15 = v6; v16 = v7; v14 = a3; return (int)sub_1006FD378(v15, v16, v13, v14, 0) > 0; } if ( (v9 & 1) != 0 ) { v13 = strtol(a3, &__endptr, 10); if ( __endptr == a3 || *__endptr ) { v10 = 133; v11 = 375; goto LABEL_29; } v14 = nullptr; v15 = v6; v16 = v7; return (int)sub_1006FD378(v15, v16, v13, v14, 0) > 0; } v10 = 110; v11 = 369; LABEL_29: sub_100706FB0(38, 171, v10, "eng_ctrl.c", v11); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source