//
// __SetUnwindTryBlock from 0x1801258d8 to 0x180125913 (59 bytes)
//
// 2 xrefs:
// > __FrameHandler3::GetHandlerSearchState @ 0x180126d04
// > ??> @ 0x180202894
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:54 +0000
//
void __fastcall __SetUnwindTryBlock(
unsigned __int64 *a1,
struct _xDISPATCHER_CONTEXT *a2,
const struct _s_FuncInfo *a3,
int a4)
{
unsigned __int64 v6; // rcx
__int64 dispUwindHelp; // rax
unsigned __int64 v8; // [rsp+40h] [rbp+18h] BYREF
v6 = *_GetEstablisherFrame(a1, a2, a3, &v8);
dispUwindHelp = a3->dispUwindHelp;
v8 = v6;
if ( a4 > *(_DWORD *)(dispUwindHelp + v6 + 4) )
*(_DWORD *)(dispUwindHelp + v6 + 4) = a4;
}