// // sub_1006100A4 from 0x1006100a4 to 0x100610214 (368 bytes) // // 1 xrefs: // > sub_10060F8F8 @ 0x10060fb08 // // 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_1006100A4(__int64 a1, unsigned int *a2) { void ***v4; // x21 int v5; // w22 __int64 *v6; // x23 _DWORD *v7; // x0 _BYTE *v8; // x24 _BYTE *v9; // x0 __int64 v10; // x20 v4 = *(void ****)(a1 + 120); if ( (unsigned int)sub_1005DEA4C(a2) ) { if ( (int)sub_1005DEA4C(a2) >= 1 ) { v5 = 0; while ( 1 ) { v6 = (__int64 *)sub_1005DEA60((__int64)a2, v5); if ( (unsigned int)sub_10058AE10(v6[1]) == 746 || (unsigned int)sub_10058AE10(*v6) == 746 ) goto LABEL_15; v7 = (_DWORD *)sub_10060FC50((__int64)v4, *v6); v8 = v7; if ( v7 ) { *v7 |= 1u; } else { if ( !*v4 ) goto LABEL_13; v9 = sub_10060FFB4(nullptr, *v6, *(_DWORD *)*v4 & 0x10); v8 = v9; if ( !v9 ) { v10 = 0; goto LABEL_20; } *((_QWORD *)v9 + 2) = (*v4)[2]; *(_DWORD *)v9 |= 6u; if ( !(unsigned int)sub_1005DE80C(v4[1], (__int64)v9) ) { sub_10060FF64((_DWORD **)v8); v10 = 0; goto LABEL_20; } } if ( !(unsigned int)sub_1005DE80C(*((void ***)v8 + 3), v6[1]) ) { v10 = 0; goto LABEL_20; } v6[1] = 0; LABEL_13: if ( ++v5 >= (int)sub_1005DEA4C(a2) ) { v10 = 1; goto LABEL_20; } } } v10 = 1; } else { LABEL_15: *(_QWORD *)(a1 + 72) |= 0x800uLL; v10 = 0xFFFFFFFFLL; } LABEL_20: sub_1005DE9D0(a2, (void (*)(void))sub_10060E3C8); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source