; ; capture_previous_context from 0x1800e58e0 to 0x1800e5954 (116 bytes) ; ; 2 xrefs: ; > __report_gsfailure @ 0x1800e5832 ; > @ 0x1801c5610 ; ; 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 11:22:38 +0000 ; push rbx ; +0x0, 0x1800e58e0 push rsi ; +0x2, 0x1800e58e2 push rdi ; +0x3, 0x1800e58e3 sub rsp, 40h ; +0x4, 0x1800e58e4 mov rbx, rcx ; +0x8, 0x1800e58e8 call cs:RtlCaptureContext ; +0xb, 0x1800e58eb mov rsi, [rbx+0F8h] ; +0x11, 0x1800e58f1 xor edi, edi ; +0x18, 0x1800e58f8 xor r8d, r8d; HistoryTable ; +0x1a, 0x1800e58fa lea rdx, [rsp+58h+ImageBase]; ImageBase ; +0x1d, 0x1800e58fd mov rcx, rsi; ControlPc ; +0x22, 0x1800e5902 call cs:RtlLookupFunctionEntry ; +0x25, 0x1800e5905 test rax, rax ; +0x2b, 0x1800e590b jz short loc_1800E594C ; +0x2e, 0x1800e590e mov rdx, [rsp+58h+ImageBase]; ImageBase ; +0x30, 0x1800e5910 lea rcx, [rsp+58h+arg_8] ; +0x35, 0x1800e5915 mov [rsp+58h+ContextPointers], 0; ContextPointers ; +0x3a, 0x1800e591a mov r9, rax; FunctionEntry ; +0x43, 0x1800e5923 mov [rsp+58h+EstablisherFrame], rcx; EstablisherFrame ; +0x46, 0x1800e5926 mov r8, rsi; ControlPc ; +0x4b, 0x1800e592b lea rcx, [rsp+58h+arg_10] ; +0x4e, 0x1800e592e mov [rsp+58h+HandlerData], rcx; HandlerData ; +0x53, 0x1800e5933 xor ecx, ecx; HandlerType ; +0x58, 0x1800e5938 mov [rsp+58h+ContextRecord], rbx; ContextRecord ; +0x5a, 0x1800e593a call cs:RtlVirtualUnwind ; +0x5f, 0x1800e593f inc edi ; +0x65, 0x1800e5945 cmp edi, 2 ; +0x67, 0x1800e5947 jl short loc_1800E58FA ; +0x6a, 0x1800e594a add rsp, 40h ; +0x6c, 0x1800e594c pop rdi ; +0x70, 0x1800e5950 pop rsi ; +0x71, 0x1800e5951 pop rbx ; +0x72, 0x1800e5952 retn ; +0x73, 0x1800e5953