Files
WoW-Hybrid-gateway/native/nohelper/original_connect_export_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

52 lines
1.3 KiB
ArmAsm

/* Entered by a near relay from the exact ws2_32.connect entry. Original
* caller return and Win64 args remain on the stack/registers. Save and restore
* Winsock last error around diagnostic work, then replay the relocated three
* pushes and continue at original connect+5 without recursion. */
.intel_syntax noprefix
.text
.p2align 4
.globl gw_export_connect_thunk
.seh_proc gw_export_connect_thunk
gw_export_connect_thunk:
pushfq
.seh_stackalloc 8
push rax
.seh_stackalloc 8
push rcx
.seh_stackalloc 8
push rdx
.seh_stackalloc 8
push r8
.seh_stackalloc 8
push r9
.seh_stackalloc 8
push r10
.seh_stackalloc 8
push r11
.seh_stackalloc 8
sub rsp, 0x38
.seh_stackalloc 0x38
.seh_endprologue
call qword ptr [rip + gw_export_wsa_get_error]
mov dword ptr [rsp + 0x30], eax
mov rcx, qword ptr [rsp + 0x58]
mov edx, dword ptr [rsp + 0x50]
mov r8, qword ptr [rsp + 0x78]
mov r9, rdi
lea rax, [rsp + 0x78]
mov qword ptr [rsp + 0x20], rax
call gw_export_connect_observe
mov ecx, dword ptr [rsp + 0x30]
call qword ptr [rip + gw_export_wsa_set_error]
add rsp, 0x38
pop r11
pop r10
pop r9
pop r8
pop rdx
pop rcx
pop rax
popfq
jmp qword ptr [rip + gw_export_connect_trampoline]
.seh_endproc