Function at 0x409634
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
mov eax, 0x4b9b88
call fcn.004b8b70
sub esp, 0x1e8
lea eax, [ebp - 0x1f4]
push ebx
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x409667
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
jmp 0x4098f7
push 6
pop esi
push esi
push 1
push 2
pop ebx
push ebx
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4098ec
and dword [ebp - 0x64], 0
xorps xmm0, xmm0
mov eax, dword [0x4eba88]
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], esi
test eax, eax
jne 0x4096b5
xor ecx, ecx
call fcn.004067ad
mov dword [0x4eba88], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
test esi, esi
jne 0x4098e5
mov ebx, dword [sym.imp.WSOCK32.dll_connect]
jmp 0x40970d
push 0x10012
push dword [0x4eb7bc]
push str.Failed_to_connect_to_an_active_debugger_client.
push dword [0x4e9eac]
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
je 0x4098a6
dec eax
sub eax, 1
je 0x4098b4
mov eax, dword [ebp - 0x14]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4096de
mov eax, dword [0x4eba90]
mov ebx, dword [ebp - 0x14]
test eax, eax
jne 0x409738
push 2
pop ecx
call fcn.004067ad
mov dword [0x4eba90], eax
push ebx
call eax
test esi, esi
jne 0x4098e5
xor ebx, ebx
mov dword [0x4eb088], edi
mov dword [ebp - 0x20], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
push str.DBGP_IDEKEY
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.0040a70d
mov esi, 0x4d1e48
mov ecx, dword [eax + 4]
mov eax, esi
test ecx, ecx
je 0x40977b
cmp dword [ecx], ebx
cmovne eax, dword [ecx]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00405909
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
test ecx, ecx
je 0x409798
call fcn.0040a85c
mov dword [ebp - 0x20], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
push str.DBGP_COOKIE
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040a70d
mov eax, dword [eax + 4]
test eax, eax
je 0x4097c3
cmp dword [eax], 0
cmovne esi, dword [eax]
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405909
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
test ecx, ecx
je 0x4097e4
call fcn.0040a85c
mov eax, dword [ebp - 0x28]
mov esi, 0x4d224e
mov dword [0x4eb0a8], ebx
mov dword [0x4eb0ac], ebx
mov ebx, esi
test eax, eax
je 0x409804
cmp dword [eax], 0
cmovne ebx, dword [eax]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x409811
cmp dword [eax], 0
cmovne esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push esi
push str._init_appid_AutoHotkey__ide_key__e__session__e__thread__u__parent___language_AutoHotkey__protocol_version_1.0__fileuri_
mov ebx, 0x4eb0a0
push ebx
call fcn.00409cd9
add esp, 0x10
lea ecx, [ebp - 0x44]
push dword [0x4eb7bc]
call fcn.00405909
mov ecx, eax
call fcn.00404e20
push eax
mov ecx, ebx
call fcn.00409ecc
mov ecx, dword [ebp - 0x40]
mov esi, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [ebp - 0x44], esi
test ecx, ecx
je 0x40985e
call fcn.004050a0
push 0xffffffffffffffff
push 0x4d29e4
mov ecx, ebx
call fcn.00409c7b
mov ecx, 0x4eb078
call fcn.00409592
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], esi
test eax, eax
jne 0x4098c2
mov eax, dword [0x4eb750]
mov dword [0x4eb08c], eax
test ecx, ecx
je 0x409893
call fcn.004050a0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
test ecx, ecx
je 0x4098a2
call fcn.004050a0
xor eax, eax
jmp 0x4098fc
push 0
push 4
mov ecx, 0x4eb110
call fcn.0041be90
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0x3e6
jmp 0x4098fc
or dword [0x4eb088], 0xffffffff
test ecx, ecx
je 0x4098d2
call fcn.004050a0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
test ecx, ecx
je 0x4098e5
call fcn.004050a0
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov ecx, str.Failed_to_connect_to_an_active_debugger_client._nContinue_running_the_script_without_the_debugger_
call fcn.004099a8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8