// // sub_5215C from 0x5215c to 0x5222a (206 bytes) // // 0 xrefs: // // 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 // int __fastcall sub_5215C(int a1, int a2, const char *a3, int a4) { int v5; // r6 int v8; // r0 int v9; // r1 int v10; // r2 _DWORD *v11; // r5 int v12; // r0 int v13; // r3 int v14; // r0 _DWORD *v15; // r8 _DWORD *v16; // r4 _DWORD *v17; // r0 int v18; // r0 int v20; // [sp+Ch] [bp-1Ch] BYREF char v21; // [sp+10h] [bp-18h] int v22; // [sp+14h] [bp-14h] BYREF if ( *(_BYTE *)(a1 + 44) ) return 28; v22 = 0; sub_BE048(a4); if ( !a2 ) a2 = 9264; v5 = sub_50AA4(a3, a2, 0, &v22); if ( !v5 ) { v20 = *(_DWORD *)(a1 + 32); j_FMOD_OS_CriticalSection_Enter(v20); v21 = 1; v8 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 1244, "../../src/fmod_profile.cpp", 96); if ( v8 ) { v11 = (_DWORD *)v8; v12 = sub_6B020(v8, v9, v10); v5 = sub_6B070(v12, v22, a1, v13, 0, 0, 1); if ( !v5 ) { v14 = *(_DWORD *)(a1 + 12); v15 = (_DWORD *)(a1 + 20); *v11 = a1 + 8; v11[1] = v14; *(_DWORD *)(a1 + 12) = v11; v16 = (_DWORD *)(a1 + 20); *(_DWORD *)v11[1] = v11; while ( 1 ) { v16 = (_DWORD *)*v16; if ( v16 == v15 ) break; v17 = v16; if ( v16 ) v17 = v16 - 1; v18 = (*(int (__fastcall **)(_DWORD *, _DWORD *))(*v17 + 32))(v17, v11); if ( v18 ) { v5 = v18; goto LABEL_16; } } v5 = 0; } } else { v5 = 38; } LABEL_16: sub_44984((int)&v20); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source