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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a4b8c
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x6c]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x40ab4d
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
jmp 0x40addd
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x40add2
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
xor ebx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [0x4ba064]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 6
cmp eax, ebx
jne 0x40abb8
push ebx
call fcn.00406100
mov dword [0x4ba064], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x218]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x218]
push ecx
push edx
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp esi, ebx
jne 0x40adcb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov edi, dword [sym.imp.WSOCK32.dll_connect]
push ecx
push edx
push ebp
call edi
mov esi, eax
cmp esi, ebx
je 0x40ac58
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40ac10
mov eax, dword [0x4bcac8]
mov ecx, dword [0x4bb4ac]
push 0x10012
push eax
push str.Failed_to_connect_to_an_active_debugger_client.
push ecx
call ebp
sub eax, 3
je 0x40ae00
sub eax, 2
je 0x40ae0d
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x40ac10
mov ebp, dword [esp + 0x18]
mov eax, dword [0x4ba068]
mov edi, dword [esp + 0x14]
cmp eax, ebx
jne 0x40ac71
push 2
call fcn.00406100
mov dword [0x4ba068], eax
push edi
call eax
cmp esi, ebx
jne 0x40adcb
mov edi, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [0x4bc450], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
push str.DBGP_IDEKEY
lea esi, [esp + 0x2c]
mov dword [esp + 0x20c], ebx
call fcn.0040bf40
call fcn.00403e30
lea edx, [esp + 0x54]
push edx
mov ecx, eax
call fcn.0040c2b0
mov ecx, esi
mov byte [esp + 0x208], 2
call fcn.00403f20
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x24], bl
push str.DBGP_COOKIE
lea esi, [esp + 0x20]
mov byte [esp + 0x20c], 3
call fcn.0040bf40
call fcn.00403e30
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
call fcn.0040c2b0
mov ecx, esi
mov byte [esp + 0x208], 5
call fcn.00403f20
mov eax, dword [esp + 0x64]
mov dword [0x4bc47c], ebx
mov dword [0x4bc480], ebx
cmp eax, ebx
je 0x40ad26
mov eax, dword [eax]
mov edi, eax
cmp eax, ebx
jne 0x40ad2b
mov edi, 0x4a7935
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x40ad39
mov esi, dword [eax]
cmp esi, ebx
jne 0x40ad3e
mov esi, 0x4a7935
mov edx, dword [0x4bcac8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
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, 0x4bc474
call fcn.0040b190
add esp, 0x14
mov ecx, 0x4bc440
call fcn.0040aa10
test eax, eax
jne 0x40ada1
mov eax, dword [0x4bc83c]
mov dword [0x4bc454], eax
lea eax, [esp + 0x60]
mov byte [esp + 0x208], 2
call fcn.0040c300
lea eax, [esp + 0x54]
mov dword [esp + 0x208], 0xffffffff
call fcn.0040c300
xor eax, eax
jmp 0x40ade5
or esi, 0xffffffff
lea eax, [esp + 0x60]
mov dword [0x4bc450], esi
mov byte [esp + 0x208], 2
call fcn.0040c300
lea eax, [esp + 0x54]
mov dword [esp + 0x208], esi
call fcn.0040c300
push ebp
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push str.Failed_to_connect_to_an_active_debugger_client._nContinue_running_the_script_without_the_debugger_
call fcn.0040ae90
add esp, 4
mov ecx, dword [esp + 0x200]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1fc
ret 8
push ebx
push 4
mov ecx, 0x4bc4c8
call fcn.00420870
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0x3e6
jmp 0x40ade5