Function at 0x5b9720
Capabilities:
Reference http user-agent string

Disassembly:
lea r12, [rsp - 0x38]
cmp r12, qword [r14 + 0x10]
jbe 0x5b9c18
push rbp
mov rbp, rsp
sub rsp, 0xb0
mov qword [rsp + 0xc0], rax
mov rdx, qword [rax]
mov qword [rsp + 0x80], rdx
xor ebx, ebx
xor ecx, ecx
mov rax, rdx
call sym.crypto_tls._Conn_.readHandshake
nop dword [rax]
test rcx, rcx
jne 0x5b987a
lea rdx, [0x0068e4a0]
cmp rax, rdx
jne 0x5b977a
mov rcx, rbx
jmp 0x5b9782
mov rcx, rbx
mov ebx, 0
mov qword [rsp + 0x70], rbx
jne 0x5b97e5
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx + 0x78]
mov r9, qword [rsp + 0x80]
mov rbx, qword [r9 + 0x1f8]
mov rcx, qword [r9 + 0x200]
mov rdi, qword [r9 + 0x208]
mov rsi, qword [rdx + 0x80]
mov r8, qword [rdx + 0x88]
call sym.crypto_tls._cipherSuiteTLS13_.finishedHash
mov rdx, qword [rsp + 0x70]
cmp qword [rdx + 0x20], rbx
je 0x5b97d7
xor esi, esi
jmp 0x5b98af
mov rsi, qword [rdx + 0x18]
xor ecx, ecx
xor edi, edi
nop
jmp 0x5b98a0
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov ebx, 0xa
nop
call sym.crypto_tls._Conn_.sendAlert
movups xmmword [rsp + 0x90], xmm15
movups xmmword [rsp + 0xa0], xmm15
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x90], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x98], rcx
lea rcx, [0x0068e4a0]
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rcx
lea rax, [0x006eb400]
mov ebx, 0x49
lea rcx, [rsp + 0x90]
mov edi, 2
mov rsi, rdi
call sym.fmt.Errorf
add rsp, 0xb0
pop rbp
ret
mov rax, rcx
mov rbx, rdi
add rsp, 0xb0
pop rbp
ret
movzx r8d, byte [rcx + rax]
movzx r9d, byte [rsi + rcx]
xor r8d, r9d
inc rcx
or edi, r8d
nop dword [rax]
cmp rbx, rcx
jg 0x5b9889
movzx esi, dil
dec esi
nop
shr esi, 0x1f
cmp rsi, 1
jne 0x5b98e7
mov rsi, qword [rsp + 0xc0]
mov r8, qword [rsi + 0x80]
mov rdi, qword [rsi + 0x88]
test r8, r8
je 0x5b992a
mov rbx, qword [r8 + 8]
mov r9, qword [0x008f73f0]
mov r10, qword [r9]
mov r8d, dword [r8 + 0x10]
jmp 0x5b9bc8
mov rax, qword [rsp + 0x80]
mov ebx, 0x33
call sym.crypto_tls._Conn_.sendAlert
lea rax, [0x006951a0]
call sym.runtime.newobject
mov qword [rax + 8], 0x21
lea rcx, [0x006de1a6]
mov qword [rax], rcx
mov rbx, rax
lea rax, [0x00758260]
add rsp, 0xb0
pop rbp
ret
lea rax, [0x007591a0]
mov rbx, rdx
mov rcx, r8
call sym.crypto_tls.transcriptMsg
nop dword [rax]
test rax, rax
jne 0x5b9bbf
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx + 0x78]
mov rcx, qword [rdx + 0x98]
mov rdi, qword [rdx + 0xa0]
mov rbx, qword [rdx + 0x90]
mov r9, qword [rdx + 0x80]
mov r10, qword [rdx + 0x88]
lea rsi, [0x006d2e98]
mov r8d, 0xc
call sym.crypto_tls._cipherSuiteTLS13_.deriveSecret
mov rdx, qword [rsp + 0xc0]
mov qword [rdx + 0xb0], rbx
mov qword [rdx + 0xb8], rcx
cmp dword [0x0098c4d0], 0
je 0x5b99bc
call sym.runtime.gcWriteBarrier2
mov qword [r11], rax
mov r12, qword [rdx + 0xa8]
mov qword [r11 + 8], r12
mov qword [rdx + 0xa8], rax
mov rax, qword [rdx + 0x78]
mov rcx, qword [rdx + 0x98]
mov rdi, qword [rdx + 0xa0]
mov rbx, qword [rdx + 0x90]
mov r9, qword [rdx + 0x80]
mov r10, qword [rdx + 0x88]
lea rsi, [0x006d2ea4]
mov r8d, 0xc
call sym.crypto_tls._cipherSuiteTLS13_.deriveSecret
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rcx
mov rdx, qword [rsp + 0x80]
lea r11, [rdx + 0x178]
mov r12, qword [rsp + 0xc0]
mov r13, qword [r12 + 0x78]
mov rdi, rax
mov rsi, rbx
mov r8, rcx
mov rax, r11
mov rbx, r13
mov ecx, 3
nop dword [rax + rax]
call sym.crypto_tls._halfConn_.setTrafficSecret
mov rdx, qword [rsp + 0x80]
mov rax, qword [rdx + 0x50]
mov r11, qword [rsp + 0xc0]
mov r12, qword [r11 + 0x20]
mov rdi, qword [r12 + 0x20]
mov rsi, qword [r12 + 0x28]
mov r8, qword [r12 + 0x30]
mov r9, qword [r11 + 0xa8]
mov r10, qword [r11 + 0xb0]
mov r12, qword [r11 + 0xb8]
lea rbx, [0x006d8115]
mov ecx, 0x17
mov r11, r12
call sym.crypto_tls._Config_.writeKeyLog
test rax, rax
jne 0x5b9b90
mov rdx, qword [rsp + 0x80]
mov rax, qword [rdx + 0x50]
mov r12, qword [rsp + 0xc0]
mov r13, qword [r12 + 0x20]
mov rdi, qword [r13 + 0x20]
mov rsi, qword [r13 + 0x28]
mov r8, qword [r13 + 0x30]
lea rbx, [0x006d812c]
mov ecx, 0x17
mov r9, qword [rsp + 0x68]
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
nop
call sym.crypto_tls._Config_.writeKeyLog
test rax, rax
jne 0x5b9b61
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx + 0x78]
mov rbx, qword [rdx + 0x90]
mov rcx, qword [rdx + 0x98]
mov rdi, qword [rdx + 0xa0]
mov rsi, qword [rdx + 0x80]
mov r8, qword [rdx + 0x88]
call sym.crypto_tls._cipherSuiteTLS13_.exportKeyingMaterial
cmp dword [0x0098c4d0], 0
jne 0x5b9b31
mov rcx, qword [rsp + 0x80]
jmp 0x5b9b4c
call sym.runtime.gcWriteBarrier2
mov qword [r11], rax
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx + 0xf8]
mov qword [r11 + 8], rdx
mov qword [rcx + 0xf8], rax
xor eax, eax
xor ebx, ebx
add rsp, 0xb0
pop rbp
nop
ret
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rbx
mov rax, qword [rsp + 0x80]
mov ebx, 0x50
call sym.crypto_tls._Conn_.sendAlert
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x78]
add rsp, 0xb0
pop rbp
ret
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rbx
mov rax, qword [rsp + 0x80]
mov ebx, 0x50
call sym.crypto_tls._Conn_.sendAlert
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x78]
add rsp, 0xb0
pop rbp
ret
add rsp, 0xb0
pop rbp
ret
mov r11, r8
and r8, r10
shl r8, 4
mov r12, qword [r8 + r9 + 8]
cmp r12, rbx
je 0x5b9c0e
lea r8, [r11 + 1]
test r12, r12
jne 0x5b9bc8
mov qword [rsp + 0x88], rdi
lea rax, [0x008f73f0]
call sym.runtime.typeAssert
mov rdx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x88]
mov r8, rax
jmp 0x5b992a
mov r8, qword [r8 + r9 + 0x10]
jmp 0x5b992a
mov qword [rsp + 8], rax
nop dword [rax]
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
jmp sym.crypto_tls._clientHandshakeStateTLS13_.readServerFinished