Function at 0x484c20
Capabilities:
Create udp socket
Get hostname
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov dword [ebp - 0x23c], ecx
push 0x14
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.00401d50
add esp, 0xc
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x5948], 0xffffffff
mov ecx, dword [ebp + 0x18]
and ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
mov edx, dword [ebp - 0x23c]
mov byte [edx + 0x30], cl
mov eax, dword [ebp + 0x18]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 2], al
mov ecx, dword [ebp + 0x18]
and ecx, 4
neg ecx
sbb ecx, ecx
neg ecx
mov byte [ebp - 1], cl
cmp dword [ebp + 0x14], 0
je 0x484cc6
push 4
push str.224.
mov edx, dword [ebp + 0x14]
push edx
call fcn.004bebf0
add esp, 0xc
test eax, eax
jne 0x484cc6
mov eax, dword [ebp - 0x23c]
mov byte [eax + 0x30], 1
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x484d09
push 0xffffffffffffffff
call fcn.004847a0
add esp, 4
push eax
call fcn.00484790
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
push str.Error_creating_socket_for__s._errno_u__s_n
call fcn.0040cc80
add esp, 0x10
mov eax, 9
jmp 0x484fbe
movzx edx, byte [ebp - 2]
test edx, edx
je 0x484d2e
mov dword [ebp - 0xc], 1
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 8]
push ecx
call sub.WS2_32.dll_setsockopt
cmp dword [ebp + 0xc], 0
jl 0x484e3e
movzx edx, byte [ebp - 1]
neg edx
sbb edx, edx
and edx, 4
add edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], 0
jmp 0x484d5b
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x10]
jge 0x484e3e
mov edx, dword [ebp - 0x14]
imul edx, edx, 0xa
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x20], edx
push 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.004bf170
add esp, 0xc
mov word [ebp - 0x24], 2
mov edx, dword [ebp - 0x23c]
mov ax, word [edx + 0x20]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], 0
push 0x10
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.WS2_32.dll_bind
test eax, eax
jl 0x484dd4
cmp dword [ebp - 0x14], 0
jle 0x484dd2
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x5948], ecx
jmp 0x484e3e
mov edx, dword [ebp - 0x10]
sub edx, 1
cmp dword [ebp - 0x14], edx
jge 0x484e05
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 0x20]
add ecx, 0xa
push ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x20]
push eax
push str.Cannot_listen_on_port__d__retrying_on__d.
call fcn.0040cd70
add esp, 0xc
jmp 0x484e39
call fcn.00484790
push eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + 0x20]
push edx
push str.Cannot_listen_on_port__d__rc_d.
call fcn.0040cc80
add esp, 0xc
push str.Missing_access_rights__or_port_used_by_other_program._n
call fcn.0040cc80
add esp, 4
mov eax, 0xa
jmp 0x484fbe
jmp 0x484d52
mov ecx, dword [ebp - 0x23c]
call fcn.00484c00
movzx eax, al
test eax, eax
je 0x484f8c
push 8
push 0
lea ecx, [ebp - 0x230]
push ecx
call fcn.004bf170
add esp, 0xc
push 0
call sub.WS2_32.dll_htonl
mov dword [ebp - 0x22c], eax
push 0x200
lea edx, [ebp - 0x228]
push edx
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x484e9e
push str.gethostname_failed_n
call fcn.0040cc80
add esp, 4
add eax, 0xb
jmp 0x484fbe
lea eax, [ebp - 0x228]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x484ece
push str.get_ownhost_failed_n
call fcn.0040cc80
add esp, 4
add eax, 0xb
jmp 0x484fbe
mov ecx, dword [ebp - 0x234]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp + 0x14]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x230], eax
push 8
lea ecx, [ebp - 0x230]
push ecx
push 0xc
push 0
mov edx, dword [ebp - 8]
push edx
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x484f3c
push 0xffffffffffffffff
call fcn.004847a0
add esp, 4
push eax
call fcn.00484790
push eax
push str.Join_multicast_failed._Errno_u___s_
call fcn.0040cc80
add esp, 0xc
add eax, 0xb
jmp 0x484fbe
push 0x10
push 0
mov eax, dword [ebp - 0x23c]
add eax, 0x40
push eax
call fcn.004bf170
add esp, 0xc
mov ecx, dword [ebp - 0x23c]
mov word [ecx + 0x40], 2
mov edx, dword [ebp + 0x14]
push edx
call sub.WS2_32.dll_inet_addr
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x23c]
mov ax, word [edx + 0x24]
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [ebp - 0x23c]
mov word [ecx + 0x42], ax
jmp 0x484fb0
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x23c]
call fcn.00484fd0
test eax, eax
je 0x484fb0
mov eax, 0xc
jmp 0x484fbe
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov dword [edx + 0x2c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14