Function at 0x4eabad
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
sub esp, 0x58
lea ebp, [esp - 4]
mov eax, dword [0x70b744]
xor eax, ebp
mov dword [ebp + 0x58], eax
push 0xb4
mov eax, 0x5d9d34
call fcn.005234b0
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x68]
push 0x104
mov ebx, ecx
mov dword [ebp + 0x28], eax
call fcn.0051d97d
pop ecx
push eax
lea ecx, [ebp + 0x3c]
call fcn.004eab6f
xor esi, esi
mov dword [ebp - 4], esi
or edi, 0xffffffff
cmp dword [ebx + 0x2cc], edi
jne 0x4eac12
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x3c]
call fcn.004fc03d
mov eax, edi
jmp 0x4eae3c
cmp dword [ebp + 0x6c], esi
jne 0x4eac1c
mov dword [ebp + 0x34], edi
jmp 0x4eac28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0x6c]
mov dword [ebp + 0x34], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp eax, dword [ebp + 0x34]
jae 0x4eae5b
cmp byte [ebx + 0x248], 0
jne 0x4eae5b
cmp dword [ebp + 0x6c], esi
jne 0x4eac57
mov dword [ebp + 0x2c], 1
mov dword [ebp + 0x30], esi
jmp 0x4eac7f
mov eax, 0x3e8
cmp dword [ebp + 0x6c], eax
jb 0x4eac70
sub dword [ebp + 0x6c], eax
mov dword [ebp + 0x2c], 1
mov dword [ebp + 0x30], esi
jmp 0x4eac7f
mov eax, dword [ebp + 0x6c]
imul eax, eax, 0x3e8
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x3c]
mov dword [eax], esi
mov eax, dword [ebp + 0x3c]
mov edx, dword [eax]
cmp edx, esi
mov dword [ebp + 0x38], esi
jbe 0x4eaca8
lea ecx, [eax + 4]
mov edi, dword [ebx + 0x2cc]
cmp dword [ecx], edi
je 0x4eaca8
inc dword [ebp + 0x38]
add ecx, 4
cmp dword [ebp + 0x38], edx
jb 0x4eac93
mov ecx, dword [ebp + 0x38]
cmp ecx, edx
jne 0x4eacc6
cmp edx, 0x40
jae 0x4eacc6
mov edx, dword [ebx + 0x2cc]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp + 0x3c]
inc dword [eax]
mov eax, dword [ebp + 0x3c]
lea ecx, [ebp + 0x2c]
push ecx
push esi
push esi
push eax
mov eax, dword [ebx + 0x2cc]
inc eax
push eax
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x4ead3b
cmp eax, esi
je 0x4eac28
push dword [ebp + 0x3c]
push dword [ebx + 0x2cc]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4eae6a
push ebx
push esi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x44], esp
push esi
push str.__NC.ReadUDP.Failed2
call fcn.004ac9bc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0
mov ecx, 0x721f18
call fcn.004bc4ff
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004fc03d
mov eax, esi
jmp 0x4eae3c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x4ead5b
cmp edi, 0x2746
je 0x4ead5b
cmp edi, 0x2744
jne 0x4ead68
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4eac28
push esi
push str.__NC.ReadUDP.Failed1_EC
lea ecx, [ebp - 0x54]
call fcn.004ac9bc
mov byte [ebp - 4], 1
push esi
push edi
lea ecx, [ebp - 0x9c]
call fcn.004ac6f7
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp]
push eax
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9c]
call fcn.004ac66a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.004ac66a
sub esp, 0x24
lea eax, [ebp]
mov ecx, esp
mov dword [ebp + 0x44], esp
push eax
call fcn.004ac698
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
mov ecx, ebx
call fcn.004ea560
push esi
push 0x69ee88
lea ecx, [ebp - 0x78]
call fcn.004ac9bc
mov byte [ebp - 4], 7
push esi
sub esp, 0x24
mov eax, esp
mov dword [ebp + 0x44], esp
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 8
mov byte [ebp - 4], 7
mov ecx, 0x721f18
call fcn.0041122b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.004ac66a
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004ac66a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004fc03d
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
call fcn.0051d721
add ebp, 0x5c
leave
ret 0xc
call edi
cmp eax, dword [ebp + 0x34]
jb 0x4eae2d
xor esi, esi
inc esi
jmp 0x4ead28
cmp byte [ebx + 0x248], 0
jne 0x4eae2d
push 0x10
pop edi
push edi
lea eax, [ebp + 0x48]
push esi
push eax
call fcn.00522720
add esp, 0xc
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x48]
push eax
push esi
mov dword [ebp + 0x24], edi
mov edi, dword [ebp + 0x28]
push dword [edi]
push dword [ebp + 0x44]
push dword [ebx + 0x2cc]
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x4eafa4
mov edi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x4eafa4
cmp eax, 0x2746
je 0x4eafa4
cmp eax, 0x2744
je 0x4eafa4
push esi
push 0x67c92c
lea ecx, [ebp - 0x30]
call fcn.004ac9bc
mov byte [ebp - 4], 0xa
call edi
push esi
push eax
lea ecx, [ebp - 0xc0]
call fcn.004ac6f7
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xc0]
call fcn.004ac66a
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x30]
call fcn.004ac66a
sub esp, 0x24
lea eax, [ebp]
mov ecx, esp
mov dword [ebp + 0x44], esp
push eax
call fcn.004ac698
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xe
mov ecx, ebx
call fcn.004ea560
push esi
push 0x69ee88
lea ecx, [ebp - 0x30]
call fcn.004ac9bc
mov byte [ebp - 4], 0x10
push esi
sub esp, 0x24
mov eax, esp
mov dword [ebp + 0x44], esp
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0x10
mov ecx, 0x721f18
call fcn.0041122b
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x30]
call fcn.004ac66a
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004ac66a
jmp 0x4ead25
lea edi, [ebx + 0x2e0]
lea esi, [ebp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x28]
mov eax, dword [esi]
add eax, 0x2e
push eax
mov ecx, 0x721f90
call fcn.004cc3c9
mov ecx, dword [esi]
lea eax, [ebx + 0x350]
add ecx, 0x2e
add dword [eax], ecx
adc dword [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x250], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004fc03d
xor eax, eax
jmp 0x4eae3c