Function at 0x408846
Capabilities:
Create udp socket
Initialize winsock library
Print debug messages
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], 1
mov dword [ebp - 0x1ac], 0xffffffff
lea ecx, [ebp - 0x1a0]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4088b1
call sub.WSOCK32.dll_WSAGetLastError
push eax
push 0
push str.WMC____4.4X___wmc_Quitt:_WSAStartup_FAILED_with__d___n
push 0x421120
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x421120
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x408c55
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0xffffffff
jne 0x4088fd
call sub.WSOCK32.dll_WSAGetLastError
push eax
push 0
push str.WMC____4.4X___wmc_Quitt:_socket_FAILED_with__d___n
push 0x421120
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x421120
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x408c55
mov word [ebp - 0x10], 2
mov word [ebp - 0xe], 0
push 0
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0xc], eax
push 0x10
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x2b0]
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x40896d
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, dword [ebp - 0x2b0]
push ecx
push str.WMC____4.4X___wmc_Quitt:_bind_FAILED_with__d___n
push 0x421120
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x421120
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x2b0]
push edx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x408c55
push 0x100
push 0
lea eax, [ebp - 0x2ac]
push eax
call fcn.00413a30
add esp, 0xc
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1a8]
mov word [eax + 0xe], 0x460
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2b8], ecx
cmp dword [ebp - 0x2b8], 0x7d10
jb 0x408ada
cmp dword [ebp - 0x2b8], 0x7d11
jbe 0x4089d1
cmp dword [ebp - 0x2b8], 0x7d32
je 0x408a28
jmp 0x408ada
call fcn.00409828
mov edx, dword [ebp - 0x1a8]
mov ax, word [0x420676]
mov word [edx + 8], ax
mov ecx, dword [ebp - 0x1a8]
xor edx, edx
mov dx, word [ecx + 8]
add edx, 0x20
mov eax, dword [ebp - 0x1a8]
mov word [eax + 0xc], dx
mov ecx, dword [ebp - 0x1a8]
xor edx, edx
mov dx, word [ecx + 8]
push edx
push 0x42067a
mov eax, dword [ebp - 0x1a8]
add eax, 0x20
push eax
call fcn.00413c30
add esp, 0xc
jmp 0x408ae1
cmp dword [ebp + 0x10], 0
je 0x408ad8
mov ecx, dword [ebp + 0x14]
and ecx, 0xffff
test ecx, ecx
je 0x408ad8
mov edx, dword [ebp + 0x14]
and edx, 0xffff
cmp edx, 0xe0
jbe 0x408a60
mov dword [ebp - 0x2bc], 0xe0
jmp 0x408a6e
mov eax, dword [ebp + 0x14]
and eax, 0xffff
mov dword [ebp - 0x2bc], eax
mov cx, word [ebp - 0x2bc]
mov word [ebp + 0x14], cx
mov edx, dword [ebp - 0x1a8]
mov ax, word [ebp + 0x14]
mov word [edx + 8], ax
mov ecx, dword [ebp + 0x14]
and ecx, 0xffff
add ecx, 0x20
mov edx, dword [ebp - 0x1a8]
mov word [edx + 0xc], cx
push 0xf
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x10
push ecx
call fcn.00413c30
add esp, 0xc
mov edx, dword [ebp - 0x1a8]
xor eax, eax
mov ax, word [edx + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1a8]
add edx, 0x20
push edx
call fcn.00413c30
add esp, 0xc
jmp 0x408ae1
xor eax, eax
jmp 0x408c55
mov word [ebp - 0x10], 2
push 0x3ffe
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
mov eax, dword [0x4206be]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x408b61
cmp dword [ebp - 0x2b4], 0
je 0x408b5c
mov ecx, dword [ebp - 0x2b4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x1a8]
xor edx, edx
mov dx, word [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x2b0]
push ecx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x2b4]
mov eax, dword [edx]
mov dword [ebp - 0x2b4], eax
jmp 0x408b09
jmp 0x408c04
cmp dword [ebp + 8], 0x7d32
jne 0x408ba7
push 0x7f000001
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0xc], eax
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x1a8]
xor eax, eax
mov ax, word [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x2b0]
push edx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x1ac], eax
jmp 0x408c04
push 4
lea eax, [ebp - 0x1a4]
push eax
push 0x20
push 0xffff
mov ecx, dword [ebp - 0x2b0]
push ecx
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 0xc], 0xffffffff
mov edx, dword [ebp - 0x1a8]
mov word [edx + 0xa], 1
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x1a8]
xor edx, edx
mov dx, word [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x2b0]
push ecx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0xffffffff
jne 0x408c38
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov edx, dword [ebp - 0x2b0]
push edx
push str.WMC____4.4X___wmc_Quitt:_Send_FAILED_with__d___n
push 0x421120
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x421120
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x2b0]
push eax
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
cmp dword [ebp - 0x1ac], 0xffffffff
setne al
mov esp, ebp
pop ebp
ret