Files
WoW-Hybrid-gateway/native/nohelper/original_connect_observer_thunk.S
praxisandClaude Fable 5.2 8e02dccb86 In-client stack: transport, session lifecycle and engine bridge
175 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

33 lines
743 B
ArmAsm

/* Win64 ws2_32.connect entry reached through original WowB pointer slot.
* Save original argument registers and flags, observe only the bounded
* sockaddr header, then tail-jump to the unmodified Winsock export. */
.intel_syntax noprefix
.text
.p2align 4
.globl gw_connect_observer_thunk
gw_connect_observer_thunk:
pushfq
push rax
push rcx
push rdx
push r8
push r9
push r10
push r11
sub rsp, 0x28
mov rcx, qword ptr [rsp + 0x48]
mov edx, dword ptr [rsp + 0x40]
mov r8, qword ptr [rsp + 0x68]
mov r9, rdi
call gw_connect_observe
add rsp, 0x28
pop r11
pop r10
pop r9
pop r8
pop rdx
pop rcx
pop rax
popfq
jmp qword ptr [rip + gw_connect_original]