// // sub_10050F3F0 from 0x10050f3f0 to 0x10050f568 (376 bytes) // // 1 xrefs: // > sub_10050FAA4 @ 0x10050faa8 // // 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_10050F3F0(__int64 a1, int a2, int a3) { __int64 result; // x0 __int64 v5; // x20 int v6; // w8 __int64 v7; // x8 _QWORD *v8; // x11 __int64 v9; // x8 result = 31; switch ( a2 ) { case 0: if ( *(_DWORD *)(a1 + 904) == a3 ) return 0; *(_DWORD *)(a1 + 904) = a3; v5 = *(_QWORD *)(a1 + 168); if ( v5 ) goto LABEL_22; goto LABEL_19; case 6: if ( *(_DWORD *)(a1 + 932) == a3 ) return 0; *(_DWORD *)(a1 + 932) = a3; v5 = *(_QWORD *)(a1 + 168); if ( !v5 ) goto LABEL_19; goto LABEL_22; case 9: if ( *(_DWORD *)(a1 + 980) == a3 ) return 0; *(_DWORD *)(a1 + 980) = a3; v5 = *(_QWORD *)(a1 + 168); if ( !v5 ) goto LABEL_19; goto LABEL_22; case 11: if ( *(_DWORD *)(a1 + 948) == a3 ) return 0; *(_DWORD *)(a1 + 948) = a3; v5 = *(_QWORD *)(a1 + 168); if ( !v5 ) goto LABEL_19; goto LABEL_22; case 14: if ( *(_DWORD *)(a1 + 960) == a3 ) return 0; *(_DWORD *)(a1 + 960) = a3; v5 = *(_QWORD *)(a1 + 168); if ( v5 ) goto LABEL_22; goto LABEL_19; case 18: v6 = a3 != 0; if ( *(unsigned __int8 *)(a1 + 976) == v6 ) return 0; *(_BYTE *)(a1 + 976) = v6; v5 = *(_QWORD *)(a1 + 168); if ( !v5 ) goto LABEL_19; goto LABEL_22; case 20: if ( *(_DWORD *)(a1 + 908) == a3 ) return 0; *(_DWORD *)(a1 + 908) = a3; v5 = *(_QWORD *)(a1 + 168); if ( v5 ) { LABEL_22: sub_100442B5C(v5, 6u); v7 = *(_QWORD *)(a1 + 168); } else { LABEL_19: v7 = 0; } *(_BYTE *)(a1 + 544) = 1; v8 = *(_QWORD **)(a1 + 888); *v8 = *(_QWORD *)(a1 + 880); *(_QWORD *)(*(_QWORD *)(a1 + 880) + 8LL) = v8; *(_QWORD *)(a1 + 888) = a1 + 880; v9 = v7 + 68064; *(_QWORD *)(a1 + 888) = *(_QWORD *)(v9 + 8); *(_QWORD *)(a1 + 880) = v9; *(_QWORD *)(v9 + 8) = a1 + 880; **(_QWORD **)(a1 + 888) = a1 + 880; if ( v5 ) sub_100442B7C(v5, 6u); return 0; default: return result; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source