// // sub_1005D76DC from 0x1005d76dc to 0x1005d7928 (588 bytes) // // 8 xrefs: // > sub_1005D6BE0 @ 0x1005d6dac // > sub_1005D6BE0 @ 0x1005d6dcc // > sub_1005D6BE0 @ 0x1005d6de8 // > sub_1005D6BE0 @ 0x1005d6e08 // > sub_1005D6BE0 @ 0x1005d6e24 // > sub_1005D90FC @ 0x1005d92d0 // > sub_1005D90FC @ 0x1005d92f0 // > sub_1005D90FC @ 0x1005d930c // // 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 // __int64 __fastcall sub_1005D76DC(__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_1005D7210(a1, 13, 0, a2, 0), v7 = a1, (int)a1 <= 0) ) { if ( a4 ) { sub_1005E1158(a1); return 1; } v10 = 137; v11 = 311; goto LABEL_29; } v8 = sub_1005D7210(v6, 18, (int)a1, nullptr, 0); if ( v8 < 0 ) { sub_1005E0E48(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_1005D7210(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_1005D7210(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_1005D7210(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_1005D7210(v15, v16, v13, v14, 0) > 0; } v10 = 110; v11 = 369; LABEL_29: sub_1005E0E48(38, 171, v10, "eng_ctrl.c", v11); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source