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

Disassembly:
mov ecx, dword [0x8993fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x50c4e8
sub esp, 0x90
nop
mov edx, dword [esp + 0xa0]
cmp edx, 8
jb 0x50c4dd
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 4]
movzx ebx, word [eax + 2]
rol bx, 8
mov word [esp + 0x2a], bx
nop
nop
bswap ecx
mov dword [esp + 0x34], ecx
test bx, 1
je 0x50bea4
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.github.com_hashicorp_yamux._Session_.incomingStream
mov eax, dword [esp + 8]
test eax, eax
jne 0x50c4a6
mov eax, dword [esp + 0x94]
test byte [eax], al
lea ecx, [eax + 0x38]
mov dword [esp + 0x8c], ecx
mov dword [esp], ecx
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x30]
lea edx, [0x6621c0]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
call sym.runtime.mapaccess1_fast32
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0x38]
test eax, eax
je 0x50c1e9
mov ecx, dword [esp + 0x9c]
cmp ecx, 1
jbe 0x50c4d3
mov edx, dword [esp + 0x98]
cmp byte [edx + 1], 1
jne 0x50c07d
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xc], eax
movzx eax, word [esp + 0x2a]
mov word [esp + 0x10], ax
call sym.github.com_hashicorp_yamux._Stream_.incrSendWindow
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x50c060
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.github.com_hashicorp_yamux._Session_.goAway
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x94]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call sym.github.com_hashicorp_yamux._Session_.sendNoWait
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x50c043
mov edx, dword [esp + 0x94]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
je 0x50bfd3
mov eax, dword [eax + 4]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
lea edi, [esp + 0x74]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.handleStreamMessage._Logger_.Printf.func4]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], 0x28
lea ecx, [0x69feba]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x80], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xa8], eax
add esp, 0x90
ret
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x90
ret
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xc], eax
movzx eax, word [esp + 0x2a]
mov word [esp + 0x10], ax
lea eax, [0x6f6de4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
call sym.github.com_hashicorp_yamux._Stream_.readData
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x50c1cc
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.github.com_hashicorp_yamux._Session_.goAway
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x94]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call sym.github.com_hashicorp_yamux._Session_.sendNoWait
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x50c1af
mov edx, dword [esp + 0x94]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
je 0x50c13f
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
lea edi, [esp + 0x74]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.handleStreamMessage._Logger_.Printf.func5]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], 0x28
lea ecx, [0x69feba]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x80], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xa8], eax
add esp, 0x90
ret
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x90
ret
mov ecx, dword [esp + 0x9c]
cmp ecx, 1
jbe 0x50c4c9
mov eax, dword [esp + 0x98]
movzx ebx, byte [eax + 1]
test bl, bl
jne 0x50c3d6
mov edx, dword [esp + 0xa0]
cmp edx, 0xc
jb 0x50c4bf
mov ebx, dword [eax + 8]
bswap ebx
test ebx, ebx
jbe 0x50c3dd
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call sym.runtime.convT32
mov eax, dword [esp + 4]
lea ecx, [0x660520]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea edi, [esp + 0x74]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.handleStreamMessage._Logger_.Printf.func1]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], 0x2c
lea ecx, [0x6a1464]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 1
lea ecx, [esp + 0x6c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov eax, dword [0x85a0c8]
mov ecx, dword [0x85a0cc]
mov edx, dword [esp + 0x94]
mov ebx, dword [edx + 0x1c]
mov ebp, dword [esp + 0x98]
mov ebp, dword [ebp + 8]
bswap ebp
nop
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x6f6de4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0
call sym.io.CopyN
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x50c489
mov edx, dword [esp + 0x94]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
je 0x50c349
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
lea edi, [esp + 0x74]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.handleStreamMessage._Logger_.Printf.func2]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], 0x27
lea ecx, [0x69f914]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x90
ret
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.runtime.convTslice
mov eax, dword [esp + 0xc]
lea ecx, [0x680760]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
lea edi, [esp + 0x74]
xor eax, eax
call fcn.0046f01a
lea eax, [sym.github.com_hashicorp_yamux._Session_.handleStreamMessage._Logger_.Printf.func3]
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], 0x2a
lea eax, [0x6a0a97]
mov dword [esp + 0x78], eax
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 1
lea eax, [esp + 0x5c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea eax, [esp + 0x74]
mov dword [esp + 0xc], eax
call sym.log._Logger_.output
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x90
ret
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x90
ret
mov ecx, 0xc
call sym.runtime.panicSliceAcap
mov eax, 1
call sym.runtime.panicIndex
mov eax, 1
call sym.runtime.panicIndex
mov ecx, 8
call sym.runtime.panicSliceAcap
nop
call sym.runtime.morestack_noctxt
jmp sym.github.com_hashicorp_yamux._Session_.handleStreamMessage