// // ERR_peek_last_error_line from 0x7fb1c4 to 0x7fb240 (124 bytes) // // 1 xrefs: // > @ 0x6297c // // 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 ERR_peek_last_error_line(_DWORD *a1, _DWORD *a2) { int state; // r0 int v5; // r2 _DWORD *v6; // r3 bool v7; // zf int v8; // r2 int v9; // r1 int result; // r0 state = ERR_get_state(); v5 = *(_DWORD *)(state + 384); if ( *(_DWORD *)(state + 388) == v5 ) return 0; v6 = (_DWORD *)(state + 4 * v5); v7 = a1 == nullptr; if ( a1 ) v7 = a2 == nullptr; v8 = v6[16]; if ( v7 ) return v6[16]; v9 = v6[64]; if ( v9 ) { *a1 = v9; *a2 = v6[80]; return v8; } else { result = v6[16]; *a1 = "NA"; *a2 = 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source