Function at 0x10004f10
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007798d
mov eax, dword fs:[0]
push eax
sub esp, 0x5b4
mov eax, dword [0x10091628]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x5b8], eax
lea eax, [ebp - 0x5a0]
mov dword [ebp - 4], 0
push eax
push 0x202
mov dword [ebp - 0x5b4], 0x10
mov dword [ebp - 0x5c0], 0xbb8
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10004f92
push str.WSAStartup_failed._n
call fcn.1000b030
add esp, 4
mov esi, 1
jmp 0x10005130
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004fc2
push str.Socket_creation_failed._n
call fcn.1000b030
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 1
jmp 0x10005130
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x5bc]
push 4
push eax
push 0x20
push 0xffff
push edi
mov dword [ebp - 0x5bc], 1
call esi
cmp eax, 0xffffffff
jne 0x10004ff1
push str.Setting_socket_options_failed._n
jmp 0x1000506e
push 4
lea eax, [ebp - 0x5c0]
push eax
push 0x1006
push 0xffff
push edi
call esi
cmp eax, 0xffffffff
jne 0x10005013
push str.Setting_receive_timeout_failed._n
jmp 0x1000506e
mov eax, 2
push 0xffffffffffffffff
mov word [ebp - 0x5b0], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0xeec2
mov dword [ebp - 0x5ac], eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x5b4]
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp - 0x5b0]
push ecx
push 0
push dword [ebp + 0x20]
mov word [ebp - 0x5ae], ax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1000508d
push str.Send_failed._n
call fcn.1000b030
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 1
jmp 0x10005130
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x5b0]
push eax
push 0
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp esi, 0xffffffff
jne 0x10005103
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
mov ecx, str.Receive_failed._n
mov edx, str.Receive_timed_out._n
cmovne edx, ecx
push edx
call fcn.1000b030
mov ecx, dword [ebp - 0x5b8]
add esp, 4
push 0
mov dword [ecx], 0
mov ecx, ebx
push 0x10079660
call fcn.10006dc0
or esi, esi
jmp 0x10005130
push dword [ebp - 0x5ac]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, ebx
call fcn.10003270
push dword [ebp - 0x5ae]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x5b8]
xor esi, esi
movzx eax, ax
mov dword [ecx], eax
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x10005166
mov ecx, dword [ebp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000515c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000515c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10075d5f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075d21
mov esp, ebp
pop ebp
ret