Function at 0x42a8c0
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c4], ecx
mov byte [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x4f], eax
mov dword [ebp - 0x4b], eax
mov dword [ebp - 0x47], eax
mov dword [ebp - 0x43], eax
mov word [ebp - 0x3f], ax
mov byte [ebp - 0x3d], al
lea ecx, [ebp + 8]
call fcn.0041cc20
push eax
lea ecx, [ebp + 8]
call fcn.0041cb20
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.0051c083
add esp, 0xc
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
mov edx, 2
mov word [ebp - 0x88], dx
mov dword [ebp - 0x84], 0
xor eax, eax
mov word [ebp - 0x86], ax
mov dword [ebp - 0x64], 0x10
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x2b0], 0x1388
push 4
lea ecx, [ebp - 0x2b0]
push ecx
push 0x1005
push 0xffff
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x2b0]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x30
push 0
lea edx, [ebp - 0x34]
push edx
call fcn.00512af0
add esp, 0xc
mov byte [ebp - 0x34], 0x1b
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x298]
push ecx
mov ecx, dword [ebp - 0x2c4]
call fcn.0042a450
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x84], eax
push 0x7b
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x86], ax
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0x30
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x88]
push eax
push 0
push 0x200
lea ecx, [ebp - 0x288]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x29c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x29c], 0
jle 0x42aae8
push 0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0x2c4]
call fcn.0042a4b0
push 0
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x2c4]
call fcn.0042a4b0
lea ecx, [ebp - 0x2b8]
push ecx
lea edx, [ebp - 0x2ac]
push edx
mov ecx, dword [ebp - 0x2c4]
call fcn.0042a450
lea eax, [ebp - 0x2b8]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x28
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x20
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x2c4]
call fcn.0042a5d0
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 0
setne cl
mov byte [ebp - 0x2bd], cl
lea ecx, [ebp + 8]
call fcn.0040f740
mov al, byte [ebp - 0x2bd]
jmp 0x42aafd
mov byte [ebp - 0x2be], 0
lea ecx, [ebp + 8]
call fcn.0040f740
mov al, byte [ebp - 0x2be]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00512610
mov esp, ebp
pop ebp
ret 4