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

Disassembly:
mov eax, 0x58ebc8
call fcn.0055690c
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push str.OnClientReading
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], ebx
call fcn.005726ca
mov eax, dword [0x5eb854]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00572795
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x600dd8
call fcn.0040bdde
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0057265c
test byte [0x600db8], 1
mov byte [ebp - 4], 4
jne 0x40b34c
or byte [0x600db8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x600dfc], eax
mov edi, dword [ebp + 0xc]
add dword [0x600e0c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x600dfc]
cmp eax, 0x3e8
jb 0x40b389
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [0x600e0c]
mov dword [0x600dfc], eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [0x600e0c], esi
cmp edi, esi
jne 0x40b3ba
push esi
mov ecx, ebx
push dword [ebp + 8]
call fcn.0040b7b0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 5
call fcn.0040bdd5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0057265c
xor al, al
jmp 0x40b5c7
cmp edi, 5
jne 0x40b40d
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x26]
push edi
push eax
lea eax, [esi + 0x58]
push eax
call fcn.00556e80
add esp, 0xc
test eax, eax
jne 0x40b410
lea edi, [esi + 0x34]
mov ecx, edi
call fcn.004021b1
push 0
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.00402304
push dword [ebp + 0xc]
mov ecx, ebx
push eax
push esi
call fcn.0040b14a
push esi
mov ecx, ebx
call fcn.0040b0d5
mov dword [ebp - 4], 6
jmp 0x40b5b1
mov esi, dword [ebp + 8]
lea eax, [esi + 0x58]
push edi
lea ecx, [esi + 0x14]
push eax
call fcn.00402109
push 4
push esi
push dword [ebx + 8]
call dword [ebx + 4]
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.004021b1
cmp eax, 0xd
jbe 0x40b5a2
push 0
mov ecx, edi
call fcn.00402304
push 5
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00556200
lea eax, [ebp - 0x3c]
push 5
push eax
lea eax, [ebx + 0x26]
push eax
call fcn.00556e80
add esp, 0x18
test eax, eax
je 0x40b479
lea eax, [ebp - 0x2c]
push 0x5c95c8
push eax
mov dword [ebp - 0x2c], str.bad_buffer
call fcn.00556a70
and dword [ebp + 0xc], 0
push 5
mov ecx, edi
call fcn.00402304
push 4
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00556200
add esp, 0xc
mov ecx, edi
call fcn.004021b1
imul eax, eax, 0x64
xor edx, edx
div dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov dword [esi + 0x4c], eax
je 0x40b5a2
mov ecx, edi
call fcn.004021b1
cmp eax, dword [ebp + 0xc]
jb 0x40b5a2
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x3c]
push 5
push eax
mov ecx, edi
call fcn.0040213a
lea eax, [ebp + 0xc]
push 4
push eax
mov ecx, edi
call fcn.0040213a
lea eax, [ebp - 0x18]
push 4
push eax
mov ecx, edi
call fcn.0040213a
mov eax, dword [ebp + 0xc]
lea edi, [eax - 0xd]
push edi
call fcn.0056dbe7
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
call fcn.0056dbe7
cmp dword [ebp - 0x14], 0
pop ecx
mov dword [ebp - 0x1c], eax
je 0x40b58d
test eax, eax
je 0x40b58d
push edi
lea ecx, [esi + 0x14]
push dword [ebp - 0x14]
call fcn.0040213a
mov eax, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
call fcn.0041bac0
add esp, 0x10
test eax, eax
jne 0x40b578
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.004022f3
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.00402109
push 5
push esi
push dword [ebx + 8]
call dword [ebx + 4]
push dword [ebp - 0x14]
call fcn.0056dc10
pop ecx
push dword [ebp - 0x1c]
call fcn.0056dc10
inc dword [esi + 0x2064]
pop ecx
jmp 0x40b426
lea eax, [ebp - 0x30]
push 0x5c95c8
push eax
mov dword [ebp - 0x30], str.bad_buffer
call fcn.00556a70
lea eax, [ebp - 0x34]
push 0x5c95c8
push eax
mov dword [ebp - 0x34], str.bad_Allocate
call fcn.00556a70
push esi
mov ecx, ebx
call fcn.0040b0d5
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.0040bdd5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0057265c
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8