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

Disassembly:
push 0xffffffffffffffff
push 0x101a7668
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
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.1005ff60
mov edi, dword [esp + 0x68]
push str.readChannelToClose
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], 0
call fcn.10061630
mov esi, dword [esp + 0x60]
cmp byte [esi + 0x24], 0
mov byte [esp + 0x54], 1
je 0x101491b3
cmp dword [esi + 0x28], 0
jne 0x101491b3
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.10095ac0
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.100182e0
mov byte [esp + 0x54], 2
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
cmp eax, 5
jne 0x10149218
cmp dword [0x10270278], 0xa
jge 0x1014920f
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 [0x10270278], 1
mov dword [esi + 0x10], 0x7530
jmp 0x1014921c
test eax, eax
je 0x10149251
cmp dword [esi + 4], 0
jne 0x1014922a
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x1014923a
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x10149251
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x1014932f
lea ecx, [esp + 0x30]
call fcn.10017ff0
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 + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
mov dword [esi + 0x18], eax
call fcn.10147b70
mov ecx, dword [esp + 0x6c]
mov bl, al
mov al, byte [esi + 0x2f]
test al, al
mov byte [ecx], al
jne 0x1014933c
cmp byte [esi + 0x2e], al
jne 0x1014938f
mov ecx, ebp
call fcn.10095a90
test al, al
jne 0x1014934a
test bl, bl
je 0x10149398
mov ecx, ebp
call fcn.10095a60
test al, al
jne 0x101493a1
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x101492e7
push edi
call fcn.1007a670
test al, al
jne 0x101493b0
cmp byte [esi + 0x2d], 0
je 0x101491e9
mov edx, dword [esp + 0x5c]
cmp dword [esi + 0x5c], edx
jne 0x101491e9
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.10018a90
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 0
call fcn.100616a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0xffffffff
call fcn.1005ff90
mov al, 1
jmp 0x10149379
mov ecx, ebp
call fcn.10095ac0
mov byte [ebp + 0x14], 1
jmp 0x1014934a
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.10018a90
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 0
call fcn.100616a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0xffffffff
call fcn.1005ff90
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 0x10149343
mov eax, dword [edi]
push str.readChannelData_failed.
jmp 0x10149343
push edi
push str.readChannelData
mov ecx, ebp
call fcn.10095b30
jmp 0x1014934a
mov eax, dword [edi]
push str.Aborted_by_app.
jmp 0x10149343