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

Disassembly:
mov ecx, dword [0x8ef630]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xdc]
cmp eax, dword [ecx + 8]
jbe 0x5ed157
sub esp, 0x15c
lea eax, [0x686220]
mov dword [esp], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x158], eax
lea ecx, [0x6c7860]
mov dword [esp], ecx
mov ecx, dword [esp + 0x168]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x154], eax
mov ecx, dword [esp + 0x164]
mov edx, ecx
xor ebx, ebx
jmp 0x5ec5c7
mov dword [esi + ebp*4], ebx
mov edi, dword [esp + 0x150]
lea ecx, [edi + 0xc]
lea ebx, [ebp + 1]
mov eax, esi
mov edx, dword [esp + 0x164]
mov ebp, dword [esp + 0x168]
cmp ebp, ebx
jle 0x5ec84c
mov dword [esp + 0x78], ebx
mov dword [esp + 0x150], ecx
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ebp, dword [0x8cf2c4]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call sym.crypto_tls._certCache_.newCert
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5ec778
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx]
cmp dword [ebp + 0x4c], 1
jne 0x5ec66d
mov eax, dword [ebp + 0x50]
lea ecx, [0x6a5780]
cmp eax, ecx
jne 0x5ed140
mov dword [esp + 0xd0], ebx
mov eax, dword [ebp + 0x54]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym.math_big.nat.bitLen
mov eax, dword [esp + 0xc]
mov dword [esp], eax
call sym.crypto_tls.checkKeySize
movzx eax, byte [esp + 8]
test al, al
je 0x5ec6d4
mov ebx, dword [esp + 0xd0]
mov ebp, dword [0x8ef900]
test ebp, ebp
jne 0x5ec684
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x158]
jmp 0x5ec69c
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebx
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x158]
mov eax, dword [esi + ebp*4]
mov dword [edi + 4], eax
mov dword [esi + ebp*4], ebx
mov edi, dword [0x8ef900]
mov ebx, dword [ebx]
test edi, edi
jne 0x5ec6b9
mov eax, esi
mov esi, dword [esp + 0x154]
jmp 0x5ec5ae
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebx
mov eax, esi
mov esi, dword [esp + 0x154]
mov ecx, dword [esi + ebp*4]
mov dword [edi + 4], ecx
jmp 0x5ec5ae
mov eax, dword [esp + 4]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x160]
mov dword [esp], ecx
mov byte [esp + 4], 0x2a
call sym.crypto_tls._Conn_.sendAlert
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sym.runtime.convT32
mov eax, dword [esp + 4]
lea ecx, [0x695660]
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], eax
lea eax, [0x6e9af3]
mov dword [esp], eax
mov dword [esp + 4], 0x43
lea eax, [esp + 0x138]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call sym.fmt.Errorf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], ecx
add esp, 0x15c
ret
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xcc], eax
mov ecx, dword [esp + 0x160]
mov dword [esp], ecx
mov byte [esp + 4], 0x2a
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0xcc]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x6e5bf5]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x2e
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call sym.runtime.concatstring2
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xbc], ecx
lea edx, [0x6a0680]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], ecx
mov ecx, dword [0x8ef900]
test ecx, ecx
jne 0x5ec821
mov ecx, dword [esp + 0xbc]
jmp 0x5ec82f
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax], ecx
lea ecx, [0x7423cc]
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
mov ebx, dword [esp + 0x160]
mov esi, dword [ebx + 0x2c]
mov edi, dword [esi + 0xb4]
test edi, edi
je 0x5ec86c
movzx edi, byte [ebx + 0x94]
xor edi, 1
jmp 0x5ec86e
xor edi, edi
xchg edi, eax
mov byte [esp + 0x6f], al
xchg edi, eax
xchg edi, eax
test al, al
xchg edi, eax
je 0x5eca66
mov ecx, dword [esi + 0xc0]
test ecx, ecx
jne 0x5ec9c8
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x5ec899
lea ecx, [0x6f0958]
mov eax, dword [ecx]
mov edx, ecx
call eax
lea edi, [esp + 0xd4]
lea esi, [esp]
call fcn.004721de
lea edi, [esp + 0xa8]
lea esi, [esp + 0xd4]
call fcn.004721de
call sym.runtime.makemap_small
mov eax, dword [esp]
mov dword [esp + 0x14c], eax
call sym.runtime.makemap_small
mov eax, dword [esp]
mov dword [esp + 0x148], eax
lea ecx, [0x6b4c40]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [0x8ef900]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x5ec90b
mov edx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x148]
jmp 0x5ec923
call sym.runtime.gcWriteBarrier2
mov edx, dword [esp + 0x14c]
mov dword [edi], edx
mov ebx, dword [esp + 0x148]
mov dword [edi + 4], ebx
mov dword [esp + 0xa4], ecx
mov dword [ecx], edx
mov dword [ecx + 0x10], ebx
lea edi, [esp + 0xd4]
xor eax, eax
call fcn.00471cf3
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0x2c]
mov edx, dword [edx + 0x30]
mov dword [esp + 0xe0], edx
lea edi, [esp + 0xe4]
lea esi, [esp + 0xa8]
call fcn.004721de
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0x78]
mov ebx, dword [ecx + 0x7c]
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd8], ebx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xdc], edx
mov edx, dword [esp + 0x168]
cmp edx, 1
jb 0x5ed134
lea eax, [edx - 1]
mov dword [esp + 0x9c], eax
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, 4
mov ebp, dword [esp + 0x154]
add eax, ebp
mov dword [esp + 0x144], eax
xor esi, esi
jmp 0x5ed03a
mov dword [esp], ebx
call sym.crypto_tls._Conn_.connectionStateLocked
lea edi, [esp + 0xd4]
lea esi, [esp + 4]
call fcn.00472116
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx + 0xc0]
mov ecx, dword [edx]
mov dword [esp + 0x98], ecx
lea edi, [esp]
lea esi, [esp + 0xd4]
call fcn.00472116
mov ecx, dword [esp + 0x98]
call ecx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5ecfca
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0x160]
mov dword [esp], ecx
mov byte [esp + 4], 0x2a
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
movzx ecx, byte [esi + 0x50]
test cl, cl
jne 0x5ecbb1
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x5eca7f
lea ecx, [0x6f0958]
mov eax, dword [ecx]
mov edx, ecx
call eax
lea edi, [esp + 0xd4]
lea esi, [esp]
call fcn.004721de
lea edi, [esp + 0xa8]
lea esi, [esp + 0xd4]
call fcn.004721de
call sym.runtime.makemap_small
mov eax, dword [esp]
mov dword [esp + 0x14c], eax
call sym.runtime.makemap_small
mov eax, dword [esp]
mov dword [esp + 0x148], eax
lea ecx, [0x6b4c40]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [0x8ef900]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x5ecaf1
mov edx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x148]
jmp 0x5ecb09
call sym.runtime.gcWriteBarrier2
mov edx, dword [esp + 0x14c]
mov dword [edi], edx
mov ebx, dword [esp + 0x148]
mov dword [edi + 4], ebx
mov dword [esp + 0xa0], ecx
mov dword [ecx], edx
mov dword [ecx + 0x10], ebx
lea edi, [esp + 0xd4]
xor eax, eax
call fcn.00471cf3
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0x2c]
mov edx, dword [edx + 0x30]
mov dword [esp + 0xe0], edx
lea edi, [esp + 0xe4]
lea esi, [esp + 0xa8]
call fcn.004721de
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [edx + 0x40]
mov edx, dword [edx + 0x44]
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xdc], edx
mov edx, dword [esp + 0x168]
cmp edx, 1
jb 0x5ecfbe
lea eax, [edx - 1]
mov dword [esp + 0x9c], eax
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, 4
mov ebp, dword [esp + 0x154]
add eax, ebp
mov dword [esp + 0x144], eax
xor esi, esi
jmp 0x5ecea7
test ebp, ebp
jbe 0x5ece54
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x50]
test ecx, ecx
je 0x5ecdc6
mov esi, dword [ecx + 8]
cmp esi, 0x4bcec15d
jne 0x5ecbe0
lea esi, [0x6a5780]
cmp ecx, esi
je 0x5ecc11
jmp 0x5ecdc6
cmp esi, 0x8c7bd38d
jne 0x5ecbf7
lea esi, [0x6c1c80]
cmp ecx, esi
je 0x5ecc11
jmp 0x5ecdc6
cmp esi, 0xc0d9e4a4
jne 0x5ecdc6
lea esi, [0x69d680]
cmp ecx, esi
jne 0x5ecdc6
mov dword [ebx + 0x64], ebp
mov dword [ebx + 0x68], ebp
mov ecx, dword [0x8ef900]
test ecx, ecx
je 0x5ecc49
mov ecx, edi
call sym.runtime.gcWriteBarrier4
mov esi, dword [esp + 0x158]
mov dword [edi], esi
mov edx, dword [ebx + 0x60]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov edx, dword [ebx + 0x54]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x164]
mov edi, ecx
mov ecx, dword [esp + 0x158]
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x58], ebp
mov dword [ebx + 0x5c], ebp
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x5ecd00
xchg edi, eax
test al, al
xchg edi, eax
jne 0x5ecd00
mov ecx, dword [eax]
mov esi, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x70]
mov ebx, dword [ebx + 0x74]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x16c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov edx, eax
call ecx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5eccb7
mov ebx, dword [esp + 0x160]
movzx edi, byte [esp + 0x6f]
jmp 0x5ecd00
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc4], eax
mov ecx, dword [esp + 0x160]
mov dword [esp], ecx
mov byte [esp + 4], 0x2a
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 0x80]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x5ecda9
xchg edi, eax
test al, al
xchg edi, eax
jne 0x5ecda9
mov dword [esp], ebx
call sym.crypto_tls._Conn_.connectionStateLocked
lea edi, [esp + 0xd4]
lea esi, [esp + 4]
call fcn.00472116
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [edx]
mov dword [esp + 0x98], ecx
lea edi, [esp]
lea esi, [esp + 0xd4]
call fcn.00472116
mov ecx, dword [esp + 0x98]
call ecx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5ecda9
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc0], eax
mov ecx, dword [esp + 0x160]
mov dword [esp], ecx
mov byte [esp + 4], 0x2a
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0
add esp, 0x15c
ret
mov dword [esp], ebx
mov byte [esp + 4], 0x2b
call sym.crypto_tls._Conn_.sendAlert
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov eax, dword [esp + 0x154]
mov eax, dword [eax]
mov ecx, dword [eax + 0x50]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], eax
lea eax, [0x6ea23d]
mov dword [esp], eax
mov dword [esp + 4], 0x48
lea eax, [esp + 0x138]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call sym.fmt.Errorf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], ecx
add esp, 0x15c
ret
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
mov dword [esp + 0x94], esi
mov ecx, dword [eax + esi*4]
mov edx, dword [esp + 0xdc]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.crypto_x509._CertPool_.AddCert
mov eax, dword [esp + 0x94]
lea esi, [eax + 1]
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x168]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x154]
cmp esi, ebx
jl 0x5ece5d
mov eax, dword [ebp]
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0xd4]
call fcn.0047218e
call sym.crypto_x509._Certificate_.Verify
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x48]
mov esi, ebp
mov ebp, dword [esp + 0x160]
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], ecx
mov eax, dword [0x8ef900]
test eax, eax
je 0x5ecf00
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebx
mov eax, dword [ebp + 0x6c]
mov dword [edi + 4], eax
mov dword [ebp + 0x6c], ebx
test edx, edx
jne 0x5ecf28
mov eax, dword [esp + 0x154]
mov edx, dword [esp + 0x164]
mov ebx, ebp
mov ebp, dword [esp + 0x168]
movzx edi, byte [esp + 0x6f]
jmp 0x5ecbb1
mov dword [esp + 0x84], edx
mov dword [esp + 0x140], esi
mov dword [esp], ebp
mov byte [esp + 4], 0x2a
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6a7da0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x168]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [0x8ef900]
test ecx, ecx
jne 0x5ecf7c
mov ecx, dword [esp + 0x154]
mov edx, dword [esp + 0x140]
jmp 0x5ecf94
call sym.runtime.gcWriteBarrier2
mov ecx, dword [esp + 0x154]
mov dword [edi], ecx
mov edx, dword [esp + 0x140]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea ecx, [0x742830]
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
mov eax, 1
xor ecx, ecx
call sym.runtime.panicSliceB
mov eax, dword [esp + 0x154]
mov edx, dword [esp + 0x164]
mov ebx, dword [esp + 0x160]
mov ebp, dword [esp + 0x168]
movzx edi, byte [esp + 0x6f]
jmp 0x5ecbb1
mov dword [esp + 0x94], esi
mov ecx, dword [eax + esi*4]
mov edx, dword [esp + 0xdc]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.crypto_x509._CertPool_.AddCert
mov eax, dword [esp + 0x94]
lea esi, [eax + 1]
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x168]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x154]
cmp esi, ebx
jl 0x5ecff0
mov eax, dword [ebp]
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0xd4]
call fcn.0047218e
call sym.crypto_x509._Certificate_.Verify
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x48]
mov esi, ebp
mov ebp, dword [esp + 0x160]
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], ecx
mov eax, dword [0x8ef900]
test eax, eax
je 0x5ed093
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebx
mov eax, dword [ebp + 0x6c]
mov dword [edi + 4], eax
mov dword [ebp + 0x6c], ebx
test edx, edx
je 0x5ecfca
mov dword [esp + 0x140], esi
mov dword [esp + 0x88], edx
mov dword [esp], ebp
mov byte [esp + 4], 0x2a
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6a7da0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x168]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [0x8ef900]
test ecx, ecx
jne 0x5ed0f2
mov ecx, dword [esp + 0x154]
mov edx, dword [esp + 0x140]
jmp 0x5ed10a
call sym.runtime.gcWriteBarrier2
mov ecx, dword [esp + 0x154]
mov dword [edi], ecx
mov edx, dword [esp + 0x140]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea ecx, [0x742830]
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
mov eax, 1
xor ecx, ecx
call sym.runtime.panicSliceB
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x6968c0]
mov dword [esp + 8], eax
call sym.runtime.panicdottypeE
nop
call sym.runtime.morestack_noctxt
jmp sym.crypto_tls._Conn_.verifyServerCertificate