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

Disassembly:
mov ecx, dword [0x8993fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x50b704
sub esp, 0xa8
mov eax, 0
mov dword [esp + 0xa4], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 0x50]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea ebx, [sym.github.com_hashicorp_yamux._Session_.sendLoop.deferwrap1]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x78]
mov dword [esp + 0xa4], edx
mov byte [esp + 0x23], 1
lea edi, [esp + 0x34]
xor eax, eax
call fcn.0046f01b
nop
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x48]
mov dword [esp + 0xa0], 0
mov edx, dword [eax + 0x60]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x68], edx
lea ecx, [esp + 0x68]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call sym.runtime.selectgo
mov eax, dword [esp + 0x18]
test eax, eax
je 0x50b6c5
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x30], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x50b1f8
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
mov edx, dword [edx + 0x18]
mov ebp, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
test eax, eax
jne 0x50b5ba
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x50b298
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
lea ebp, [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call sym.bytes._Buffer_.Write
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
test eax, eax
jne 0x50b46a
mov eax, dword [esp + 0x30]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov ecx, dword [0x899508]
test ecx, ecx
je 0x50b291
mov ecx, dword [eax + 0x14]
call sym.runtime.gcWriteBarrier1
mov dword [edi], ecx
mov dword [eax + 0x14], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edx, ecx
sub edx, eax
test edx, edx
jle 0x50b322
cmp ecx, eax
jb 0x50b6f2
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov ebp, dword [esp + 0xac]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov esi, dword [esi + 0x18]
mov dword [esp], edi
sub ebx, eax
mov edi, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
add eax, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
test eax, eax
jne 0x50b35f
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x50b0e8
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp], eax
lea eax, [esp + 0x98]
mov dword [esp + 4], eax
call sym.runtime.selectnbsend
jmp 0x50b0e8
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0xac]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
je 0x50b384
mov ebx, dword [eax + 4]
jmp 0x50b386
mov ebx, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.sendLoop._Logger_.Printf.func3]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], 0x25
lea ecx, [0x69ea1d]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x8c], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x80]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x50b43d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x9c], edx
mov dword [esp], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call sym.runtime.selectnbsend
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb4], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
call eax
add esp, 0xa8
ret
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x30]
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov ebx, dword [0x899508]
test ebx, ebx
je 0x50b498
mov ebx, dword [edx + 0x14]
call sym.runtime.gcWriteBarrier1
mov dword [edi], ebx
mov dword [edx + 0x14], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x50b4d2
mov edx, dword [ecx + 4]
jmp 0x50b4d4
mov edx, ecx
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x5c], ecx
lea edi, [esp + 0x80]
mov edx, eax
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.sendLoop._Logger_.Printf.func2]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], 0x30
lea ecx, [0x6a2819]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x8c], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x80]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x50b58d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x9c], edx
mov dword [esp], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call sym.runtime.selectnbsend
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb4], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
call eax
add esp, 0xa8
ret
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0xac]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
je 0x50b5df
mov ebx, dword [eax + 4]
jmp 0x50b5e1
mov ebx, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ecx
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0046f01a
lea ecx, [sym.github.com_hashicorp_yamux._Session_.sendLoop._Logger_.Printf.func1]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], 0x27
lea ecx, [0x69f8ed]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x80]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x50b698
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x9c], edx
mov dword [esp], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call sym.runtime.selectnbsend
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb4], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
call eax
add esp, 0xa8
ret
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
call eax
add esp, 0xa8
ret
call sym.runtime.panicSliceB
nop
call sym.runtime.deferreturn
add esp, 0xa8
ret
call sym.runtime.morestack_noctxt
jmp sym.github.com_hashicorp_yamux._Session_.sendLoop