Function at 0x4de4e3
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 [0x6dd9a4]
xor eax, ebp
mov dword [ebp + 0x58], eax
push 0xb4
mov eax, 0x5bd4db
call fcn.00518b46
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.00511d1d
pop ecx
push eax
lea ecx, [ebp + 0x3c]
call fcn.004db094
xor esi, esi
mov dword [ebp - 4], esi
or edi, 0xffffffff
cmp dword [ebx + 0x2cc], edi
jne 0x4de548
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x3c]
call fcn.004da9e8
mov eax, edi
jmp 0x4de772
cmp dword [ebp + 0x6c], esi
jne 0x4de552
mov dword [ebp + 0x34], edi
jmp 0x4de55e
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 0x4de791
cmp byte [ebx + 0x248], 0
jne 0x4de791
cmp dword [ebp + 0x6c], esi
jne 0x4de58d
mov dword [ebp + 0x2c], 1
mov dword [ebp + 0x30], esi
jmp 0x4de5b5
mov eax, 0x3e8
cmp dword [ebp + 0x6c], eax
jb 0x4de5a6
sub dword [ebp + 0x6c], eax
mov dword [ebp + 0x2c], 1
mov dword [ebp + 0x30], esi
jmp 0x4de5b5
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 0x4de5de
lea ecx, [eax + 4]
mov edi, dword [ebx + 0x2cc]
cmp dword [ecx], edi
je 0x4de5de
inc dword [ebp + 0x38]
add ecx, 4
cmp dword [ebp + 0x38], edx
jb 0x4de5c9
mov ecx, dword [ebp + 0x38]
cmp ecx, edx
jne 0x4de5fc
cmp edx, 0x40
jae 0x4de5fc
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 0x4de671
cmp eax, esi
je 0x4de55e
push dword [ebp + 0x3c]
push dword [ebx + 0x2cc]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4de7a0
push ebx
push esi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x44], esp
push esi
push str.__NC.ReadUDP.Failed2
call fcn.0049eefc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0
mov ecx, 0x6ed730
call fcn.004b4cba
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004da9e8
mov eax, esi
jmp 0x4de772
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x4de691
cmp edi, 0x2746
je 0x4de691
cmp edi, 0x2744
jne 0x4de69e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4de55e
push esi
push str.__NC.ReadUDP.Failed1_EC
lea ecx, [ebp - 0x54]
call fcn.0049eefc
mov byte [ebp - 4], 1
push esi
push edi
lea ecx, [ebp - 0x9c]
call fcn.0049ec37
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp]
push eax
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9c]
call fcn.0049ebaa
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.0049ebaa
sub esp, 0x24
lea eax, [ebp]
mov ecx, esp
mov dword [ebp + 0x44], esp
push eax
call fcn.0049ebd8
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
mov ecx, ebx
call fcn.004de02a
push esi
push 0x67d744
lea ecx, [ebp - 0x78]
call fcn.0049eefc
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.004a0106
add esp, 0xc
mov byte [ebp - 4], 8
mov byte [ebp - 4], 7
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.0049ebaa
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0049ebaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004da9e8
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.005112a7
add ebp, 0x5c
leave
ret 0xc
call edi
cmp eax, dword [ebp + 0x34]
jb 0x4de763
xor esi, esi
inc esi
jmp 0x4de65e
cmp byte [ebx + 0x248], 0
jne 0x4de763
push 0x10
pop edi
push edi
lea eax, [ebp + 0x48]
push esi
push eax
call fcn.00516720
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 0x4de8da
mov edi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x4de8da
cmp eax, 0x2746
je 0x4de8da
cmp eax, 0x2744
je 0x4de8da
push esi
push str.NC.ReadUDP.Failed_LE
lea ecx, [ebp - 0x30]
call fcn.0049eefc
mov byte [ebp - 4], 0xa
call edi
push esi
push eax
lea ecx, [ebp - 0xc0]
call fcn.0049ec37
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xc0]
call fcn.0049ebaa
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x30]
call fcn.0049ebaa
sub esp, 0x24
lea eax, [ebp]
mov ecx, esp
mov dword [ebp + 0x44], esp
push eax
call fcn.0049ebd8
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xe
mov ecx, ebx
call fcn.004de02a
push esi
push 0x67d744
lea ecx, [ebp - 0x30]
call fcn.0049eefc
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.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0x10
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x30]
call fcn.0049ebaa
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0049ebaa
jmp 0x4de65b
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, 0x6ed7a8
call fcn.004c1a91
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.004da9e8
xor eax, eax
jmp 0x4de772