Function at 0x418750
Capabilities:
Connect socket
Connect udp socket
Convert ip address from string
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501cf8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1f0
mov eax, dword [0x5470bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
push 0x190
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x1fc], 0
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x1f8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x418804
push str.WSAStartup_failed._n
push 0x54b4f0
call fcn.0041a8c0
add esp, 8
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
push 0
push 0x5328b4
call fcn.00402250
jmp 0x4189d4
mov edx, edi
lea ecx, [ebp - 0x48]
call fcn.00418610
mov dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0
jne 0x418857
push str.Failed_to_resolve_hostname._n
push 0x54b4f0
call fcn.0041a8c0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x5328b4
mov byte [esi], 0
call fcn.00402250
jmp 0x4189cc
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41888c
push str.Socket_creation_failed._n
push 0x54b4f0
call fcn.0041a8c0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x5328b4
jmp 0x4189c5
xorps xmm0, xmm0
mov dword [ebp - 0x4e], 0
mov eax, 2
movq qword [ebp - 0x56], xmm0
push 0x35
mov word [ebp - 0x4a], 0
mov word [ebp - 0x58], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x54]
mov word [ebp - 0x56], ax
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4188fb
push str.Invalid_address__Address_not_supported._n
push 0x54b4f0
call fcn.0041a8c0
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x5328b4
jmp 0x4189c5
push 0x10
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x418936
push str.Connect_failed._n
push 0x54b4f0
call fcn.0041a8c0
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x5328b4
jmp 0x4189c5
xor eax, eax
mov dword [ebp - 0x30], 0x10
mov word [ebp - 0x68], ax
xorps xmm0, xmm0
mov dword [ebp - 0x5e], eax
mov word [ebp - 0x5a], ax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x68]
movq qword [ebp - 0x66], xmm0
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x41898c
push str.Getsockname_failed._n
push 0x54b4f0
call fcn.0041a8c0
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x5328b4
jmp 0x4189c5
push 0x16
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x1b], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x17], 0
push 2
movups xmmword [ebp - 0x2b], xmm0
call dword [sym.imp.WS2_32.dll_inet_ntop]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004032d0
lea ecx, [ebp - 0x48]
call fcn.004031b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret