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

Disassembly:
mov ecx, dword [0x911770]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x5f34af
sub esp, 0x94
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x6c], edx
mov ebx, dword [ecx + 0x60]
cmp word [ecx + 0x58], 0x6399
jne 0x5f2b81
cmp ebx, 0x460
jne 0x5f2b38
mov ebx, 0x20
jmp 0x5f2b81
mov dword [esp], edx
mov byte [esp + 4], 0x2f
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], 0x1d
lea ecx, [0x6f2a06]
mov dword [eax], ecx
lea ecx, [0x75790c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x94
ret
mov edx, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x64]
mov ebp, dword [eax + 0x14]
mov ebp, dword [ebp + 4]
mov esi, dword [ebp]
mov esi, dword [esi + 0x14]
mov ebp, dword [ebp + 4]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5f3457
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x14]
mov edx, dword [edx + 4]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.crypto_ecdh._PrivateKey_.ECDH
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5f340a
mov edx, dword [esp + 0x98]
mov ebx, dword [edx + 0xc]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp word [ebx + 0x58], 0x6399
jne 0x5f2d6f
mov eax, dword [edx + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x5f2d41
mov ecx, dword [ebx + 0x60]
cmp ecx, 0x20
jb 0x5f34a4
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x54], ebp
mov edx, dword [ebx + 0x64]
mov ebx, dword [ebx + 0x5c]
mov dword [esp], eax
lea eax, [edx - 0x20]
add ecx, 0xffffffe0
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 0x20
add eax, ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call sym.crypto_tls.kyberDecapsulate
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x5f2cf4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
lea ebx, [edx + eax]
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
jb 0x5f2c79
mov esi, dword [esp + 0x54]
jmp 0x5f2cc1
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
lea ecx, [0x6a6300]
mov dword [esp + 0x10], ecx
call sym.runtime.growslice
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
mov edi, esi
mov esi, ebp
mov ebp, edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
add edx, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym.runtime.memmove
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x54]
jmp 0x5f2d6f
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov byte [esp + 4], 0x2f
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], 0x23
lea ecx, [0x6f5517]
mov dword [eax], ecx
lea ecx, [0x75790c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x94
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov byte [esp + 4], 0x50
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x94
ret
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
mov eax, dword [edx + 0xc]
movzx eax, word [eax + 0x58]
mov ecx, dword [esp + 0x6c]
mov word [ecx + 0x3a], ax
movzx eax, byte [edx + 0x38]
mov ebx, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov esi, dword [edx + 0x1c]
test al, al
jne 0x5f2de9
mov eax, dword [edx + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call sym.crypto_tls._cipherSuiteTLS13_.extract
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x98]
mov eax, dword [edx + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x6e92d3]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 7
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sym.crypto_tls._cipherSuiteTLS13_.deriveSecret
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call sym.crypto_tls._cipherSuiteTLS13_.extract
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x98]
mov ebp, dword [ebx + 0x3c]
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x44]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
lea ebp, [0x6ea9e6]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call sym.crypto_tls._cipherSuiteTLS13_.deriveSecret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x6c]
lea ebp, [ebx + 0x130]
mov esi, dword [esp + 0x98]
mov edi, dword [esi + 0x3c]
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call sym.crypto_tls._halfConn_.setTrafficSecret
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x40]
mov ebx, dword [eax + 0x44]
mov dword [esp], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x40]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0xc], esi
lea edi, [0x6ea9f2]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
call sym.crypto_tls._cipherSuiteTLS13_.deriveSecret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x6c]
lea ebp, [ebx + 0xd4]
mov esi, dword [esp + 0x98]
mov edi, dword [esi + 0x3c]
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call sym.crypto_tls._halfConn_.setTrafficSecret
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5f31f2
mov ecx, dword [eax + 0x1c4]
cmp dword [eax + 0x1bc], ecx
je 0x5f2fca
mov dword [esp], eax
mov byte [esp + 4], 0xa
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x3c]
movzx edx, word [edx]
lea edi, [esp + 0x70]
mov ebx, eax
xor eax, eax
call fcn.00471f19
mov dword [esp + 0x70], 2
mov dword [esp + 0x74], 2
mov word [esp + 0x84], dx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x7c], edx
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x80], ebp
mov esi, dword [ebx + 0x10]
mov edi, dword [esi + 8]
mov ebp, dword [esi + 4]
inc ebp
mov edx, dword [esi]
cmp edi, ebp
jae 0x5f308e
mov dword [esp + 0x90], esi
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], 1
lea eax, [0x6cb460]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x90]
mov dword [ebx + 8], eax
mov eax, dword [0x911a40]
test eax, eax
je 0x5f307c
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], ecx
xor eax, eax
mov esi, ebx
mov ebp, edx
mov edx, ecx
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov dword [esi + 4], ebp
mov esi, dword [0x911a40]
imul ebp, ebp, 0x1c
lea edi, [edx + ebp - 0x1c]
test esi, esi
je 0x5f30d4
mov dword [esp + 0x8c], edi
lea eax, [0x6cb460]
mov dword [esp], eax
mov dword [esp + 4], edi
lea ecx, [esp + 0x70]
mov dword [esp + 8], ecx
call sym.runtime.wbMove
xor eax, eax
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x8c]
lea esi, [esp + 0x70]
call fcn.004723ea
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x3c]
movzx edx, word [edx]
lea edi, [esp + 0x70]
call fcn.00471f19
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 2
mov word [esp + 0x84], dx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x7c], edx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x80], ebp
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
inc edi
mov ebp, dword [eax]
cmp esi, edi
jae 0x5f319f
mov dword [esp + 0x90], eax
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x6cb460]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x90]
mov dword [ebx + 8], eax
mov eax, dword [0x911a40]
test eax, eax
je 0x5f318b
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, ebx
mov ebx, dword [esp + 0x6c]
mov edi, edx
mov ebp, ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edi
mov eax, dword [0x911a40]
imul esi, edi, 0x1c
lea edi, [ebp + esi - 0x1c]
test eax, eax
je 0x5f31e7
mov dword [esp + 0x8c], edi
lea eax, [0x6cb460]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x8c]
lea esi, [esp + 0x70]
call fcn.004723ea
jmp 0x5f31f4
mov ebx, eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x10]
mov ebp, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [esp], eax
lea eax, [0x6f383c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1f
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], eax
call sym.crypto_tls._Config_.writeKeyLog
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5f33d0
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 0x98]
mov ebx, dword [edx + 0x10]
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x18]
mov dword [esp], ecx
lea ecx, [0x6f385b]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1f
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
call sym.crypto_tls._Config_.writeKeyLog
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5f3396
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
lea ecx, [0x6e92d3]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 7
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sym.crypto_tls._cipherSuiteTLS13_.deriveSecret
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call sym.crypto_tls._cipherSuiteTLS13_.extract
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x98]
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], ecx
mov eax, dword [0x911a40]
test eax, eax
je 0x5f3376
call sym.runtime.gcWriteBarrier2
mov dword [edi], edx
mov eax, dword [ebx + 0x48]
mov dword [edi + 4], eax
mov dword [ebx + 0x48], edx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x94
ret
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov byte [esp + 4], 0x50
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 0x48]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xa0], eax
add esp, 0x94
ret
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov byte [esp + 4], 0x50
call sym.crypto_tls._Conn_.sendAlert
mov eax, dword [esp + 0x48]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xa0], eax
add esp, 0x94
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov byte [esp + 4], 0x2f
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], 0x1d
lea ecx, [0x6f2a06]
mov dword [eax], ecx
lea ecx, [0x75790c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x94
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov byte [esp + 4], 0x2f
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], 0x1d
lea ecx, [0x6f2a06]
mov dword [eax], ecx
lea ecx, [0x75790c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x94
ret
mov eax, 0x20
call sym.runtime.panicSliceB
nop
call sym.runtime.morestack_noctxt
jmp sym.crypto_tls._clientHandshakeStateTLS13_.establishHandshakeKeys