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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a455c
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
push ebx
push esi
push edi
lea eax, [esp + 0x68]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x40abcf
mov ecx, 0x4bc3d8
call fcn.0040aee0
mov ecx, dword [0x4bca60]
mov edx, dword [0x4bb448]
push 0x10014
push ecx
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push edx
jmp 0x40ae85
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ae5e
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [0x4ba004]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 6
test eax, eax
jne 0x40ac38
push eax
call fcn.00406160
mov dword [0x4ba004], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x34]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
test esi, esi
jne 0x40ae57
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov edi, dword [sym.imp.WSOCK32.dll_connect]
push ecx
push edx
push ebx
call edi
mov esi, eax
test esi, esi
je 0x40acc4
jmp 0x40ac80
mov eax, dword [0x4bca60]
mov ecx, dword [0x4bb448]
push 0x10012
push eax
push str.Failed_to_connect_to_an_active_debugger_client.
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 3
je 0x40aeba
sub eax, 2
je 0x40aec8
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x40ac80
mov eax, dword [0x4ba008]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x40acdd
push 2
call fcn.00406160
mov dword [0x4ba008], eax
push edi
call eax
xor edi, edi
cmp esi, edi
jne 0x40ae57
mov dword [0x4bc3e8], ebx
mov dword [esp + 0x24], vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [esp + 0x28], edi
mov byte [esp + 0x2c], 0
push str.DBGP_IDEKEY
lea esi, [esp + 0x28]
mov dword [esp + 0x208], edi
call fcn.0040c000
call fcn.00403df0
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
call fcn.0040c370
mov ecx, esi
mov byte [esp + 0x204], 2
call fcn.00403f20
mov dword [esp + 0x18], vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], 0
push str.DBGP_COOKIE
lea esi, [esp + 0x1c]
mov byte [esp + 0x208], 3
call fcn.0040c000
call fcn.00403df0
lea edx, [esp + 0x5c]
push edx
mov ecx, eax
call fcn.0040c370
mov ecx, esi
mov byte [esp + 0x204], 5
call fcn.00403f20
mov eax, dword [esp + 0x60]
mov dword [0x4bc414], edi
mov dword [0x4bc418], edi
mov ecx, 0x4a7935
cmp eax, edi
je 0x40ada0
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x40ada4
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x40adb2
mov esi, dword [eax]
cmp esi, edi
jne 0x40adb4
mov esi, ecx
mov eax, dword [0x4bca60]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
push str._init_appid_AutoHotkey__ide_key__e__session__e__thread__u__parent___language_AutoHotkey__protocol_version_1.0__fileuri__r___
mov edi, 0x4bc40c
call fcn.0040b250
add esp, 0x14
mov ecx, 0x4bc3d8
call fcn.0040aa70
test eax, eax
lea eax, [esp + 0x5c]
jne 0x40ae31
mov edx, dword [0x4bc7d4]
mov dword [0x4bc3ec], edx
mov byte [esp + 0x204], 2
call fcn.00403e10
lea eax, [esp + 0x50]
mov dword [esp + 0x204], 0xffffffff
call fcn.00403e10
xor eax, eax
mov ecx, dword [esp + 0x1fc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or esi, 0xffffffff
mov dword [0x4bc3e8], esi
mov byte [esp + 0x204], 2
call fcn.00403e10
lea eax, [esp + 0x50]
mov dword [esp + 0x204], esi
call fcn.00403e10
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov ecx, 0x4bc3d8
call fcn.0040aee0
mov eax, dword [0x4bca60]
mov ecx, dword [0x4bb448]
push 0x10014
push eax
push str.Failed_to_connect_to_an_active_debugger_client._nContinue_running_the_script_without_the_debugger_
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x40ae9e
push 0
push 4
mov ecx, 0x4bc460
call fcn.00420790
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
mov eax, 0x3e6
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 4
mov ecx, 0x4bc460
call fcn.00420790
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x40ae9e