Function at 0x508f60
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 0x5093be
add esp, 0xffffff80
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x508fba
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
call sym.log.New
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x88]
test edx, edx
je 0x508ff8
mov eax, dword [edx + 4]
lea ecx, [0x854100]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime.typeAssert
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x88]
mov edx, eax
mov eax, dword [esp + 0x84]
jmp 0x508ffa
mov ebx, edx
nop
lea ebp, [0x6f6de4]
cmp edx, ebp
jne 0x50900e
mov ebp, dword [esp + 0x8c]
jmp 0x509013
mov ebp, 0
mov dword [esp + 0x50], edx
jne 0x509026
cmp dword [ebp + 4], 0x1000
jge 0x5090e8
lea eax, [0x67ee40]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x24], eax
lea ecx, [0x660420]
mov dword [esp], ecx
mov dword [esp + 4], 0x1000
mov dword [esp + 8], 0x1000
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
lea edi, [esp + 0x54]
xor eax, eax
call fcn.0046f015
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x1000
mov dword [esp + 0x5c], 0x1000
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x7c], 0xffffffff
mov ecx, dword [0x899508]
test ecx, ecx
je 0x5090d7
lea eax, [0x67ee40]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
lea ecx, [esp + 0x54]
mov dword [esp + 8], ecx
call sym.runtime.wbMove
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x24]
lea esi, [esp + 0x54]
call fcn.0046f4c2
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call sym.runtime.makemap_small
mov eax, dword [esp]
mov dword [esp + 0x48], eax
call sym.runtime.makemap_small
mov eax, dword [esp]
mov dword [esp + 0x44], eax
call sym.runtime.makemap_small
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov edx, dword [esp]
mov dword [esp + 0x40], edx
lea ebx, [0x65b440]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sym.runtime.makechan
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov edx, dword [esp + 8]
mov dword [esp + 0x3c], edx
lea ebx, [0x65b480]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sym.runtime.makechan
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
lea ecx, [0x65b500]
mov dword [esp], ecx
mov dword [esp + 4], 0x40
call sym.runtime.makechan
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
lea ecx, [0x65b440]
mov dword [esp], ecx
mov dword [esp + 4], 0
call sym.runtime.makechan
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
lea ecx, [0x65b440]
mov dword [esp], ecx
mov dword [esp + 4], 0
call sym.runtime.makechan
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
lea ecx, [0x65b440]
mov dword [esp], ecx
mov dword [esp + 4], 0
call sym.runtime.makechan
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
lea ecx, [0x688a20]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [0x899508]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x509206
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
jmp 0x50926f
call sym.runtime.gcWriteBarrier8
mov eax, dword [esp + 0x84]
mov dword [edi], eax
mov edx, dword [esp + 0x20]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x8c]
mov dword [edi + 8], ebx
mov ebp, dword [esp + 0x18]
mov dword [edi + 0xc], ebp
mov esi, dword [esp + 0x48]
mov dword [edi + 0x10], esi
mov esi, dword [esp + 0x44]
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x40]
mov dword [edi + 0x18], esi
mov esi, dword [esp + 0x3c]
mov dword [edi + 0x1c], esi
call sym.runtime.gcWriteBarrier5
mov esi, dword [esp + 0x38]
mov dword [edi], esi
mov esi, dword [esp + 0x34]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x30]
mov dword [edi + 8], esi
mov esi, dword [esp + 0x2c]
mov dword [edi + 0xc], esi
mov esi, dword [esp + 0x28]
mov dword [edi + 0x10], esi
mov dword [esp + 0x1c], ecx
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x1c], ebp
mov edx, dword [esp + 0x48]
mov dword [ecx + 0x20], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 0x30], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 0x34], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0x40], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0x44], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x48], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 0x4c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x50], edx
mov dword [ecx + 0x60], esi
movzx edx, byte [esp + 0x90]
test dl, dl
je 0x5092d9
mov dword [ecx + 8], 1
jmp 0x5092e0
mov dword [ecx + 8], 2
lea eax, [0x668340]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
lea ecx, [sym.github.com_hashicorp_yamux.newSession.gowrap1]
mov dword [eax], ecx
mov ecx, dword [0x899508]
test ecx, ecx
jne 0x50930a
mov ecx, dword [esp + 0x1c]
jmp 0x509315
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x1c]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov dword [esp], eax
call sym.runtime.newproc
lea eax, [0x668340]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
lea ecx, [sym.github.com_hashicorp_yamux.newSession.gowrap2]
mov dword [eax], ecx
mov ecx, dword [0x899508]
test ecx, ecx
jne 0x50934a
mov ecx, dword [esp + 0x1c]
jmp 0x509355
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x1c]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov dword [esp], eax
call sym.runtime.newproc
mov eax, dword [esp + 0x84]
movzx eax, byte [eax + 4]
test al, al
je 0x5093af
lea eax, [0x668340]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
lea ecx, [sym.github.com_hashicorp_yamux.newSession.gowrap3]
mov dword [eax], ecx
mov ecx, dword [0x899508]
test ecx, ecx
jne 0x509399
mov ecx, dword [esp + 0x1c]
jmp 0x5093a4
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x1c]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov dword [esp], eax
call sym.runtime.newproc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x94], eax
sub esp, 0xffffff80
ret
call sym.runtime.morestack_noctxt
jmp sym.github.com_hashicorp_yamux.newSession