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

Disassembly:
mov ecx, dword [0x8993fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50fbd8
add esp, 0xffffff80
mov eax, dword [esp + 0x84]
mov dword [esp], eax
movzx ecx, word [esp + 0x94]
mov word [esp + 4], cx
call sym.github.com_hashicorp_yamux._Stream_.processFlags
mov eax, dword [esp + 8]
test eax, eax
jne 0x50fbb7
nop
mov edx, dword [esp + 0x90]
cmp edx, 0xc
jb 0x50fbcd
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 8]
bswap eax
test eax, eax
je 0x50fb9d
mov dword [esp + 0x30], eax
lea eax, [0x66ec20]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x98]
mov dword [eax], ecx
mov ecx, dword [0x899508]
test ecx, ecx
jne 0x50f876
mov ecx, dword [esp + 0x9c]
jmp 0x50f884
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x9c]
mov dword [edi], ecx
mov dword [esp + 0x44], eax
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov edx, dword [esp + 0x84]
test byte [edx], al
lea ebx, [edx + 0x20]
mov dword [esp + 0x40], ebx
mov dword [esp], ebx
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x84]
cmp dword [ecx], eax
jb 0x50fa96
mov edx, dword [ecx + 0x1c]
test edx, edx
jne 0x50f93f
lea ecx, [0x660420]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
lea ecx, [0x674da0]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [0x899508]
test ecx, ecx
jne 0x50f91d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x84]
jmp 0x50f938
call sym.runtime.gcWriteBarrier3
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov edx, dword [esp + 0x84]
mov ebx, dword [edx + 0x1c]
mov dword [edi + 8], ebx
mov dword [eax], ecx
mov dword [edx + 0x1c], eax
mov ecx, edx
mov eax, dword [ecx + 0x1c]
lea edx, [0x6f6efc]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [0x6f6ee8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call sym.io.copyBuffer
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x50fa49
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x84]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
je 0x50f9b6
mov ebx, dword [eax + 4]
jmp 0x50f9b8
mov ebx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0x68]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Stream_.readData._Logger_.Printf.func2]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], 0x2b
lea ecx, [0x6a0f5a]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x68]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
call sym.sync._Mutex_.Unlock
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xa4], ecx
sub esp, 0xffffff80
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x84]
sub dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 0x58]
mov dword [esp], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
call sym.runtime.selectnbsend
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
sub esp, 0xffffff80
ret
mov edx, dword [ecx + 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x34], edx
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0046f01a
mov ecx, dword [esp + 0x84]
mov ebx, dword [ecx + 8]
mov dword [esp], ebx
call sym.runtime.convT32
mov ecx, dword [esp + 4]
lea edx, [0x660520]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx]
mov dword [esp], ecx
call sym.runtime.convT32
mov ecx, dword [esp + 4]
lea edx, [0x660520]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call sym.runtime.convT32
mov ecx, dword [esp + 4]
lea edx, [0x660520]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
lea edi, [esp + 0x68]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Stream_.readData._Logger_.Printf.func1]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], 0x47
lea ecx, [0x6a6169]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], 3
mov dword [esp + 0x7c], 3
lea ecx, [esp + 0x50]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x68]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
call sym.sync._Mutex_.Unlock
mov ecx, dword [0x85a048]
mov edx, dword [0x85a04c]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
sub esp, 0xffffff80
ret
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
sub esp, 0xffffff80
ret
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
sub esp, 0xffffff80
ret
mov ecx, 0xc
call sym.runtime.panicSliceAcap
nop
call sym.runtime.morestack_noctxt
jmp sym.github.com_hashicorp_yamux._Stream_.readData