Function at 0x46ab50
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, 0x2fc
push ebx
push esi
push edi
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b0], 1
mov dword [ebp - 0x2b4], 0xffffffff
lea ecx, [ebp - 0x194]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x46abbe
call sub.WSOCK32.dll_WSAGetLastError
push eax
push 0
push str.WMC____4.4X___wmc_Quitt:_WSAStartup_FAILED_with__d___n
push 0x4b1180
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4b1180
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x46af74
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0xffffffff
jne 0x46ac0a
call sub.WSOCK32.dll_WSAGetLastError
push eax
push 0
push str.WMC____4.4X___wmc_Quitt:_socket_FAILED_with__d___n
push 0x4b1180
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4b1180
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x46af74
mov word [ebp - 0x1a8], 2
mov word [ebp - 0x1a6], 0
push 0
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x1a4], eax
push 0x10
lea edx, [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x198]
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x46ac86
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, dword [ebp - 0x198]
push ecx
push str.WMC____4.4X___wmc_Quitt:_bind_FAILED_with__d___n
push 0x4b1180
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4b1180
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x198]
push edx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x46af74
push 0x100
push 0
lea eax, [ebp - 0x2a8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x2ac]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x2ac]
mov word [eax + 0xe], 0x460
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2b8], ecx
cmp dword [ebp - 0x2b8], 0x7d10
jb 0x46adf3
cmp dword [ebp - 0x2b8], 0x7d11
jbe 0x46acea
cmp dword [ebp - 0x2b8], 0x7d32
je 0x46ad41
jmp 0x46adf3
call fcn.0046bc10
mov edx, dword [ebp - 0x2ac]
mov ax, word [0x4b08ce]
mov word [edx + 8], ax
mov ecx, dword [ebp - 0x2ac]
xor edx, edx
mov dx, word [ecx + 8]
add edx, 0x20
mov eax, dword [ebp - 0x2ac]
mov word [eax + 0xc], dx
mov ecx, dword [ebp - 0x2ac]
xor edx, edx
mov dx, word [ecx + 8]
push edx
push 0x4b08d2
mov eax, dword [ebp - 0x2ac]
add eax, 0x20
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x46adfa
cmp dword [ebp + 0x10], 0
je 0x46adf1
mov ecx, dword [ebp + 0x14]
and ecx, 0xffff
test ecx, ecx
je 0x46adf1
mov edx, dword [ebp + 0x14]
and edx, 0xffff
cmp edx, 0xe0
jbe 0x46ad79
mov dword [ebp - 0x2bc], 0xe0
jmp 0x46ad87
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 - 0x2ac]
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 - 0x2ac]
mov word [edx + 0xc], cx
push 0xf
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2ac]
add ecx, 0x10
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x2ac]
xor eax, eax
mov ax, word [edx + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2ac]
add edx, 0x20
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x46adfa
xor eax, eax
jmp 0x46af74
mov word [ebp - 0x1a8], 2
push 0x3ffe
call sub.WSOCK32.dll_htons
mov word [ebp - 0x1a6], ax
mov eax, dword [0x4b0916]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46ae74
cmp dword [ebp - 4], 0
je 0x46ae6f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1a4], edx
push 0x10
lea eax, [ebp - 0x1a8]
push eax
push 0
mov ecx, dword [ebp - 0x2ac]
xor edx, edx
mov dx, word [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x2ac]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x2b4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
jmp 0x46ae22
jmp 0x46af23
cmp dword [ebp + 8], 0x7d32
jne 0x46aec0
push 0x7f000001
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x1a4], eax
push 0x10
lea ecx, [ebp - 0x1a8]
push ecx
push 0
mov edx, dword [ebp - 0x2ac]
xor eax, eax
mov ax, word [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x2ac]
push ecx
mov edx, dword [ebp - 0x198]
push edx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x2b4], eax
jmp 0x46af23
push 4
lea eax, [ebp - 0x2b0]
push eax
push 0x20
push 0xffff
mov ecx, dword [ebp - 0x198]
push ecx
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 0x1a4], 0xffffffff
mov edx, dword [ebp - 0x2ac]
mov word [edx + 0xa], 1
push 0x10
lea eax, [ebp - 0x1a8]
push eax
push 0
mov ecx, dword [ebp - 0x2ac]
xor edx, edx
mov dx, word [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x2ac]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0xffffffff
jne 0x46af57
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov edx, dword [ebp - 0x198]
push edx
push str.WMC____4.4X___wmc_Quitt:_Send_FAILED_with__d___n
push 0x4b1180
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4b1180
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x198]
push eax
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
cmp dword [ebp - 0x2b4], 0xffffffff
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret