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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cab45
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.0042a510
mov ecx, dword [ebp - 0x38]
add ecx, 0x79c
mov dword [ebp - 4], 0
push esi
call fcn.0057f570
mov esi, eax
test esi, esi
jne 0x579268
mov eax, dword [ebx]
mov ecx, ebx
push str.Channel_no_longer_exists.
call dword [eax + 0x18]
mov byte [edi + 0x2e], 1
mov bl, 1
jmp 0x579616
xorps xmm0, xmm0
mov byte [edi + 0x2e], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
call fcn.0057f2a0
mov eax, dword [ebp - 0x38]
add eax, 0x79c
mov byte [ebp - 4], 1
cmp dword [edi + 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x29], 0
je 0x5792df
lea ecx, [esi + 0xb4]
call fcn.00402f80
test eax, eax
je 0x5792df
mov ecx, dword [edi + 0x18]
call fcn.00402f80
mov ecx, dword [edi + 0x18]
test eax, eax
lea eax, [esi + 0xb4]
push eax
jne 0x5792cb
call fcn.0043ac00
jmp 0x5792db
call fcn.00435200
lea ecx, [esi + 0xb4]
call fcn.00436b40
mov byte [ebp - 0x29], 1
cmp dword [edi + 0x1c], 0
je 0x57932d
cmp byte [ebp + 0xc], 0
jne 0x57932d
lea eax, [esi + 0xd0]
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.00402f80
test eax, eax
je 0x57932d
mov ecx, dword [edi + 0x1c]
call fcn.00402f80
mov esi, dword [ebp - 0x3c]
mov ecx, dword [edi + 0x1c]
push esi
test eax, eax
jne 0x57931c
call fcn.0043ac00
jmp 0x57960c
call fcn.00435200
mov ecx, esi
call fcn.00436b40
jmp 0x57960c
cmp byte [ebp - 0x29], 0
jne 0x57960c
cmp byte [edi + 0x24], 0
je 0x57934f
cmp dword [edi + 0x28], 0
jne 0x57934f
mov eax, dword [ebx]
mov ecx, ebx
push str.No_m_pHandler.
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x38]
push ebx
push dword [ebp - 0x30]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x5c], 0xffffffff
call fcn.00571c00
test al, al
jne 0x579380
mov eax, dword [ebx]
mov ecx, ebx
push str.checkSendIgnore_failed.
call dword [eax + 0x14]
xor bl, bl
jmp 0x57960e
mov al, byte [esi + 0xed]
mov byte [edi + 0x2d], al
mov al, byte [esi + 0xec]
mov byte [edi + 0x2c], al
mov al, byte [esi + 0xf1]
mov byte [edi + 0x30], al
mov eax, dword [esi + 0xf4]
mov dword [edi + 0x34], eax
mov al, byte [esi + 0xf2]
mov byte [edi + 0x38], al
cmp byte [esi + 0xed], 0
jne 0x57960c
cmp byte [esi + 0xf0], 0
jne 0x57960c
cmp dword [edi + 4], 0
jne 0x5793d5
call sub.KERNEL32.DLL_GetTickCount
mov dword [edi + 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
call fcn.0046d450
lea ecx, [edi + 0x40]
call fcn.00402f80
test eax, eax
je 0x5793f9
lea ecx, [edi + 0x40]
call fcn.00436b40
mov al, byte [esi + 0xec]
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0x29], al
mov al, byte [esi + 0xf1]
push ebx
push dword [ebp - 0x30]
mov byte [ebp - 0x31], al
mov al, byte [esi + 0xf2]
push edi
mov byte [ebp - 0x32], al
call fcn.0057d460
test al, al
je 0x5795f3
nop dword [eax]
mov eax, dword [edi + 0x10]
cmp eax, 5
jne 0x57945c
cmp dword [0x69126c], 0xa
jge 0x579453
mov eax, dword [ebx]
mov ecx, ebx
push str.sshRp.m_totalTimeoutMs_wf_is_too_small__5_
call dword [eax + 0x14]
inc dword [0x69126c]
mov dword [edi + 0x10], 0x7530
jmp 0x579460
test eax, eax
je 0x579495
cmp dword [edi + 4], 0
jne 0x57946e
call sub.KERNEL32.DLL_GetTickCount
mov dword [edi + 4], eax
cmp dword [edi + 0x10], 0x3e8
jae 0x57947e
mov dword [edi + 0x10], 0x7530
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [edi + 4]
cmp eax, ecx
jbe 0x579495
sub eax, ecx
cmp eax, dword [edi + 0x10]
ja 0x579592
mov al, byte [esi + 0xed]
mov byte [edi + 0x2d], al
mov al, byte [esi + 0xec]
mov byte [edi + 0x2c], al
mov al, byte [esi + 0xf1]
mov byte [edi + 0x30], al
mov eax, dword [esi + 0xf4]
mov dword [edi + 0x34], eax
mov al, byte [esi + 0xf2]
mov byte [edi + 0x38], al
cmp byte [esi + 0xed], 0
jne 0x5795f7
cmp byte [ebp - 0x29], 0
jne 0x5794e2
cmp byte [esi + 0xec], 0
jne 0x5795b0
cmp byte [ebp - 0x31], 0
jne 0x5794f5
cmp byte [esi + 0xf1], 0
jne 0x5795c0
cmp byte [ebp - 0x32], 0
jne 0x579508
cmp byte [esi + 0xf2], 0
jne 0x5795d0
mov cl, byte [ebp + 0xc]
test cl, cl
jne 0x579519
cmp dword [edi + 0x3c], 0x62
je 0x57960c
mov eax, dword [edi + 0x3c]
cmp eax, 0x5e
je 0x57960c
test cl, cl
jne 0x579532
cmp eax, 0x5f
je 0x57960c
cmp dword [edi + 0xc], 0
je 0x5795ec
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 0x3c]
cmp eax, edx
jb 0x5795ec
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x57955d
sub eax, edx
cmp eax, ecx
jae 0x5795e0
mov ecx, dword [ebp - 0x30]
call fcn.0046d450
lea ecx, [edi + 0x40]
call fcn.00402f80
test eax, eax
je 0x579579
lea ecx, [edi + 0x40]
call fcn.00436b40
mov ecx, dword [ebp - 0x38]
push ebx
push dword [ebp - 0x30]
push edi
call fcn.0057d460
test al, al
jne 0x579430
xor bl, bl
jmp 0x57960e
mov esi, dword [ebp - 0x30]
mov ecx, esi
call fcn.0046d450
mov byte [esi + 0x14], 1
mov ecx, ebx
mov eax, dword [ebx]
push str.too_much_time.
call dword [eax + 0x14]
xor bl, bl
jmp 0x57960e
cmp byte [ebx + 0x129], 0
je 0x57960c
push str.Returning_because_of_channel_EOF
jmp 0x579605
cmp byte [ebx + 0x129], 0
je 0x57960c
push str.Returning_because_of_channel_exit_status
jmp 0x579605
cmp byte [ebx + 0x129], 0
je 0x57960c
push str.Returning_because_of_channel_exit_signal
jmp 0x579605
mov eax, dword [ebx]
mov ecx, ebx
push str.SSH_read_channel_timeout:_Elapsed_time_greater_than_max_total_time_allowed.
call dword [eax + 0x18]
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x14], 1
xor bl, bl
jmp 0x57960e
cmp byte [ebx + 0x129], 0
je 0x57960c
push str.Returning_because_of_CHANNEL_CLOSE
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.0057f2c0
lea ecx, [ebp - 0x1c]
call fcn.0042a5e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x14