Function at 0x408a81
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov eax, 0x4acc0f
call fcn.004ab418
sub esp, 0x1f0
push ebx
push esi
push edi
lea eax, [ebp - 0x1fc]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x408ab4
push 0x4b0bf8
jmp 0x408cd6
push 6
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 0x408ccb
xor ebx, ebx
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
mov dword [ebp - 0x68], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x4d822c]
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 6
cmp eax, ebx
jne 0x408b02
push ebx
call fcn.00405eb7
mov dword [0x4d822c], 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]
cmp esi, ebx
jne 0x408cc2
mov esi, dword [sym.imp.WSOCK32.dll_connect]
jmp 0x408b58
push 0x10012
push dword [0x4db1f0]
push 0x4b0d00
push dword [0x4d970c]
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
je 0x408ced
dec eax
dec eax
je 0x408cfa
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 0x408b2b
mov eax, dword [0x4d8230]
mov esi, dword [ebp - 0x18]
cmp eax, ebx
jne 0x408b84
push 2
call fcn.00405eb7
mov dword [0x4d8230], eax
push esi
call eax
cmp edi, ebx
jne 0x408cc2
mov eax, dword [ebp - 0x14]
mov esi, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [0x4da6b0], eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], bl
push 0x4b0d60
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.00409929
mov eax, dword [eax + 4]
mov edi, 0x4b0cf8
cmp eax, ebx
je 0x408bc7
mov eax, dword [eax]
cmp eax, ebx
jne 0x408bc9
mov eax, edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004054ce
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004098e1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], bl
push 0x4b0d78
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00409929
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x408c06
mov eax, dword [eax]
cmp eax, ebx
jne 0x408c08
mov eax, edi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004054ce
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.004098e1
mov ecx, dword [ebp - 0x44]
mov dword [0x4da6dc], ebx
mov dword [0x4da6e0], ebx
mov eax, 0x4b00ac
cmp ecx, ebx
je 0x408c3e
mov ecx, dword [ecx]
mov edi, ecx
cmp ecx, ebx
jne 0x408c40
mov edi, eax
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x408c4f
mov ecx, dword [ecx]
mov esi, ecx
cmp ecx, ebx
jne 0x408c51
mov esi, eax
push dword [0x4db1f0]
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 eax, 0x4da6d4
call fcn.00409044
add esp, 0x14
mov ecx, 0x4da6a0
call fcn.004089df
lea ecx, [ebp - 0x48]
test eax, eax
jne 0x408ca6
mov eax, dword [0x4dad5c]
mov dword [0x4da6b4], eax
mov byte [ebp - 4], 2
call fcn.00409977
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409977
xor eax, eax
jmp 0x408cdc
or dword [0x4da6b0], 0xffffffff
mov byte [ebp - 4], 2
call fcn.00409977
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409977
push dword [ebp - 0x14]
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push 0x4b0e18
call fcn.00408d72
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, 0x4da728
call fcn.0041eb40
push dword [ebp - 0x14]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0x3e6
jmp 0x408cdc