{"type": "func", "start": 6443658396, "end": 6443658546, "name": "__FrameHandler3::GetHandlerSearchState", "pseudocode": "// \n// __FrameHandler3::GetHandlerSearchState from 0x180126c9c to 0x180126d32 (150 bytes)\n// \n// 2 xrefs:\n// > FindHandler<__FrameHandler3> @ 0x180125d74\n// > <???> @ 0x180202954\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall __FrameHandler3::GetHandlerSearchState(\n        unsigned __int64 *a1,\n        struct _xDISPATCHER_CONTEXT *a2,\n        const struct _s_FuncInfo *a3)\n{\n  int v6; // ebx\n  unsigned __int64 v8; // [rsp+48h] [rbp+20h] BYREF\n\n  v6 = __FrameHandler3::StateFromControlPc(a3, a2);\n  _GetEstablisherFrame(a1, a2, a3, &v8);\n  if ( v6 <= (int)__GetUnwindTryBlock(a1, a2, a3) )\n  {\n    return (unsigned int)__GetUnwindTryBlock(a1, a2, a3);\n  }\n  else\n  {\n    __FrameHandler3::SetState(&v8, a3, v6);\n    __SetUnwindTryBlock(a1, a2, a3, v6);\n  }\n  return (unsigned int)v6;\n}", "assembly": "; \n; __FrameHandler3::GetHandlerSearchState from 0x180126c9c to 0x180126d32 (150 bytes)\n; \n; 2 xrefs:\n; > FindHandler<__FrameHandler3> @ 0x180125d74\n; > <???> @ 0x180202954\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180126c9c\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180126ca1\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180126ca6\npush    rdi                                                            ; +0xf, 0x180126cab\nsub     rsp, 20h                                                       ; +0x10, 0x180126cac\nmov     rbp, rcx                                                       ; +0x14, 0x180126cb0\nmov     rdi, r8                                                        ; +0x17, 0x180126cb3\nmov     rcx, r8; struct _s_FuncInfo *                                  ; +0x1a, 0x180126cb6\nmov     rsi, rdx                                                       ; +0x1d, 0x180126cb9\ncall    ?StateFromControlPc@__FrameHandler3@@SAHPEBU_s_FuncInfo@@PEAU_xDISPATCHER_CONTEXT@@@Z ; +0x20, 0x180126cbc\nlea     r9, [rsp+28h+arg_18]; unsigned __int64 *                       ; +0x25, 0x180126cc1\nmov     r8, rdi; struct _s_FuncInfo *                                  ; +0x2a, 0x180126cc6\nmov     rdx, rsi; struct _xDISPATCHER_CONTEXT *                        ; +0x2d, 0x180126cc9\nmov     rcx, rbp; unsigned __int64 *                                   ; +0x30, 0x180126ccc\nmov     ebx, eax                                                       ; +0x33, 0x180126ccf\ncall    ?_GetEstablisherFrame@@YAPEA_KPEA_KPEAU_xDISPATCHER_CONTEXT@@PEBU_s_FuncInfo@@0@Z ; +0x35, 0x180126cd1\nmov     r8, rdi; struct _s_FuncInfo *                                  ; +0x3a, 0x180126cd6\nmov     rdx, rsi; struct _xDISPATCHER_CONTEXT *                        ; +0x3d, 0x180126cd9\nmov     rcx, rbp; unsigned __int64 *                                   ; +0x40, 0x180126cdc\ncall    ?__GetUnwindTryBlock@@YAHPEA_KPEAU_xDISPATCHER_CONTEXT@@PEBU_s_FuncInfo@@@Z ; +0x43, 0x180126cdf\ncmp     ebx, eax                                                       ; +0x48, 0x180126ce4\njle     short loc_180126D0B                                            ; +0x4a, 0x180126ce6\nmov     r8d, ebx; int                                                  ; +0x4c, 0x180126ce8\nlea     rcx, [rsp+28h+arg_18]; unsigned __int64 *                      ; +0x4f, 0x180126ceb\nmov     rdx, rdi; struct _s_FuncInfo *                                 ; +0x54, 0x180126cf0\ncall    ?SetState@__FrameHandler3@@SAXPEA_KPEBU_s_FuncInfo@@H@Z        ; +0x57, 0x180126cf3\nmov     r9d, ebx; int                                                  ; +0x5c, 0x180126cf8\nmov     r8, rdi; struct _s_FuncInfo *                                  ; +0x5f, 0x180126cfb\nmov     rdx, rsi; struct _xDISPATCHER_CONTEXT *                        ; +0x62, 0x180126cfe\nmov     rcx, rbp; unsigned __int64 *                                   ; +0x65, 0x180126d01\ncall    ?__SetUnwindTryBlock@@YAXPEA_KPEAU_xDISPATCHER_CONTEXT@@PEBU_s_FuncInfo@@H@Z ; +0x68, 0x180126d04\njmp     short loc_180126D1B                                            ; +0x6d, 0x180126d09\nmov     r8, rdi; struct _s_FuncInfo *                                  ; +0x6f, 0x180126d0b\nmov     rdx, rsi; struct _xDISPATCHER_CONTEXT *                        ; +0x72, 0x180126d0e\nmov     rcx, rbp; unsigned __int64 *                                   ; +0x75, 0x180126d11\ncall    ?__GetUnwindTryBlock@@YAHPEA_KPEAU_xDISPATCHER_CONTEXT@@PEBU_s_FuncInfo@@@Z ; +0x78, 0x180126d14\nmov     ebx, eax                                                       ; +0x7d, 0x180126d19\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x7f, 0x180126d1b\nmov     eax, ebx                                                       ; +0x84, 0x180126d20\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x180126d22\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x8b, 0x180126d27\nadd     rsp, 20h                                                       ; +0x90, 0x180126d2c\npop     rdi                                                            ; +0x94, 0x180126d30\nretn                                                                   ; +0x95, 0x180126d31", "xrefs": ["FindHandler<__FrameHandler3> @ 0x180125d74", "<???> @ 0x180202954"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}