// // sub_10050A58C from 0x10050a58c to 0x10050a694 (264 bytes) // // 3 xrefs: // > @ 0x100827b20 // > @ 0x100827d48 // > @ 0x10082a600 // // 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_10050A58C(__int64 a1, int a2, float a3, float a4) { __int64 result; // x0 int v9; // w9 _BYTE v10[4]; // [xsp+Ch] [xbp-24h] BYREF result = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v10); if ( !(_DWORD)result ) { if ( (v10[0] & 0x10) == 0 ) return 40; if ( (~LODWORD(a3) & 0x7F800000) == 0 || (~LODWORD(a4) & 0x7F800000) == 0 ) return 29; result = 31; if ( a3 >= 0.0 && a3 <= 1.0 ) { if ( a4 >= 0.0001 ) { result = 31; if ( a4 < 10.0 || a4 > 22050.0 ) return result; } else { a4 = *(float *)(*(_QWORD *)(a1 + 8) + 69712LL); } result = 0; if ( a2 ) v9 = 0x100000; else v9 = 0; *(_DWORD *)(a1 + 72) = *(_DWORD *)(a1 + 72) & 0xFFEFFFFF | v9; *(float *)(a1 + 248) = a3; *(float *)(a1 + 252) = a4; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source