Function at 0x416ad8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4b0494
call fcn.0047cccc
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push str.OnClientReading
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], edi
call fcn.00497f22
mov eax, dword [0x4d95e4]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 1
call fcn.00497fed
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4dfbd0
call fcn.0041752a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00497eb4
test byte [0x4dfbf4], 1
mov byte [ebp - 4], 4
jne 0x416b54
or byte [0x4dfbf4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dfbe8], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [0x4dfbfc], eax
call ebx
sub eax, dword [0x4dfbe8]
cmp eax, 0x3e8
jb 0x416b8f
call ebx
push dword [0x4dfbfc]
mov dword [0x4dfbe8], eax
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [0x4dfbfc], esi
cmp dword [ebp + 0xc], esi
jne 0x416bc1
push esi
mov ecx, edi
push dword [ebp + 8]
call fcn.00416f63
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 5
call fcn.0041750a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00497eb4
xor al, al
jmp 0x416d7a
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [ebx + 0x58]
lea ecx, [ebx + 0x14]
push eax
call fcn.00403259
push 4
push ebx
push dword [edi + 8]
call dword [edi + 4]
lea esi, [ebx + 0x14]
mov ecx, esi
call fcn.00403300
cmp eax, 0xd
jbe 0x416d55
push 8
mov ecx, esi
call fcn.00403451
push 5
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0047c5c0
lea eax, [ebp - 0x38]
push 5
push eax
lea eax, [edi + 0x2e]
push eax
call fcn.0047e180
add esp, 0x18
test eax, eax
je 0x416c2f
lea eax, [ebp - 0x28]
push 0x4cda38
push eax
mov dword [ebp - 0x28], str.bad_buffer
call fcn.0047e22c
and dword [ebp + 0xc], 0
push 0
mov ecx, esi
call fcn.00403451
push 4
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0047c5c0
add esp, 0xc
mov ecx, esi
call fcn.00403300
imul eax, eax, 0x64
xor edx, edx
div dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov dword [ebx + 0x4c], eax
je 0x416d55
mov ecx, esi
call fcn.00403300
cmp eax, dword [ebp + 0xc]
jb 0x416d55
and dword [ebp - 0x18], 0
lea eax, [ebp + 0xc]
push 4
push eax
mov ecx, esi
call fcn.0040328a
lea eax, [ebp - 0x18]
push 4
push eax
mov ecx, esi
call fcn.0040328a
lea eax, [ebp - 0x38]
push 5
push eax
mov ecx, esi
call fcn.0040328a
mov eax, dword [ebp + 0xc]
lea esi, [eax - 0xd]
push esi
call fcn.00493630
pop ecx
mov edi, eax
push dword [ebp - 0x18]
call fcn.00493630
test edi, edi
pop ecx
mov dword [ebp - 0x1c], eax
je 0x416d40
test eax, eax
je 0x416d40
push esi
push edi
lea ecx, [ebx + 0x14]
call fcn.0040328a
mov eax, dword [ebp - 0x18]
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push edi
push eax
push dword [ebp - 0x1c]
call fcn.0042bb30
add esp, 0x10
test eax, eax
jne 0x416d2b
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.00403440
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.00403259
mov eax, dword [ebp - 0x14]
push 5
push ebx
push dword [eax + 8]
call dword [eax + 4]
push edi
call fcn.00493659
pop ecx
push dword [ebp - 0x1c]
call fcn.00493659
inc dword [ebx + 0x2064]
mov edi, dword [ebp - 0x14]
pop ecx
jmp 0x416bdc
lea eax, [ebp - 0x2c]
push 0x4cda38
push eax
mov dword [ebp - 0x2c], str.bad_buffer
call fcn.0047e22c
lea eax, [ebp - 0x30]
push 0x4cda38
push eax
mov dword [ebp - 0x30], str.bad_Allocate
call fcn.0047e22c
push ebx
mov ecx, edi
call fcn.0041690f
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 7
call fcn.0041750a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00497eb4
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8