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

Disassembly:
mov ecx, dword [0x911770]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5f0c82
sub esp, 0x58
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
test edx, edx
jg 0x5f07fd
mov edx, dword [eax + 0x14]
test edx, edx
je 0x5f07dc
mov edx, dword [edx + 4]
test edx, edx
je 0x5f07dc
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xcc]
test edx, edx
je 0x5f07dc
mov dword [esp + 0x50], ecx
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.checkServerHelloOrHRR
mov eax, dword [esp + 4]
test eax, eax
jne 0x5f07cc
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 [0x911a40]
test ebx, ebx
je 0x5f03df
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 0x5f040b
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 4]
lea ecx, [0x8eb368]
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, [0x75836c]
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 0x5f07bc
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x5f04df
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 [0x911a40]
test edx, edx
je 0x5f047a
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 0x5f04af
mov dword [esp + 0x54], ecx
mov eax, dword [edx + 4]
lea ecx, [0x8eb378]
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, [0x75836c]
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 0x5f07ac
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x14]
cmp dword [0x8eafbc], edx
je 0x5f04f1
xor ecx, ecx
jmp 0x5f0515
mov eax, dword [0x8eafb8]
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 0x5f0574
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x5f0528
xor ecx, ecx
xor edx, edx
jmp 0x5f0554
movzx ecx, byte [eax + 0x39]
test cl, cl
je 0x5f0536
xor ecx, ecx
xor edx, edx
jmp 0x5f0554
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 0x5f07a0
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.processHelloRetryRequest
mov eax, dword [esp + 4]
test eax, eax
jne 0x5f0790
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x5f0785
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 0x5f0c77
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, [0x6a6300]
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 0x5f0c6b
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, [0x6ef7f9]
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 0x5f0c62
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 0x5f077e
mov edx, dword [esp + 0x28]
xor ebx, ebx
xor esi, esi
jmp 0x5f0c4d
xor ecx, ecx
jmp 0x5f0aea
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x5f083d
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, [0x6b2a20]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2f
lea ecx, [0x6f9d18]
mov dword [eax], ecx
lea ecx, [0x75790c]
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 0x5f0878
mov dword [esp + 0x54], esi
mov eax, dword [ebp + 4]
lea ecx, [0x8eb388]
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, [0x758380]
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 0x5f0ada
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 0x5f0aca
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x5f08d7
xor ecx, ecx
xor edx, edx
jmp 0x5f0903
movzx ecx, byte [eax + 0x39]
test cl, cl
je 0x5f08e5
xor ecx, ecx
xor edx, edx
jmp 0x5f0903
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 0x5f0abe
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.establishHandshakeKeys
mov eax, dword [esp + 4]
test eax, eax
jne 0x5f0aae
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.readServerParameters
mov eax, dword [esp + 4]
test eax, eax
jne 0x5f0a9e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.readServerCertificate
mov eax, dword [esp + 4]
test eax, eax
jne 0x5f0a8e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.readServerFinished
mov eax, dword [esp + 4]
test eax, eax
jne 0x5f0a7e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.sendClientCertificate
mov eax, dword [esp + 4]
test eax, eax
jne 0x5f0a6e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.crypto_tls._clientHandshakeStateTLS13_.sendClientFinished
mov eax, dword [esp + 4]
test eax, eax
jne 0x5f0a5e
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sym.crypto_tls._Conn_.flush
mov eax, dword [esp + 8]
test eax, eax
jne 0x5f0a4e
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x5f0a22
movzx eax, byte [eax + 0x24]
test al, al
je 0x5f0a22
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov byte [esp + 4], 0x79
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6b2840]
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 [0x911a40]
test ecx, ecx
jne 0x5f0a03
mov ecx, dword [esp + 0x48]
jmp 0x5f0a0e
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov dword [eax], ecx
lea ecx, [0x757b40]
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 0x5f0c11
mov ecx, dword [0x911a40]
mov edx, dword [eax + 0x60]
mov edx, dword [edx + 0x14]
test ecx, ecx
je 0x5f0b10
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 [0x911a40]
test ebx, ebx
je 0x5f0b3a
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 [0x911a40]
test ebx, ebx
je 0x5f0b60
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 0x5f0bd1
mov ebx, dword [eax + 0x10]
mov ebx, dword [ebx + 0x44]
test ebx, ebx
jne 0x5f0bc9
movzx edx, byte [edx + 0x84]
test dl, dl
je 0x5f0bc9
mov dword [esp], ecx
mov byte [esp + 4], 0x6e
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6b2a20]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x35
lea ecx, [0x6fb4cd]
mov dword [eax], ecx
lea ecx, [0x75790c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x58
ret
xor ebx, ebx
xor edx, edx
xor ebp, ebp
jmp 0x5f0c2f
mov dword [esp], ecx
mov byte [esp + 4], 0x6e
call sym.crypto_tls._Conn_.sendAlert
lea eax, [0x6b2a20]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x5b
lea ecx, [0x6feaea]
mov dword [eax], ecx
lea ecx, [0x75790c]
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 0x5f083d
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 0x5f0c3c
xchg esi, eax
movzx edx, al
xchg esi, eax
lea ecx, [edx - 1]
nop
shr ecx, 0x1f
jmp 0x5f0aea
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