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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 8], 0
je 0x631eb3ed
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Opening_IP_socket:__s:_i_n
mov dword [esp], 0x1e
call fcn.631a9790
jmp 0x631eb408
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Opening_IP_socket:_0.0.0.0:_i_n
mov dword [esp], 0x1e
call fcn.631a9790
mov dword [esp + 8], 0x11
mov dword [esp + 4], 2
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x631eb465
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.WARNING:_NET_IPSocket:_socket:__s_n
mov dword [esp], 0x1e
call fcn.631a9790
mov eax, dword [ebp - 0xc]
jmp 0x631eb71b
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_ioctlsocket]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x631eb4ce
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.WARNING:_NET_IPSocket:_ioctl_FIONBIO:__s_n
mov dword [esp], 0x1e
call fcn.631a9790
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
call eax
sub esp, 4
mov eax, 0xffffffff
jmp 0x631eb71b
mov dword [ebp - 0x24], 1
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_setsockopt]
call eax
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x631eb526
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.NET_IPSocket:_setsockopt_SO_BROADCAST:__s_n
mov dword [esp], 0x1e
call fcn.631a9970
mov dword [ebp - 0x24], 0x10000
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_setsockopt]
call eax
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x631eb57e
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.NET_IPSocket:_setsockopt_SO_SNDBUF:__s_n
mov dword [esp], 0x1e
call fcn.631a9970
mov dword [ebp - 0x24], 0x40000
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1002
mov dword [esp + 4], 0xffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_setsockopt]
call eax
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x631eb5d6
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.NET_IPSocket:_setsockopt_SO_RCVBUF:__s_n
mov dword [esp], 0x1e
call fcn.631a9970
mov dword [ebp - 0x24], 0xb8
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_setsockopt]
call eax
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x631eb62e
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.NET_IPSocket:_setsockopt_IP_TOS:__s_n
mov dword [esp], 0x1e
call fcn.631a9970
cmp dword [ebp + 8], 0
je 0x631eb63e
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
test al, al
jne 0x631eb64d
mov word [ebp - 0x1c], 2
mov dword [ebp - 0x18], 0
jmp 0x631eb68d
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.631e9d37
test eax, eax
jne 0x631eb68d
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
call eax
sub esp, 4
mov eax, 0xffffffff
jmp 0x631eb71b
cmp dword [ebp + 0xc], 0xffffffff
jne 0x631eb69b
mov word [ebp - 0x1a], 0
jmp 0x631eb6b2
mov eax, dword [ebp + 0xc]
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x1a], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_bind]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x631eb718
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.WARNING:_NET_IPSocket:_bind:__s_n
mov dword [esp], 0x1e
call fcn.631a9790
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
call eax
sub esp, 4
mov eax, 0xffffffff
jmp 0x631eb71b
mov eax, dword [ebp - 0xc]
leave
ret