// // sub_674798 from 0x674798 to 0x67483e (166 bytes) // // 3 xrefs: // > jpeg_start_decompress @ 0x67486a // > jpeg_start_decompress @ 0x6748d2 // > jpeg_start_output @ 0x674a2a // // 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_674798(int a1) { unsigned int v2; // r3 int v3; // r2 unsigned int v4; // r7 int v5; // r2 int result; // r0 int v7; // r3 if ( *(_DWORD *)(a1 + 20) != 204 ) { (**(void (***)(void))(a1 + 444))(); *(_DWORD *)(a1 + 140) = 0; *(_DWORD *)(a1 + 20) = 204; } if ( *(_DWORD *)(*(_DWORD *)(a1 + 444) + 8) ) { v2 = *(_DWORD *)(a1 + 140); do { while ( *(_DWORD *)(a1 + 116) <= v2 ) { (*(void (__fastcall **)(int))(*(_DWORD *)(a1 + 444) + 4))(a1); (**(void (__fastcall ***)(int))(a1 + 444))(a1); v5 = *(_DWORD *)(a1 + 444); *(_DWORD *)(a1 + 140) = 0; v2 = 0; if ( !*(_DWORD *)(v5 + 8) ) goto LABEL_10; } v3 = *(_DWORD *)(a1 + 8); v4 = v2; if ( v3 ) { *(_DWORD *)(v3 + 4) = v2; *(_DWORD *)(*(_DWORD *)(a1 + 8) + 8) = *(_DWORD *)(a1 + 116); (**(void (***)(void))(a1 + 8))(); v4 = *(_DWORD *)(a1 + 140); } (*(void (__fastcall **)(int, _DWORD, int, _DWORD))(*(_DWORD *)(a1 + 448) + 4))(a1, 0, a1 + 140, 0); v2 = *(_DWORD *)(a1 + 140); } while ( v2 != v4 ); return 0; } else { LABEL_10: result = 1; if ( *(_DWORD *)(a1 + 68) ) v7 = 206; else v7 = 205; *(_DWORD *)(a1 + 20) = v7; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source