// // sub_49038 from 0x49038 to 0x49100 (200 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_49038(_DWORD *a1, int a2, int a3, int a4) { int v7; // r5 int v8; // r8 int v9; // r10 int result; // r0 bool v11; // zf int v12; // r3 int v13; // r1 int v14; // r3 int v15; // [sp+0h] [bp-38h] int v16; // [sp+4h] [bp-34h] int v17; // [sp+8h] [bp-30h] __int16 v18; // [sp+Eh] [bp-2Ah] BYREF int v19; // [sp+10h] [bp-28h] BYREF int v20; // [sp+14h] [bp-24h] int v21; // [sp+18h] [bp-20h] BYREF v18 = HIWORD(a4); v7 = a1[15]; v8 = a1[14]; v9 = a1[16]; result = (*(int (__fastcall **)(_DWORD *, __int16 *))(*a1 + 12))(a1, &v18); if ( !result ) { if ( a3 ) v7 = a3; v11 = a2 == 0; if ( !a2 ) a2 = v8; a1[14] = a2; a1[15] = v7; a1[16] = v9; if ( v11 ) return 0; result = sub_A774A(v8, &v21, &v19, (char *)&v18 + 1); if ( !result ) { v15 = v19; v16 = v20; v17 = HIBYTE(v18); result = sub_A7672(a2, v20, v21); if ( !result ) { result = sub_ABA38(a2, a1[7], 1, v12, v15, v16, v17); if ( !result ) { result = sub_A7672(v8, v13, 0); if ( !result ) { result = sub_ABA38(v8, 1065353216, 1, v14, 0, 0, 0); if ( !result ) { result = sub_A750C(a2, (unsigned __int8)v18 == 0, 1); if ( !result ) { result = sub_A750C(v8, 1, 1); if ( !result ) return 0; } } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source