Function at 0x412dc6
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 0x412e31
call sub.WSOCK32.dll_WSAGetLastError
push eax
push 0
push str.WMC____4.4X___wmc_Quitt:_WSAStartup_FAILED_with__d___n
push 0x44d880
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x44d880
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4131d5
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0xffffffff
jne 0x412e7d
call sub.WSOCK32.dll_WSAGetLastError
push eax
push 0
push str.WMC____4.4X___wmc_Quitt:_socket_FAILED_with__d___n
push 0x44d880
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x44d880
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4131d5
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 0x412eed
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 0x44d880
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x44d880
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 0x4131d5
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x2ac]
push eax
call fcn.0041ee40
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 0x41305a
cmp dword [ebp - 0x2b8], 0x7d11
jbe 0x412f51
cmp dword [ebp - 0x2b8], 0x7d32
je 0x412fa8
jmp 0x41305a
call fcn.00413da8
mov edx, dword [ebp - 0x1a8]
mov ax, word [0x431076]
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 0x43107a
mov eax, dword [ebp - 0x1a8]
add eax, 0x20
push eax
call fcn.0041f530
add esp, 0xc
jmp 0x413061
cmp dword [ebp + 0x10], 0
je 0x413058
mov ecx, dword [ebp + 0x14]
and ecx, 0xffff
test ecx, ecx
je 0x413058
mov edx, dword [ebp + 0x14]
and edx, 0xffff
cmp edx, 0xe0
jbe 0x412fe0
mov dword [ebp - 0x2bc], 0xe0
jmp 0x412fee
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.0041f530
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.0041f530
add esp, 0xc
jmp 0x413061
xor eax, eax
jmp 0x4131d5
mov word [ebp - 0x10], 2
push 0x3ffe
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
mov eax, dword [0x4310be]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4130e1
cmp dword [ebp - 0x2b4], 0
je 0x4130dc
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 0x413089
jmp 0x413184
cmp dword [ebp + 8], 0x7d32
jne 0x413127
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 0x413184
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 0x4131b8
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 0x44d880
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x44d880
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