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

Disassembly:
push 0xffffffffffffffff
push 0x6895b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
push ecx
lea ecx, [esp + 0x28]
call fcn.004afa40
mov edi, dword [esp + 0x68]
push str.readChannelToClose
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], 0
call fcn.004b1850
mov esi, dword [esp + 0x60]
cmp byte [esi + 0x24], 0
mov byte [esp + 0x54], 1
je 0x5a4e83
cmp dword [esi + 0x28], 0
jne 0x5a4e83
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.No_m_pHandler.
mov ecx, edi
call edx
mov ebp, dword [esp + 0x64]
mov ecx, ebp
call fcn.00512090
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
mov byte [ecx], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], eax
mov dword [esi + 0x14], edx
call fcn.00468060
mov byte [esp + 0x54], 2
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
cmp eax, 5
jne 0x5a4ee8
cmp dword [0x796b80], 0xa
jge 0x5a4edf
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.sshRp.m_totalTimeoutMs_wf_is_too_small__3_
mov ecx, edi
call edx
add dword [0x796b80], 1
mov dword [esi + 0x10], 0x7530
jmp 0x5a4eec
test eax, eax
je 0x5a4f21
cmp dword [esi + 4], 0
jne 0x5a4efa
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x5a4f0a
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x5a4f21
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x5a4fff
lea ecx, [esp + 0x30]
call fcn.00467d60
mov edx, dword [esp + 0x5c]
push edi
push ebp
lea eax, [esp + 0x38]
push esi
mov ecx, eax
push 0
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x24]
push edx
mov byte [esi + 0x2d], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], 0
mov dword [esi + 0x18], eax
call fcn.005a3850
mov ecx, dword [esp + 0x6c]
mov bl, al
mov al, byte [esi + 0x2f]
test al, al
mov byte [ecx], al
jne 0x5a500c
cmp byte [esi + 0x2e], al
jne 0x5a505f
mov ecx, ebp
call fcn.00512060
test al, al
jne 0x5a501a
test bl, bl
je 0x5a5068
mov ecx, ebp
call fcn.00512030
test al, al
jne 0x5a5071
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x5a4fb7
push edi
call fcn.004d0a30
test al, al
jne 0x5a5080
cmp byte [esi + 0x2d], 0
je 0x5a4eb9
mov edx, dword [esp + 0x5c]
cmp dword [esi + 0x54], edx
jne 0x5a4eb9
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.00468860
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 0
call fcn.004b18c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0xffffffff
call fcn.004afa70
mov al, 1
jmp 0x5a5049
mov ecx, ebp
call fcn.00512090
mov byte [ebp + 0x14], 1
jmp 0x5a501a
mov eax, dword [edi]
push str.disconnected.
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.00468860
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 0
call fcn.004b18c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0xffffffff
call fcn.004afa70
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x14
mov eax, dword [edi]
push str.Channel_no_longer_exists.
jmp 0x5a5013
mov eax, dword [edi]
push str.readChannelData_failed.
jmp 0x5a5013
push edi
push str.readChannelData
mov ecx, ebp
call fcn.00512100
jmp 0x5a501a
mov eax, dword [edi]
push str.Aborted_by_app.
jmp 0x5a5013