Function at 0x40ecf8
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7cc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x834], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404830
xor eax, eax
push ebp
push 0x40f00d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00404840
mov dword [ebp - 0x1c], eax
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x40efec
mov word [ebp - 0x30], 2
push 0x35
call sub.wsock32.dll_htons
mov word [ebp - 0x2e], ax
push ebx
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x2c], eax
mov edx, 0x2710
mov eax, dword [ebp - 0x18]
call fcn.0040e8c4
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40efe3
xor edx, edx
push ebp
push 0x40efd9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x830]
mov edx, 0x800
call fcn.0040b5cc
call fcn.00402c48
lea eax, [ebp - 0x830]
mov dword [ebp - 0x10], eax
mov eax, 0xfffe
call fcn.00402e04
mov edx, dword [ebp - 0x10]
mov word [edx], ax
push pe_nt_image_headers32
call sub.wsock32.dll_htons
mov edx, dword [ebp - 0x10]
mov word [edx + 2], ax
push 1
call sub.wsock32.dll_htons
mov edx, dword [ebp - 0x10]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x10]
mov word [eax + 6], 0
mov eax, dword [ebp - 0x10]
mov word [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov word [eax + 0xa], 0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x823]
push eax
call sub.kernel32.dll_lstrcpyA
mov dword [ebp - 0xc], 0xd
xor ebx, ebx
jmp 0x40ee3f
mov esi, dword [ebp - 0xc]
add esi, ebx
cmp byte [ebp + esi - 0x830], 0
je 0x40ee4f
cmp byte [ebp + esi - 0x830], 0x2e
jne 0x40ee3e
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x831], bl
inc ebx
add dword [ebp - 0xc], ebx
xor ebx, ebx
jmp 0x40ee3f
inc ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_lstrlenA_1
sub eax, 2
cmp ebx, eax
jl 0x40ee13
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x831], bl
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_lstrlenA_1
add eax, 0xf
lea eax, [ebp + eax - 0x831]
mov dword [ebp - 0x14], eax
push 1
call sub.wsock32.dll_htons
mov edx, dword [ebp - 0x14]
mov word [edx], ax
push 1
call sub.wsock32.dll_htons
mov edx, dword [ebp - 0x14]
mov word [edx + 2], ax
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_lstrlenA_1
add eax, 0x10
add eax, 2
push eax
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_sendto
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x830]
mov edx, 0x800
call fcn.0040b5cc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x800
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_recvfrom
mov edx, dword [ebp - 0x10]
cmp word [edx + 6], 0
je 0x40efcf
cmp eax, 0xc
jle 0x40efcf
lea eax, [ebp - 0x830]
mov edx, 0xc
call fcn.0040e908
mov dword [ebp - 0x20], eax
jmp 0x40ef24
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.0040e908
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
jne 0x40ef14
mov edx, 5
mov eax, dword [ebp - 0x20]
call fcn.0040e908
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp word [eax + 2], 0x100
jne 0x40ef9c
mov ax, word [eax + 0xa]
push eax
call sub.wsock32.dll_ntohs
mov ebx, eax
mov edx, 0xc
mov eax, dword [ebp - 0x20]
call fcn.0040e908
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x834]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.0040e8e8
push dword [ebp - 0x834]
push 0x40f028
push dword [edi]
mov eax, edi
mov edx, 3
call fcn.00404700
movzx edx, bx
mov eax, dword [ebp - 0x20]
call fcn.0040e908
mov dword [ebp - 0x20], eax
jmp 0x40efb9
mov ax, word [eax + 0xa]
push eax
call sub.wsock32.dll_ntohs
mov ebx, eax
movzx edx, bx
add edx, 0xc
mov eax, dword [ebp - 0x20]
call fcn.0040e908
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
jne 0x40ef3c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 6]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40efe3
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f014
lea eax, [ebp - 0x834]
call fcn.00404394
lea eax, [ebp - 4]
call fcn.00404394
ret