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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cab3d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], eax
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
call fcn.0042a4a0
push str.readChannelToClose
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.00447ef0
cmp byte [esi + 0x24], 0
mov byte [ebp - 4], 1
je 0x579677
cmp dword [esi + 0x28], 0
jne 0x579677
mov eax, dword [edi]
mov ecx, edi
push str.No_m_pHandler.
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x4c]
call fcn.0046d400
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov eax, dword [eax + 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
movq qword [ebp - 0x34], xmm0
mov byte [eax], 0
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
call fcn.00434a00
mov byte [ebp - 4], 2
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 4], eax
nop dword [eax + eax]
mov eax, dword [esi + 0x10]
cmp eax, 5
jne 0x5796ec
cmp dword [0x69126c], 0xa
jge 0x5796e3
mov eax, dword [edi]
mov ecx, edi
push str.sshRp.m_totalTimeoutMs_wf_is_too_small__3_
call dword [eax + 0x14]
inc dword [0x69126c]
mov dword [esi + 0x10], 0x7530
jmp 0x5796f0
test eax, eax
je 0x579725
cmp dword [esi + 4], 0
jne 0x5796fe
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x57970e
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x579725
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x5797c4
lea ecx, [ebp - 0x44]
call fcn.00436ad0
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x44]
push edi
push dword [ebp - 0x4c]
mov word [esi + 0x2c], 0
push esi
push 0
push dword [ebp + 8]
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call fcn.00579160
mov cl, byte [esi + 0x2f]
mov byte [ebp - 0x45], al
mov eax, dword [ebp - 0x50]
mov byte [eax], cl
test cl, cl
jne 0x5797f9
cmp byte [esi + 0x2e], cl
jne 0x5797f2
mov ecx, dword [ebp - 0x4c]
call fcn.0046d3d0
test al, al
jne 0x579805
cmp byte [ebp - 0x45], al
je 0x5797eb
mov ecx, dword [ebp - 0x4c]
call fcn.0046d380
test al, al
jne 0x5797db
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x5797a8
push edi
mov ecx, eax
call fcn.004a87f0
test al, al
jne 0x5797d4
cmp byte [esi + 0x2d], 0
je 0x5796c0
mov eax, dword [ebp + 8]
cmp dword [esi + 0x5c], eax
jne 0x5796c0
mov byte [ebp - 0x45], 1
jmp 0x579809
mov esi, dword [ebp - 0x4c]
mov ecx, esi
call fcn.0046d400
mov byte [esi + 0x14], 1
jmp 0x579805
push str.Aborted_by_app.
jmp 0x5797fe
mov ecx, dword [ebp - 0x4c]
push edi
push str.readChannelData
call fcn.0046d4b0
jmp 0x579805
push str.readChannelData_failed.
jmp 0x5797fe
push str.Channel_no_longer_exists.
jmp 0x5797fe
push str.disconnected.
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x44]
call fcn.00434c20
lea ecx, [ebp - 0x1c]
call fcn.00447ff0
lea ecx, [ebp - 0x28]
call fcn.0042a570
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14