Function at 0x5055e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x57f07d
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [esp + 0x16c]
mov edi, dword [esp + 0x17c]
mov esi, dword [esp + 0x180]
mov ebp, ecx
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x24], ecx
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0xe0], eax
call fcn.00436260
xor ebx, ebx
mov dword [esp + 0x160], ebx
cmp byte [esi + 0x121], bl
jne 0x50566c
mov edx, dword [esp + 0x24]
cmp byte [edx + 0x24], bl
jne 0x50566c
xor al, al
jmp 0x505671
mov eax, 1
push eax
push str.channelSendData2
push esi
lea ecx, [esp + 0x58]
call fcn.00437770
mov eax, dword [esp + 0x168]
mov byte [esp + 0x160], 1
cmp eax, 0xffffffff
jne 0x5056ce
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.No_SSH_channel.
mov ecx, esi
call edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x160], bl
call fcn.004377b0
lea ecx, [esp + 0x30]
mov dword [esp + 0x160], 0xffffffff
call fcn.00436290
xor al, al
jmp 0x505bea
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x28], ecx
lea ecx, [ebp + 0x3e8]
push eax
mov dword [esp + 0x30], ebx
call fcn.005079b0
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x50573e
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Channel_not_found.
mov ecx, esi
call eax
mov ecx, dword [esp + 0x168]
push ecx
push str.clientChannelNum
mov ecx, esi
call fcn.004373b0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x160], bl
call fcn.004377b0
lea ecx, [esp + 0x30]
mov dword [esp + 0x160], 0xffffffff
call fcn.00436290
xor al, al
jmp 0x505bea
mov edx, dword [esp + 0x168]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
mov dword [eax + 0x14], edx
call fcn.005075a0
mov ecx, dword [esp + 0x18]
lea eax, [ebp + 0x3e8]
mov dword [esp + 0x44], eax
mov eax, 0x400
mov byte [esp + 0x160], 2
mov dword [esp + 0x48], ecx
cmp dword [esp + 0x174], eax
jae 0x505784
mov dword [esp + 0x174], eax
mov eax, dword [ecx + 0xa8]
cmp dword [esp + 0x174], eax
jbe 0x50579a
mov dword [esp + 0x174], eax
sub dword [esp + 0x174], 0x40
lea ecx, [esp + 0xc0]
call fcn.00447240
mov byte [esp + 0x160], 3
cmp dword [esp + 0x170], ebx
je 0x505b9f
jmp 0x5057d0
mov ecx, dword [esp + 0x174]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
cmp eax, ecx
ja 0x5057e7
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xb0]
cmp dword [esp + 0x20], eax
jbe 0x5057fb
mov dword [esp + 0x20], eax
cmp eax, 0x2008
jae 0x50580e
mov dword [ebp + 0x448], 0x11
jmp 0x50581b
cmp dword [ebp + 0x448], 0x10
jbe 0x5059ff
cmp byte [esi + 0x121], bl
jne 0x505830
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x24], bl
jne 0x505830
xor al, al
jmp 0x505835
mov eax, 1
push eax
push str.winAdjustCheck
push esi
lea ecx, [esp + 0x64]
call fcn.00437770
push esi
push edi
mov ecx, ebp
mov byte [esp + 0x168], 4
call fcn.00503740
mov ecx, edi
mov byte [esp + 0x17], al
call fcn.00472510
test al, al
jne 0x505c14
lea esp, [esp]
cmp byte [esp + 0x17], bl
je 0x5059ea
lea ecx, [esp + 0x9c]
mov dword [ebp + 0x448], ebx
mov dword [esp + 0x64], vtable.SshReadParams.0
mov dword [esp + 0x68], ebx
mov byte [esp + 0x6c], 1
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0xea60
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x90], bl
mov byte [esp + 0x91], bl
mov byte [esp + 0x92], bl
mov byte [esp + 0x93], bl
mov byte [esp + 0x94], bl
mov byte [esp + 0x95], bl
mov dword [esp + 0x98], ebx
call fcn.00447240
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x10]
mov cl, byte [eax + 0x24]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x28]
mov byte [esp + 0x88], cl
mov ecx, edi
mov byte [esp + 0x160], 5
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x70], ebx
mov dword [esp + 0x8c], edx
call fcn.004725a0
push esi
push edi
lea eax, [esp + 0x6c]
push eax
mov ecx, ebp
call fcn.00504870
mov ecx, dword [edi + 4]
mov byte [esp + 0x1f], al
cmp ecx, ebx
je 0x505971
push esi
call fcn.00485430
test al, al
jne 0x505c82
mov ecx, edi
call fcn.00472510
test al, al
jne 0x505cbf
cmp byte [esp + 0x93], bl
jne 0x505cfb
cmp byte [esp + 0x91], bl
jne 0x505d02
push esi
push edi
mov ecx, ebp
call fcn.00503740
mov ecx, edi
mov byte [esp + 0x17], al
call fcn.00472510
test al, al
jne 0x505d0c
lea ecx, [esp + 0x9c]
mov byte [esp + 0x160], 4
mov dword [esp + 0x64], vtable.SshReadParams.0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], ebx
call fcn.004479b0
cmp byte [esp + 0x1f], bl
jne 0x505870
lea ecx, [esp + 0x58]
mov byte [esp + 0x160], 3
call fcn.004377b0
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x20], ebx
jne 0x505a37
cmp dword [ecx + 0xb0], ebx
jne 0x505b95
mov edx, dword [esp + 0x24]
push esi
push edi
push edx
push ecx
mov ecx, ebp
call fcn.005053a0
test al, al
je 0x505c32
mov dword [ebp + 0x448], 0x11
jmp 0x505b95
lea ecx, [esp + 0xc0]
call fcn.00446f40
push 0x5e
lea ecx, [esp + 0xc4]
call fcn.00447e40
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0xa0]
lea eax, [esp + 0xc0]
push eax
push edx
call fcn.0054c450
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xe4]
lea eax, [esp + 0xc8]
push eax
mov eax, dword [esp + 0x38]
push ecx
add edx, eax
push edx
call fcn.0054c6e0
add esp, 0x14
lea ecx, [esp + 0xe0]
mov dword [esp + 0x3c], ebx
call fcn.0042d110
mov byte [esp + 0x160], 6
cmp byte [ebp + 0xc4], bl
je 0x505aef
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x94]
push edx
push str.channel
lea ecx, [esp + 0xe8]
call fcn.004302f0
push 0x20
lea ecx, [esp + 0xe4]
call fcn.0042f880
mov eax, dword [esp + 0x170]
push eax
push str.numBytes
lea ecx, [esp + 0xe8]
call fcn.004302f0
inc dword [ebp + 0x448]
push esi
push edi
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0xf0]
call fcn.0051b3b0
push eax
push str.CHANNEL_DATA
mov ecx, ebp
call fcn.00500ca0
cmp al, bl
je 0x505d1e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0xa8]
jbe 0x505b6f
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Sent_packet_larger_than_what_server_can_accept.
mov ecx, esi
call eax
mov ecx, dword [esp + 0x3c]
push ecx
push str.sizeOfPacketSent
mov ecx, esi
call fcn.004373b0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xa8]
push eax
push str.serverMaxPacketSize
mov ecx, esi
call fcn.004373b0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
sub dword [ecx + 0xb0], eax
add dword [esp + 0x2c], eax
sub dword [esp + 0x28], eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x160], 3
call fcn.0042d1d0
cmp dword [esp + 0x28], ebx
jne 0x5057d0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x160], 2
call fcn.004479b0
lea ecx, [esp + 0x40]
mov byte [esp + 0x160], 1
call fcn.00507c60
lea ecx, [esp + 0x4c]
mov byte [esp + 0x160], bl
call fcn.004377b0
lea ecx, [esp + 0x30]
mov dword [esp + 0x160], 0xffffffff
call fcn.00436290
mov al, 1
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.005550b0
add esp, 0x150
ret 0x1c
push esi
push str.lowWindowSizeCheck
mov ecx, edi
call fcn.00472610
lea ecx, [esp + 0x58]
mov byte [esp + 0x160], 3
call fcn.004377b0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x160], 2
call fcn.004479b0
lea ecx, [esp + 0x40]
mov byte [esp + 0x160], 1
call fcn.00507c60
lea ecx, [esp + 0x4c]
mov byte [esp + 0x160], bl
call fcn.004377b0
lea ecx, [esp + 0x30]
mov dword [esp + 0x160], 0xffffffff
call fcn.00436290
xor al, al
jmp 0x505bea
push str.aborted_by_user_application.
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x160], 4
mov dword [esp + 0x64], vtable.SshReadParams.0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], ebx
call fcn.004479b0
jmp 0x505c21
push esi
push str.sshWindowAdjust1
mov ecx, edi
call fcn.00472610
lea ecx, [esp + 0x9c]
mov byte [esp + 0x160], 4
mov dword [esp + 0x64], vtable.SshReadParams.0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], ebx
call fcn.004479b0
jmp 0x505c21
push str.Received_DISCONNECT
jmp 0x505c87
push str.Received_CHANNEL_CLOSE
jmp 0x505c87
push esi
push str.lowWindowSizeCheck
mov ecx, edi
call fcn.00472610
jmp 0x505c90
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Error_sending_data
mov ecx, esi
call eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x160], 3
call fcn.0042d1d0
jmp 0x505c32