Function at 0x50b910
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 0x50bce5
sub esp, 0x6c
mov eax, 0
mov dword [esp + 0x68], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea edx, [sym.github.com_hashicorp_yamux._Session_.recvLoop.deferwrap1]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x68], ecx
mov byte [esp + 0x27], 1
lea ecx, [0x660420]
mov dword [esp], ecx
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0xc
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
jmp 0x50b9a3
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x1c]
lea ebx, [0x6f6de4]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], 0xc
call sym.io.ReadAtLeast
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x50bb4b
mov ebx, dword [esp + 0x34]
movzx ebp, byte [ebx]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x50ba8c
movzx ebp, byte [ebx + 1]
nop
xchg ebp, eax
cmp al, 3
xchg ebp, eax
ja 0x50ba67
xchg ebp, ebx
movzx eax, bl
xchg ebp, ebx
mov ecx, dword [0x8540c4]
cmp ecx, eax
jbe 0x50bcd6
mov ecx, dword [0x8540c0]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], 0xc
mov dword [esp + 0xc], 0xc
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50b99f
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov eax, dword [0x85a028]
mov ecx, dword [0x85a02c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea edx, [0x660420]
mov dword [esp + 0x38], edx
xchg ebp, eax
movzx edx, al
xchg ebp, eax
lea ebx, [0x835b80]
lea edx, [ebx + edx*8]
mov dword [esp + 0x3c], edx
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.recvLoop._Logger_.Printf.func2]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], 0x29
lea ecx, [0x6a04fb]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x50]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov ecx, dword [0x85a020]
mov edx, dword [0x85a024]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov ecx, dword [edx]
call ecx
add esp, 0x6c
ret
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
cmp dword [0x853a90], eax
je 0x50bb66
mov edx, 1
jmp 0x50bb8e
mov edx, dword [0x853a94]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x30]
mov edx, eax
mov eax, dword [esp + 0x28]
test dl, dl
jne 0x50bb99
xor edx, edx
jmp 0x50bc24
mov edx, dword [eax + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x692dc8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 6
call sym.strings.Index
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x50bbdb
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
xor edx, edx
jmp 0x50bc24
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x6948ce]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xd
call sym.strings.Index
mov eax, dword [esp + 0x10]
test eax, eax
setl al
mov ecx, dword [esp + 0x30]
mov edx, eax
mov eax, dword [esp + 0x28]
test dl, dl
je 0x50bcbd
mov edx, dword [esp + 0x70]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
test eax, eax
je 0x50bc4c
mov ebx, dword [eax + 4]
jmp 0x50bc4e
mov ebx, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.recvLoop._Logger_.Printf.func1]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], 0x26
lea ecx, [0x69f133]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x50]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
call sym.runtime.panicIndex
nop
call sym.runtime.deferreturn
add esp, 0x6c
ret
call sym.runtime.morestack_noctxt
jmp sym.github.com_hashicorp_yamux._Session_.recvLoop