Function at 0x1400afd70
Capabilities:
Hash data using sha1
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov esi, 0xffffffff
lea rcx, str.SSL_shutdown__
call fcn.1400ee110
test rdi, rdi
jne 0x1400afda0
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test byte [rdi + 0x398], 0x10
mov qword [rsp + 0x30], rbx
je 0x1400afe13
cmp dword [0x140a04560], 0
je 0x1400afe02
mov rax, qword [0x140a04558]
test rax, rax
je 0x1400afde2
lea rdx, str.quiet_shutdown__no_close_notify_sent
mov ecx, 1
call rax
mov esi, 1
lea rbx, [rdi + 0x396]
jmp 0x1400afedc
mov ecx, 2
call fcn.14017cf98
mov rcx, rax
lea r8, str.quiet_shutdown__no_close_notify_sent
lea rdx, [0x140998764]
call fcn.1400af550
mov esi, 1
lea rbx, [rdi + 0x396]
jmp 0x1400afedc
lea rbx, [rdi + 0x396]
movzx eax, word [rbx]
test al, 0x16
jne 0x1400afe66
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call fcn.1400c4200
mov dword [rdi + 0x298], eax
test eax, eax
jns 0x1400afe53
mov ecx, eax
call fcn.1400ee260
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, word [rbx]
or ax, 0x10
mov word [rbx], ax
test al, 8
je 0x1400afe8c
mov esi, 1
and al, 0x18
cmp al, 0x10
jne 0x1400afed3
mov rcx, rdi
call fcn.1400c0af0
cmp eax, 0xfffffea9
jne 0x1400afeb2
mov dword [rdi + 0x298], 5
mov esi, 1
jmp 0x1400afedc
mov edx, 2
lea rcx, str.SSL_shutdown__
call fcn.1400ee1b0
mov rbx, qword [rsp + 0x30]
mov eax, 2
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rdi + 0x298]
test ecx, ecx
jne 0x1400afec4
lea esi, [rcx + 2]
jmp 0x1400b002d
call fcn.1400ee260
mov esi, 0xffffffff
jmp 0x1400b002d
cmp esi, 1
jne 0x1400b002d
mov eax, 0xfffb
mov dword [rdi + 0x39d], 0
and word [rbx], ax
mov ecx, 0xfffd
movzx eax, word [rbx]
and ax, cx
mov word [rdi + 0x3a2], 0
mov ecx, 0xffef
mov byte [rdi + 0x38c], 0
and ax, cx
mov word [rbx], ax
mov eax, 0xfffc
and word [rdi + 0x394], ax
xor eax, eax
mov dword [rdi + 0x2bc], eax
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400b0011
add rcx, 0xf0
je 0x1400b004d
mov rax, qword [rdi + 0x48]
xor edx, edx
mov qword [rcx + 0x60], rax
mov qword [rcx], rdx
mov dword [rcx + 8], edx
mov dword [rcx + 0x4c], 0x67452301
mov dword [rcx + 0x50], 0xefcdab89
mov dword [rcx + 0x54], 0x98badcfe
mov dword [rcx + 0x58], 0x10325476
mov rcx, qword [rdi + 0x18]
add rcx, 0x88
je 0x1400b004d
mov rax, qword [rdi + 0x48]
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x4c], 0x67452301
mov dword [rcx + 0x50], 0xefcdab89
mov dword [rcx + 0x54], 0x98badcfe
mov dword [rcx + 0x58], 0x10325476
mov dword [rcx + 0x5c], 0xc3d2e1f0
mov qword [rcx], rdx
mov dword [rcx + 8], edx
mov rcx, qword [rdi + 0x18]
add rcx, 0x158
je 0x1400b004d
mov rax, qword [rdi + 0x48]
xorps xmm0, xmm0
mov qword [rcx + 0x70], rax
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov qword [rcx + 0x60], rdx
mov dword [rcx + 0x68], edx
lea rcx, [rdi + 0x460]
call fcn.1400b83f0
mov r8, qword [rdi + 0x48]
lea rcx, [rdi + 0x460]
call fcn.1400b82a0
mov edx, esi
lea rcx, str.SSL_shutdown__
call fcn.1400ee1b0
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [0x140a04560], 0
je 0x1400b0097
mov rax, qword [0x140a04558]
test rax, rax
je 0x1400b0077
lea rdx, str.could_not_clear_WOLFSSL
mov ecx, 1
call rax
mov esi, 0xffffffff
jmp 0x1400b002d
mov ecx, 2
call fcn.14017cf98
mov rcx, rax
lea r8, str.could_not_clear_WOLFSSL
lea rdx, [0x140998764]
call fcn.1400af550
mov esi, 0xffffffff
jmp 0x1400b002d