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

Disassembly:
mov ecx, dword [0x8ef630]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5ee332
sub esp, 0x58
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
test edx, edx
jg 0x5edead
mov edx, dword [eax + 0x14]
test edx, edx
je 0x5ede8c
mov edx, dword [edx + 4]
test edx, edx
je 0x5ede8c
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xcc]
test edx, edx
je 0x5ede8c
mov dword [esp + 0x50], ecx
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.checkServerHelloOrHRR
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ede7c
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + 0xc]
mov dword [esp], ecx
call sym.crypto.Hash.New
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x5c]
mov dword [edx + 0x40], eax
mov ebx, dword [0x8ef900]
test ebx, ebx
je 0x5eda8f
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov ebx, dword [edx + 0x44]
mov dword [edi + 4], ebx
mov dword [edx + 0x44], ecx
test eax, eax
je 0x5edabb
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 4]
lea ecx, [0x8c9548]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime.typeAssert
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov ebx, dword [edx + 0x10]
lea ebp, [0x742fd4]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call sym.crypto_tls.transcriptMsg
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5ede6c
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x5edb8f
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + 0xc]
mov dword [esp], ecx
call sym.crypto.Hash.New
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x60]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov dword [ecx + 0x18], edx
mov edx, dword [0x8ef900]
test edx, edx
je 0x5edb2a
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebx
mov edx, dword [ecx + 0x1c]
mov dword [edi + 4], edx
mov dword [ecx + 0x1c], ebx
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
test edx, edx
je 0x5edb5f
mov dword [esp + 0x54], ecx
mov eax, dword [edx + 4]
lea ecx, [0x8c9558]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime.typeAssert
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov ebx, dword [eax + 0x60]
mov ebx, dword [ebx + 0x14]
lea ebp, [0x742fd4]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call sym.crypto_tls.transcriptMsg
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5ede5c
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x14]
cmp dword [0x8c919c], edx
je 0x5edba1
xor ecx, ecx
jmp 0x5edbc5
mov eax, dword [0x8c9198]
mov ecx, dword [ecx + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x5c]
test cl, cl
je 0x5edc24
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x5edbd8
xor ecx, ecx
xor edx, edx
jmp 0x5edc04
movzx ecx, byte [eax + 0x39]
test cl, cl
je 0x5edbe6
xor ecx, ecx
xor edx, edx
jmp 0x5edc04
mov byte [eax + 0x39], 1
mov ecx, dword [eax]
mov dword [esp], ecx
call sym.crypto_tls._Conn_.writeChangeCipherRecord
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0x5c]
test ecx, ecx
jne 0x5ede50
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.processHelloRetryRequest
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ede40
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x5ede35
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov ebx, dword [eax + 0x3c]
mov ebx, dword [ebx + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call sym.crypto_tls.cloneHash
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
cmp edx, 0x1e
jb 0x5ee327
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
mov ebp, dword [eax + 0x1c]
mov ecx, dword [ecx]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1e
mov dword [esp + 0xc], edx
call ebp
lea eax, [0x6954a0]
mov dword [esp], eax
mov dword [esp + 4], 8
mov dword [esp + 8], 8
call sym.runtime.makeslice
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 8
mov dword [esp + 0xc], 8
call ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 4]
cmp edx, 0x26
jb 0x5ee31b
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax + 0x1c]
mov ebp, dword [ecx]
mov ecx, dword [ecx + 8]
mov esi, dword [esp + 0x4c]
mov dword [esp], esi
add ecx, 0xffffffda
add edx, 0xffffffda
mov edi, ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x26
add ecx, ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
call ebx
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x60]
mov edx, dword [edx + 0x14]
mov ebx, dword [edx + 0x10]
mov ebp, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call sym.crypto_tls._cipherSuiteTLS13_.extract
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx + 0x18]
mov ebp, dword [esp + 0x4c]
mov dword [esp], ebp
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call ebx
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
lea ecx, [0x6dbdf8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x17
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 8
call sym.crypto_tls._cipherSuiteTLS13_.expandLabel
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x14]
lea ebx, [edx - 8]
cmp edx, ebx
jb 0x5ee312
mov ebp, dword [esp + 0x2c]
mov esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
sub ecx, edx
add ecx, 8
neg ecx
sar ecx, 0x1f
and ecx, ebx
add ecx, esi
cmp ebp, 8
jne 0x5ede2e
mov edx, dword [esp + 0x28]
xor ebx, ebx
xor esi, esi
jmp 0x5ee2fd
xor ecx, ecx
jmp 0x5ee19a
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x5edeed
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
add esp, 0x58
ret
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov dword [esp], ecx
mov byte [esp + 4], 0x50
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov dword [esp], ecx
mov byte [esp + 4], 0x46
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6a0680]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2f
lea ecx, [0x6e6277]
mov dword [eax], ecx
lea ecx, [0x7423cc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x58
ret
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov ebp, dword [eax + 0x40]
mov esi, dword [eax + 0x44]
test ebp, ebp
je 0x5edf28
mov dword [esp + 0x54], esi
mov eax, dword [ebp + 4]
lea ecx, [0x8c9568]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime.typeAssert
mov ebp, dword [esp + 8]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x54]
mov ecx, dword [eax + 0xc]
lea edx, [0x742fe8]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
call sym.crypto_tls.transcriptMsg
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5ee18a
mov eax, dword [esp + 0x50]
mov byte [eax + 0x1cc], 1
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
call sym.crypto_tls._clientHandshakeStateTLS13_.processServerHello
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ee17a
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x5edf87
xor ecx, ecx
xor edx, edx
jmp 0x5edfb3
movzx ecx, byte [eax + 0x39]
test cl, cl
je 0x5edf95
xor ecx, ecx
xor edx, edx
jmp 0x5edfb3
mov byte [eax + 0x39], 1
mov ecx, dword [eax]
mov dword [esp], ecx
call sym.crypto_tls._Conn_.writeChangeCipherRecord
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0x5c]
test ecx, ecx
jne 0x5ee16e
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.establishHandshakeKeys
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ee15e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.readServerParameters
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ee14e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.readServerCertificate
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ee13e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.readServerFinished
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ee12e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.sendClientCertificate
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ee11e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.sendClientFinished
mov eax, dword [esp + 4]
test eax, eax
jne 0x5ee10e
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sym.crypto_tls._Conn_.flush
mov eax, dword [esp + 8]
test eax, eax
jne 0x5ee0fe
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x5ee0d2
movzx eax, byte [eax + 0x24]
test al, al
je 0x5ee0d2
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov byte [esp + 4], 0x79
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6a0b00]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [0x8ef900]
test ecx, ecx
jne 0x5ee0b3
mov ecx, dword [esp + 0x48]
jmp 0x5ee0be
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov dword [eax], ecx
lea ecx, [0x742820]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x58
ret
mov eax, dword [esp + 0x50]
add eax, 0x14
nop
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.sync_atomic.StoreUint32
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x58
ret
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
add esp, 0x58
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x58
ret
cmp ecx, 1
jne 0x5ee2c1
mov ecx, dword [0x8ef900]
mov edx, dword [eax + 0x60]
mov edx, dword [edx + 0x14]
test ecx, ecx
je 0x5ee1c0
call sym.runtime.gcWriteBarrier2
mov dword [edi], edx
mov ecx, dword [eax + 0x10]
mov dword [edi + 4], ecx
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [edx + 0x44]
mov edx, dword [edx + 0x40]
mov dword [ecx + 0x7c], ebx
mov ebx, dword [0x8ef900]
test ebx, ebx
je 0x5ee1ea
call sym.runtime.gcWriteBarrier2
mov dword [edi], edx
mov ebx, dword [ecx + 0x78]
mov dword [edi + 4], ebx
mov dword [ecx + 0x78], edx
mov edx, dword [eax + 0x60]
mov ebx, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
mov dword [eax + 0x40], ebx
mov ebx, dword [0x8ef900]
test ebx, ebx
je 0x5ee210
call sym.runtime.gcWriteBarrier2
mov dword [edi], edx
mov ebx, dword [eax + 0x44]
mov dword [edi + 4], ebx
mov dword [eax + 0x44], edx
mov byte [ecx + 0x94], 1
mov edx, dword [eax + 0xc]
mov ebx, dword [edx + 0x78]
test ebx, ebx
jne 0x5ee281
mov ebx, dword [eax + 0x10]
mov ebx, dword [ebx + 0x44]
test ebx, ebx
jne 0x5ee279
movzx edx, byte [edx + 0x84]
test dl, dl
je 0x5ee279
mov dword [esp], ecx
mov byte [esp + 4], 0x6e
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6a0680]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x35
lea ecx, [0x6e79d7]
mov dword [eax], ecx
lea ecx, [0x7423cc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x58
ret
xor ebx, ebx
xor edx, edx
xor ebp, ebp
jmp 0x5ee2df
mov dword [esp], ecx
mov byte [esp + 4], 0x6e
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6a0680]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x5b
lea ecx, [0x6eae05]
mov dword [eax], ecx
lea ecx, [0x7423cc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x58
ret
mov ecx, dword [eax + 0x60]
mov byte [ecx + 0x24], 1
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x78]
mov ebx, dword [ecx + 0x7c]
mov ecx, dword [ecx + 0x80]
mov ebp, edx
mov edx, ecx
mov ecx, dword [esp + 0x50]
mov ecx, ebp
mov esi, edx
mov edx, ebx
mov ebx, esi
jmp 0x5edeed
movzx edi, byte [edx + ebx]
movzx eax, byte [ebx + ecx]
xor edi, eax
inc ebx
or esi, edi
mov eax, dword [esp + 0x5c]
cmp ebx, ebp
jl 0x5ee2ec
xchg esi, eax
movzx edx, al
xchg esi, eax
lea ecx, [edx - 1]
nop
shr ecx, 0x1f
jmp 0x5ee19a
mov eax, ebx
mov ecx, edx
call sym.runtime.panicSliceB
mov eax, 0x26
mov ecx, edx
call sym.runtime.panicSliceB
mov ecx, 0x1e
call sym.runtime.panicSliceAcap
nop
call sym.runtime.morestack_noctxt
jmp sym.crypto_tls._clientHandshakeStateTLS13_.handshake