// // sub_4C522 from 0x4c522 to 0x4c60c (234 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_4C522(_DWORD *a1, int a2, int a3) { int v6; // r6 int v7; // r8 int v8; // r9 int result; // r0 int v10; // r10 int v11; // r5 int v12; // r3 int v13; // r1 int v14; // r3 int v15; // r0 int v16; // [sp+0h] [bp-40h] int v17; // [sp+4h] [bp-3Ch] int v18; // [sp+8h] [bp-38h] unsigned __int8 v19; // [sp+Fh] [bp-31h] BYREF int v20; // [sp+10h] [bp-30h] BYREF int v21; // [sp+14h] [bp-2Ch] _DWORD v22[3]; // [sp+18h] [bp-28h] BYREF unsigned __int8 v23; // [sp+27h] [bp-19h] BYREF v6 = a1[15]; v7 = a1[14]; v8 = a1[16]; result = (*(int (__fastcall **)(_DWORD *, unsigned __int8 *))(*a1 + 12))(a1, &v23); if ( !result ) { if ( a3 ) v6 = a3; v10 = v7; if ( a2 ) v10 = a2; a1[14] = v10; a1[15] = v6; a1[16] = v8; if ( !a2 ) return 0; v11 = v23; result = sub_A774A(v7, v22, &v20, &v19); if ( !result ) { v16 = v20; v17 = v21; v18 = v19; result = sub_A7672(v10, v21, v22[0]); if ( !result ) { result = sub_ABA38(v10, a1[7], 1, v12, v16, v17, v18); if ( !result ) { result = sub_A750C(v10, v11 == 0, 1); if ( !result ) { result = sub_A7672(v7, v13, 0); if ( !result ) { result = sub_ABA38(v7, 1065353216, 1, v14, 0, 0, 0); if ( !result && (v7 == v8 || (result = sub_A750C(v7, 1, 1)) == 0) ) { v15 = a1[83]; if ( !v15 ) return 0; if ( !v23 ) return 0; result = (*(int (__fastcall **)(int, int))(*(_DWORD *)v15 + 44))(v15, 1); if ( !result ) return 0; } } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source