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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b29d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x676664]
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.00441120
mov edi, dword [ebp + 0x14]
push str.readChannelToClose
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0044ec60
mov esi, dword [ebp + 0xc]
cmp byte [esi + 0x24], 0
mov byte [ebp - 4], 1
je 0x557d1d
cmp dword [esi + 0x28], 0
jne 0x557d1d
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.No_m_pHandler.
mov ecx, edi
call edx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.004aef00
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov byte [ecx], 0
lea ecx, [ebp - 0x44]
mov dword [ebp + 0x14], eax
mov dword [esi + 0x14], edx
call fcn.00410e50
mov byte [ebp - 4], 2
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
lea ecx, [ecx]
mov eax, dword [esi + 0x10]
cmp eax, 5
jne 0x557d7e
cmp dword [0x6797f0], 0xa
jge 0x557d75
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.sshRp.m_totalTimeoutMs_wf_is_too_small__3_
mov ecx, edi
call edx
inc dword [0x6797f0]
mov dword [esi + 0x10], 0x7530
jmp 0x557d82
test eax, eax
je 0x557db7
cmp dword [esi + 4], 0
jne 0x557d90
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x557da0
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x557db7
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x557e9c
lea ecx, [ebp - 0x44]
call fcn.00410b40
mov edx, dword [ebp + 8]
push edi
push ebx
lea eax, [ebp - 0x44]
push esi
mov ecx, eax
push 0
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
push edx
mov word [esi + 0x2c], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
mov dword [esi + 0x18], eax
call fcn.005566e0
mov ecx, dword [ebp + 0x18]
mov bl, al
mov al, byte [esi + 0x2f]
mov byte [ecx], al
test al, al
jne 0x557ea9
cmp byte [esi + 0x2e], al
jne 0x557ef4
mov ecx, dword [ebp + 0x10]
call fcn.004aeed0
test al, al
jne 0x557eb7
test bl, bl
je 0x557efd
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.004aeea0
test al, al
jne 0x557f06
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x557e49
push edi
call fcn.004635c0
test al, al
jne 0x557f15
cmp byte [esi + 0x2d], 0
je 0x557d50
mov edx, dword [ebp + 8]
cmp dword [esi + 0x5c], edx
jne 0x557d50
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00411620
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0044ecf0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00441150
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, ebx
call fcn.004aef00
mov byte [ebx + 0x14], 1
jmp 0x557eb7
mov eax, dword [edi]
push str.disconnected.
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00411620
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0044ecf0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00441150
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 eax, dword [edi]
push str.Channel_no_longer_exists.
jmp 0x557eb0
mov eax, dword [edi]
push str.readChannelData_failed.
jmp 0x557eb0
push edi
push str.readChannelData
mov ecx, ebx
call fcn.004aef60
jmp 0x557eb7
mov eax, dword [edi]
push str.Aborted_by_app.
jmp 0x557eb0