Function at 0x4087f4
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov eax, 0x4ac08d
call fcn.004aa8e8
sub esp, 0x1f8
push ebx
push esi
push edi
lea eax, [ebp - 0x204]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x408827
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
jmp 0x408a82
push 6
pop ebx
push ebx
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x408a77
and dword [ebp - 0x68], 0
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [0x4d71c4]
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], ebx
test eax, eax
jne 0x408872
push eax
call fcn.00405dd2
mov dword [0x4d71c4], eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
xor ebx, ebx
cmp esi, ebx
jne 0x408a6e
mov esi, dword [sym.imp.WSOCK32.dll_connect]
jmp 0x4088ca
push 0x10012
push dword [0x4da198]
push str.Failed_to_connect_to_an_active_debugger_client.
push dword [0x4d86a0]
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
je 0x408a99
dec eax
dec eax
je 0x408aa6
mov eax, dword [ebp - 0x18]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [ebp - 0x14]
call esi
mov edi, eax
cmp edi, ebx
jne 0x40889d
mov eax, dword [0x4d71c8]
mov esi, dword [ebp - 0x18]
cmp eax, ebx
jne 0x4088f6
push 2
call fcn.00405dd2
mov dword [0x4d71c8], eax
push esi
call eax
cmp edi, ebx
jne 0x408a6e
mov eax, dword [ebp - 0x14]
mov esi, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [0x4d9648], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], bl
push str.DBGP_IDEKEY
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00409686
mov eax, dword [eax + 4]
mov edi, 0x4af9bc
cmp eax, ebx
je 0x408939
mov eax, dword [eax]
cmp eax, ebx
jne 0x40893b
mov eax, edi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040541e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040963e
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
push str.DBGP_COOKIE
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00409686
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x408979
mov eax, dword [eax]
cmp eax, ebx
jne 0x40897b
mov eax, edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040541e
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0040963e
mov eax, dword [ebp - 0x38]
mov dword [0x4d9668], ebx
mov dword [0x4d966c], ebx
mov edi, 0x4afd36
cmp eax, ebx
je 0x4089b1
mov eax, dword [eax]
cmp eax, ebx
mov ebx, eax
jne 0x4089b3
mov ebx, edi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4089c2
mov eax, dword [eax]
mov esi, eax
test eax, eax
jne 0x4089c4
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push esi
mov esi, 0x4d9660
push str._init_appid_AutoHotkey__ide_key__e__session__e__thread__u__parent___language_AutoHotkey__protocol_version_1.0__fileuri_
mov eax, esi
call fcn.00408df0
add esp, 0x10
push dword [0x4da198]
lea eax, [ebp - 0x74]
push eax
call fcn.0040541e
mov eax, dword [eax + 4]
test eax, eax
je 0x4089ff
mov eax, dword [eax]
test eax, eax
je 0x4089ff
mov edi, eax
mov eax, edi
mov ecx, esi
call fcn.00408fdd
lea ecx, [ebp - 0x74]
call fcn.004096d4
or edi, 0xffffffff
push 0x4b053c
mov eax, edi
mov ecx, esi
call fcn.00408d96
mov ecx, 0x4d9638
call fcn.00408752
lea ecx, [ebp - 0x3c]
test eax, eax
jne 0x408a54
mov eax, dword [0x4d9d04]
mov dword [0x4d964c], eax
mov byte [ebp - 4], 2
call fcn.004096d4
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call fcn.004096d4
xor eax, eax
jmp 0x408a88
mov dword [0x4d9648], edi
mov byte [ebp - 4], 2
call fcn.004096d4
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call fcn.004096d4
push dword [ebp - 0x14]
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.00408b1e
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push ebx
push 4
mov ecx, 0x4d96d0
call fcn.0041e8e0
push dword [ebp - 0x14]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0x3e6
jmp 0x408a88