Function at 0x4c10e0
Capabilities:
Check for time delay via queryperformancecounter
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, 0x78
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x4c110c
mov eax, dword [ebp + 8]
push eax
call fcn.004c82e0
add esp, 4
test eax, eax
je 0x4c110c
cmp dword [ebp + 0x14], 0
jne 0x4c1113
xor al, al
jmp 0x4c14b6
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x4c1128
xor al, al
jmp 0x4c14b6
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4c1144
xor al, al
jmp 0x4c14b6
cmp dword [ebp + 0x10], 0xffffffff
je 0x4c11b2
push 4
lea edx, [ebp + 0x10]
push edx
push 0x1005
push 0xffff
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x4c117e
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4c14b6
push 4
lea edx, [ebp + 0x10]
push edx
push 0x1006
push 0xffff
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x4c11b2
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4c14b6
mov edx, dword [ebp + 8]
push edx
call fcn.004c82e0
add esp, 4
add eax, 0x12
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c8058
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4c11ea
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4c14b6
mov edx, dword [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp - 0x38]
push eax
call fcn.004c62e0
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
xor edx, edx
mov eax, dword [ebp - 0x40]
mov word [eax], dx
mov ecx, 0x7fff
mov edx, dword [ebp - 0x40]
and cx, word [edx + 2]
mov eax, dword [ebp - 0x40]
mov word [eax + 2], cx
mov ecx, 0x87ff
mov edx, dword [ebp - 0x40]
and cx, word [edx + 2]
mov eax, dword [ebp - 0x40]
mov word [eax + 2], cx
mov ecx, 0xfbff
mov edx, dword [ebp - 0x40]
and cx, word [edx + 2]
mov eax, dword [ebp - 0x40]
mov word [eax + 2], cx
mov ecx, 0xfdff
mov edx, dword [ebp - 0x40]
and cx, word [edx + 2]
mov eax, dword [ebp - 0x40]
mov word [eax + 2], cx
mov ecx, 0x100
mov edx, dword [ebp - 0x40]
or cx, word [edx + 2]
mov eax, dword [ebp - 0x40]
mov word [eax + 2], cx
mov ecx, 0xff7f
mov edx, dword [ebp - 0x40]
and cx, word [edx + 2]
mov eax, dword [ebp - 0x40]
mov word [eax + 2], cx
mov ecx, 0xff8f
mov edx, dword [ebp - 0x40]
and cx, word [edx + 2]
mov eax, dword [ebp - 0x40]
mov word [eax + 2], cx
mov ecx, 0xfff0
mov edx, dword [ebp - 0x40]
and cx, word [edx + 2]
mov eax, dword [ebp - 0x40]
mov word [eax + 2], cx
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x40]
mov word [ecx + 4], ax
xor edx, edx
mov eax, dword [ebp - 0x40]
mov word [eax + 6], dx
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov word [edx + 8], cx
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx + 0xa], ax
mov edx, dword [ebp - 0x38]
add edx, 2
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x24]
mov word [edx], ax
mov eax, dword [ebp - 0x40]
add eax, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004c14d0
add esp, 8
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004c82e0
add esp, 4
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x54], edx
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x54]
mov word [ecx], ax
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x54]
mov word [edx + 2], ax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ecx, 2
mov word [ebp - 0x1c], cx
push 0x35
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
push 0x400
call fcn.004c8058
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4c1390
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004c6b64
add esp, 4
xor al, al
jmp 0x4c14b6
push 0x400
push 0
mov edx, dword [ebp - 0x34]
push edx
call fcn.004c62e0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], 0x10
mov byte [ebp - 0x2d], 0
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4c13cf
jmp 0x4c1491
push 0x10
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jne 0x4c13f7
jmp 0x4c1491
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0x400
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jne 0x4c141f
jmp 0x4c1491
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4c142f
jmp 0x4c1491
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004c15a0
add esp, 8
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
jne 0x4c144a
jmp 0x4c1491
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x68]
mov dword [ecx], edx
cmp dword [ebp + 0x18], 0
je 0x4c1485
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x5c]
sbb ecx, dword [ebp - 0x6c]
push 0
push 0x3e8
push ecx
push eax
call fcn.004c9770
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
fild qword [ebp - 0x78]
fild qword [ebp - 8]
fdivp st(1)
mov edx, dword [ebp + 0x18]
fstp dword [edx]
mov byte [ebp - 0x2d], 1
xor eax, eax
jne 0x4c13bc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 0x38]
push edx
call fcn.004c6b64
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
call fcn.004c6b64
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret