Function at 0x41c6c0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4af890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5fa860]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x20]
mov eax, dword [0x5fa868]
mov edi, dword [eax + 0x20]
call fcn.0041c030
mov eax, dword [0x5fa844]
test byte [eax + 0x20], 2
je 0x41c74f
xor esi, esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x5fa864]
push 0x5fa90c
push edi
push dword [eax + 4]
call fcn.0041c280
add esp, 0x10
mov dword [0x4ae1ec], eax
cmp eax, 0xffffffff
jne 0x41c72b
cmp dword [ebp - 0x18], 0x273f
je 0x41c742
inc esi
inc edi
cmp esi, 0xa
jl 0x41c6f5
jmp 0x41c742
push edi
push str.net_port6
call fcn.00410510
add esp, 8
cmp dword [0x4ae1ec], 0xffffffff
jne 0x41c74f
push str.WARNING:_Couldnt_bind_to_a_v6_ip_address._n
call fcn.0040cbe0
add esp, 4
mov eax, dword [0x5fa844]
test byte [eax + 0x20], 1
je 0x41c90f
mov dword [ebp - 0x18], 0
mov eax, dword [0x5fa85c]
push ebx
mov edi, dword [eax + 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 1
test edi, edi
je 0x41c790
push edi
push str.Opening_IP_socket:__s:_i_n
call fcn.0040cbe0
add esp, 0xc
jmp 0x41c79d
push str.Opening_IP_socket:_0.0.0.0:_i_n
call fcn.0040cbe0
add esp, 8
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c7d0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
call fcn.0041b5f0
push eax
push str.WARNING:_NET_IPSocket:_socket:__s_n
call fcn.0040cbe0
add esp, 8
jmp 0x41c8ac
lea eax, [ebp - 0x1c]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41c7f5
call fcn.0041b5f0
push eax
push str.WARNING:_NET_IPSocket:_ioctl_FIONBIO:__s_n
jmp 0x41c895
push 4
lea eax, [ebp - 0x20]
push eax
push 0x20
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41c821
call fcn.0041b5f0
push eax
push str.WARNING:_NET_IPSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0040cbe0
add esp, 8
test edi, edi
je 0x41c854
cmp byte [edi], 0
je 0x41c854
push 2
push 2
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0041d3c0
add esp, 0x14
test eax, eax
jne 0x41c864
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x4ae1e4], 0xffffffff
jmp 0x41c8be
mov eax, 2
mov dword [ebp - 0x10], 0
mov word [ebp - 0x14], ax
cmp ebx, 0xffffffff
jne 0x41c86d
xor eax, eax
jmp 0x41c874
push ebx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x41c8d1
call fcn.0041b5f0
push eax
push str.WARNING:_NET_IPSocket:_bind:__s_n
call fcn.0040cbe0
add esp, 8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x4ae1e4], 0xffffffff
cmp edi, 0x273f
je 0x41c8f9
mov ecx, dword [ebp - 0x18]
inc ebx
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 0xa
jl 0x41c765
jmp 0x41c8f9
push ebx
push str.net_port
mov dword [0x4ae1e4], esi
call fcn.00410510
mov eax, dword [0x5fa848]
add esp, 8
cmp dword [eax + 0x20], 0
je 0x41c8f9
push ebx
call fcn.0041c920
add esp, 4
cmp dword [0x4ae1e4], 0xffffffff
jne 0x41c90f
push str.WARNING:_Couldnt_bind_to_a_v4_ip_address._n
call fcn.0040cbe0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret