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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x40
mov rbx, qword [rsp + 0x80]
lea rax, str.check_cookie:_in_len_u
mov rsi, r9
mov dword [rsp + 0x28], ebx
mov r15, r8
mov qword [rsp + 0x20], rax
mov r12, rdx
lea r8, str.C:mbedtlslibrary_ssl_msg.c
mov r9d, 0xc88
mov edx, 4
mov rdi, rcx
call fcn.140032290
lea rax, str.cli_id
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r12
lea r8, str.C:mbedtlslibrary_ssl_msg.c
mov r9d, 0xc89
mov qword [rsp + 0x20], rax
mov edx, 4
mov rcx, rdi
call fcn.140031a20
cmp rbx, 0x3d
jae 0x1400215b4
lea rax, str.check_cookie:_record_too_short
mov r9d, 0xc8c
lea r8, str.C:mbedtlslibrary_ssl_msg.c
mov qword [rsp + 0x20], rax
mov edx, 4
mov rcx, rdi
call fcn.140032290
mov eax, 0xffff8d00
jmp 0x14002187c
movzx eax, byte [rsi + 4]
mov qword [rsp + 0x60], rbp
movzx ebp, byte [rsi + 0x13]
shl rbp, 8
mov qword [rsp + 0x68], r14
movzx r14d, byte [rsi + 3]
shl r14, 8
or r14, rax
movzx eax, byte [rsi + 0x14]
or rbp, rax
movzx eax, byte [rsi + 0x15]
shl rbp, 8
or rbp, rax
cmp byte [rsi], 0x16
jne 0x140021811
test r14, r14
jne 0x140021811
test rbp, rbp
jne 0x140021811
movzx r14d, byte [rsi + 0x3b]
lea r8, str.C:mbedtlslibrary_ssl_msg.c
lea edx, [rbp + 4]
mov rcx, rdi
lea rax, [r14 + 0x3d]
cmp rax, rbx
jbe 0x140021646
lea eax, [rbx - 0x3d]
mov r9d, 0xca2
mov dword [rsp + 0x30], eax
lea rax, str.check_cookie:_sid_len_u____u
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call fcn.140032290
jmp 0x14002186d
lea rax, [rsi + 0x3c]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov r9d, 0xca6
lea rax, str.sid_received_from_network
mov qword [rsp + 0x20], rax
call fcn.140031a20
movzx ebp, byte [r14 + rsi + 0x3c]
lea rax, [r14 + 0x3d]
add rax, rbp
lea r8, str.C:mbedtlslibrary_ssl_msg.c
mov edx, 4
mov rcx, rdi
cmp rax, rbx
jbe 0x1400216b6
sub ebx, r14d
lea rax, str.check_cookie:_cookie_len_u____u
sub ebx, 0x3d
mov r9d, 0xcad
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.140032290
jmp 0x14002186d
mov qword [rsp + 0x30], rbp
lea rax, str.cookie_received_from_network
lea rbx, [rsi + 0x3d]
mov r9d, 0xcb2
add rbx, r14
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.140031a20
mov rax, qword [rdi]
mov r9, r12
mov r8, rbp
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, qword [rax + 0x98]
call qword [rax + 0x90]
test eax, eax
jne 0x14002172d
lea rax, str.check_cookie:_valid
mov r9d, 0xcb7
lea r8, str.C:mbedtlslibrary_ssl_msg.c
mov qword [rsp + 0x20], rax
mov edx, 4
mov rcx, rdi
call fcn.140032290
xor eax, eax
jmp 0x140021872
mov rcx, qword [rsp + 0x90]
cmp rcx, 0x1c
jae 0x140021745
mov eax, 0xffff9600
jmp 0x140021872
mov rbx, qword [rsp + 0x88]
lea rdx, [rsp + 0x80]
movups xmm0, xmmword [rsi]
mov r9, r12
mov qword [rsp + 0x20], r15
movups xmmword [rbx], xmm0
lea r8, [rbx + rcx]
movsd xmm1, qword [rsi + 0x10]
movsd qword [rbx + 0x10], xmm1
movzx eax, byte [rsi + 0x18]
mov byte [rbx + 0x18], al
lea rax, [rbx + 0x1c]
mov qword [rsp + 0x80], rax
mov byte [rbx + 0xd], 3
mov word [rbx + 0x19], 0xfffe
mov rax, qword [rdi]
mov rcx, qword [rax + 0x98]
call qword [rax + 0x88]
test eax, eax
je 0x1400217ac
mov eax, 0xffff9400
jmp 0x140021872
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x80]
sub rax, rbx
mov qword [rcx], rax
sub al, 0x1c
mov byte [rbx + 0x1b], al
mov rax, qword [rcx]
sub rax, 0x19
shr rax, 0x10
mov byte [rbx + 0x16], al
mov byte [rbx + 0xe], al
mov rax, qword [rcx]
sub rax, 0x19
shr rax, 8
mov byte [rbx + 0x17], al
mov byte [rbx + 0xf], al
movzx eax, byte [rcx]
sub al, 0x19
mov byte [rbx + 0x18], al
mov byte [rbx + 0x10], al
mov rax, qword [rcx]
sub rax, 0xd
shr rax, 8
mov byte [rbx + 0xb], al
movzx eax, byte [rcx]
sub al, 0xd
mov byte [rbx + 0xc], al
mov eax, 0xffff9580
jmp 0x140021872
lea rax, str.check_cookie:_not_a_good_ClientHello
mov r9d, 0xc96
lea r8, str.C:mbedtlslibrary_ssl_msg.c
mov qword [rsp + 0x20], rax
mov edx, 4
mov rcx, rdi
call fcn.140032290
movzx eax, byte [rsi]
lea r8, str.C:mbedtlslibrary_ssl_msg.c
mov dword [rsp + 0x38], ebp
mov r9d, 0xc99
mov dword [rsp + 0x30], r14d
mov edx, 4
mov dword [rsp + 0x28], eax
mov rcx, rdi
lea rax, str.____type_u_epoch_u_fragment_offset_u
mov qword [rsp + 0x20], rax
call fcn.140032290
mov eax, 0xffff8d00
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r12
pop rdi
ret