// // sub_49756 from 0x49756 to 0x497d8 (130 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_49756(int a1, int a2, int a3, int a4) { int v5; // r0 unsigned int v7; // r1 int v8; // r0 int v9; // r1 int result; // r0 int v11; // [sp+4h] [bp-Ch] BYREF v11 = a4; v5 = *(_DWORD *)(a1 + 40); if ( (v5 & 1 ^ a2) != 1 ) return 0; v7 = v5 & 0xFFFFFFFE; if ( a2 ) v7 = v5 | 1; *(_DWORD *)(a1 + 40) = v7; v8 = *(_DWORD *)(a1 + 16); if ( v8 ) v9 = (*(unsigned __int8 *)(v8 + 40) >> 4) & 1; else v9 = 0; sub_497D8(a1, v9); if ( !a2 && (*(_BYTE *)(a1 + 364) & 0x10) != 0 ) { *(_DWORD *)(a1 + 40) |= 0x80000u; result = sub_49672(a1, 0, 1); if ( result ) return result; *(_DWORD *)(a1 + 40) &= ~0x80000u; } result = (*(int (__fastcall **)(int, _DWORD, int *))(*(_DWORD *)a1 + 144))(a1, 0, &v11); if ( !result ) return sub_A750C(v11, a2 ^ 1, 1); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source