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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cec7d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x692c00]
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.0042a6f0
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.004481f0
cmp byte [esi + 0x24], 0
mov byte [ebp - 4], 1
je 0x57d207
cmp dword [esi + 0x28], 0
jne 0x57d207
mov eax, dword [edi]
mov ecx, edi
push str.No_m_pHandler.
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x4c]
call fcn.0046ecc0
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.00434d00
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 0x57d27c
cmp dword [0x6972bc], 0xa
jge 0x57d273
mov eax, dword [edi]
mov ecx, edi
push str.sshRp.m_totalTimeoutMs_wf_is_too_small__3_
call dword [eax + 0x14]
inc dword [0x6972bc]
mov dword [esi + 0x10], 0x7530
jmp 0x57d280
test eax, eax
je 0x57d2b5
cmp dword [esi + 4], 0
jne 0x57d28e
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x57d29e
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x57d2b5
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x57d354
lea ecx, [ebp - 0x44]
call fcn.00436dd0
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.0057ccf0
mov cl, byte [esi + 0x2f]
mov byte [ebp - 0x45], al
mov eax, dword [ebp - 0x50]
mov byte [eax], cl
test cl, cl
jne 0x57d389
cmp byte [esi + 0x2e], cl
jne 0x57d382
mov ecx, dword [ebp - 0x4c]
call fcn.0046ec90
test al, al
jne 0x57d395
cmp byte [ebp - 0x45], al
je 0x57d37b
mov ecx, dword [ebp - 0x4c]
call fcn.0046ec40
test al, al
jne 0x57d36b
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x57d338
push edi
mov ecx, eax
call fcn.004a9410
test al, al
jne 0x57d364
cmp byte [esi + 0x2d], 0
je 0x57d250
mov eax, dword [ebp + 8]
cmp dword [esi + 0x5c], eax
jne 0x57d250
mov byte [ebp - 0x45], 1
jmp 0x57d399
mov esi, dword [ebp - 0x4c]
mov ecx, esi
call fcn.0046ecc0
mov byte [esi + 0x14], 1
jmp 0x57d395
push str.Aborted_by_app.
jmp 0x57d38e
mov ecx, dword [ebp - 0x4c]
push edi
push str.readChannelData
call fcn.0046ed70
jmp 0x57d395
push str.readChannelData_failed.
jmp 0x57d38e
push str.Channel_no_longer_exists.
jmp 0x57d38e
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.00434f20
lea ecx, [ebp - 0x1c]
call fcn.004482f0
lea ecx, [ebp - 0x28]
call fcn.0042a7c0
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.005b34c8
mov esp, ebp
pop ebp
ret 0x14