Function at 0x4a6950
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
sub esp, 0x24
push ebx
push ecx
push edx
push esi
push edi
mov dword [esp + 0x16], edx
mov esi, eax
mov edx, ebx
mov dword [esp + 0x1a], edx
mov di, cx
mov word [esp + 0x1e], di
mov eax, dword [esp + 0x16]
lea eax, [esp + 0x20]
mov ebx, 0x5a9b38
mov ecx, 0
call fcn.00423ae0
cmp dword [0x5c290c], 0
pushfd
movzx edi, di
popfd
je 0x4a6a2f
mov eax, str.Sending_a_NetAuto_UDP__datagram__packet_of_size__to_IP_
mov ebx, 0x30
call fcn.00425f5c
mov eax, dword [esp + 0x3c]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5a970c
mov ebx, 9
call fcn.00425f5c
call fcn.00425618
push edx
call sub.WSOCK32.dll_inet_ntoa
call fcn.004260bc
call fcn.00425618
mov eax, str._to_DG_Port_
mov ebx, 0xe
call fcn.00425f5c
call fcn.00425618
mov eax, edi
call fcn.00425c64
call fcn.00425618
mov eax, str._using_Socket__SendNetAutoUDPMsg
mov ebx, 0x10
call fcn.00425f5c
call fcn.00425618
mov eax, esi
call fcn.00425c64
call fcn.00425618
mov eax, 0x5a9738
mov ebx, 0x11
call fcn.00425f5c
mov eax, 0
call fcn.004a7a20
mov ecx, dword [esp + 0x3c]
cmp ecx, 0x200
jle 0x4a6a83
mov eax, str.Warning._DataGram_Packet_size__._This_is_larger_than_recommended_size_of_512._Fragmentation_may_occur.
mov ebx, 0x20
call fcn.00425f5c
mov eax, ecx
call fcn.00425c64
call fcn.00425618
mov eax, 0x5a976c
mov ebx, 0x47
call fcn.00425f5c
call fcn.00425618
mov eax, 0x5a97b4
mov ebx, 0x11
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov dword [esp + 0x20], 0
cmp esi, 0
jne 0x4a6b17
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0xffff
jne 0x4a6b1b
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esp + 0x20], eax
mov eax, str.Error_Creating_UDP_Socket
mov ebx, 0x1a
call fcn.00425f5c
mov eax, dword [esp + 0x20]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5a97e4
mov ebx, 1
call fcn.00425f5c
call fcn.00425618
push dword [esp + 0x20]
call fcn.004a5630
call fcn.00425618
mov eax, 0x5a97e8
mov ebx, 0x11
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [esp + 0x20]
jmp 0x4a6cdd
mov dword [esp + 0x24], esi
mov word [esp + 0x28], 2
mov eax, dword [esp + 0x1a]
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x1e]
push eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x2a], ax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x48]
mov eax, dword [esp + 0x50]
push eax
push dword [esp + 0x38]
call sub.WSOCK32.dll_sendto
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x3c]
add dword [0x5c29f0], ecx
cmp dword [esp + 0x20], 0
jge 0x4a6bf1
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esp + 0x20], eax
mov eax, str.Error_Sending_UDP_Packet_Error_
mov ebx, 0x21
call fcn.00425f5c
mov eax, dword [esp + 0x20]
call fcn.00425c64
call fcn.00425618
mov eax, str._Error_Str_
mov ebx, 0xd
call fcn.00425f5c
call fcn.00425618
push dword [esp + 0x20]
call fcn.004a5630
call fcn.00425618
mov eax, str._Port__SendNetAutoUDPMsg
mov ebx, 8
call fcn.00425f5c
call fcn.00425618
mov eax, edi
call fcn.00425c64
call fcn.00425618
mov eax, 0x5a9838
mov ebx, 0x11
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
jmp 0x4a6c5f
cmp dword [esp + 0x20], ecx
je 0x4a6c57
mov eax, str.Error_in_size_sent._Wanted_to_send_bytes_
mov ebx, 0x2b
call fcn.00425f5c
mov eax, ecx
call fcn.00425c64
call fcn.00425618
mov eax, str._Actually_sent_
mov ebx, 0x11
call fcn.00425f5c
call fcn.00425618
mov eax, dword [esp + 0x20]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5a988c
mov ebx, 0x11
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov dword [esp + 0x20], 0xfffffff6
jmp 0x4a6c5f
mov dword [esp + 0x20], 0
cmp esi, 0
jne 0x4a6cd9
push dword [esp + 0x24]
call sub.WSOCK32.dll_closesocket
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x4a6cd9
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esp + 0x20], eax
mov eax, str.Error_Closing_Temp_UDP_Socket
mov ebx, 0x1e
call fcn.00425f5c
mov eax, dword [esp + 0x20]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5a98c0
mov ebx, 1
call fcn.00425f5c
call fcn.00425618
push dword [esp + 0x20]
call fcn.004a5630
call fcn.00425618
mov eax, str.SendNetAutoUDPMsg
mov ebx, 0x11
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop edx
pop ecx
pop ebx
add esp, 0x24
ret 8