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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x741dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0046f6b0
mov edi, dword [ebp + 0x14]
push str.readChannelToClose
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00474ef0
mov esi, dword [ebp + 0xc]
cmp byte [esi + 0x24], 0
mov byte [ebp - 4], 1
je 0x4a2d8d
cmp dword [esi + 0x28], 0
jne 0x4a2d8d
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.No_m_pHandler.
mov ecx, edi
call edx
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.004a71c0
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov byte [ecx], 0
lea ecx, [ebp - 0x44]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x14], edx
call fcn.0040fe80
mov byte [ebp - 4], 2
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0
je 0x4a2de8
cmp dword [esi + 4], 0
jne 0x4a2dd1
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x4a2de8
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x4a2ecf
lea ecx, [ebp - 0x44]
call fcn.0040fb90
mov edx, dword [ebp + 0x14]
push edx
push edi
lea eax, [ebp - 0x44]
mov ecx, eax
push esi
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
push 0
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
push eax
mov word [esi + 0x2c], 0
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], 0
call fcn.004a04e0
mov ecx, dword [ebp + 0x18]
mov bl, al
mov al, byte [esi + 0x2f]
mov byte [ecx], al
test al, al
jne 0x4a2edc
cmp byte [esi + 0x2e], al
jne 0x4a2f28
mov ecx, edi
call fcn.004a7190
test al, al
jne 0x4a2eeb
test bl, bl
je 0x4a2f34
mov ecx, edi
call fcn.004a7160
test al, al
jne 0x4a2f40
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4a2e7c
mov ebx, dword [ebp + 0x14]
push ebx
call fcn.00487ac0
test al, al
jne 0x4a2f52
cmp byte [esi + 0x2d], 0
je 0x4a2dbd
mov edx, dword [ebp + 8]
cmp dword [esi + 0x54], edx
jne 0x4a2dbd
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004105c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00474f80
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0046f6e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, edi
call fcn.004a71c0
mov byte [edi + 0x10], 1
jmp 0x4a2eeb
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
push str.disconnected.
mov edx, dword [eax + 0x14]
call edx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004105c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00474f80
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0046f6e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
push str.Channel_no_longer_exists.
jmp 0x4a2ee6
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
push str.readChannelData_failed.
jmp 0x4a2ee6
mov eax, dword [ebp + 0x14]
push eax
push str.readChannelData
mov ecx, edi
call fcn.004a7220
jmp 0x4a2eeb
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push str.Aborted_by_app.
mov ecx, ebx
call eax
jmp 0x4a2eeb