Function at 0x140039100
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0x388]
sub rsp, 0x488
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov eax, dword [rcx + 0xc8]
lea rbx, [rcx - 0xae8]
xor r15d, r15d
mov qword [rsp + 0x30], rcx
mov rdi, rcx
bt eax, 0xf
jae 0x1400391cf
test byte [0x1400f8b3b], 4
je 0x1400391a8
movzx eax, word [rcx + 0x20]
lea r9d, [r15 + 4]
mov dword [rbp - 0x60], eax
lea rdx, [0x1400d0688]
lea rax, [rbp - 0x58]
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x60]
mov qword [rbp], rax
lea rax, str.Received_alert_from_TLS
mov qword [rbp + 0x10], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov qword [rbp - 8], 8
mov qword [rbp + 8], 4
mov qword [rbp + reloc.OLEAUT32.dll_SafeArrayGetElement], 0x18
call fcn.140001460
movzx eax, word [rdi + 0x20]
xor r9d, r9d
movzx r8d, al
mov rcx, rbx
bts r8, 8
mov word [rsp + 0x20], r15w
lea edx, [r9 + 2]
call fcn.140017410
jmp 0x140039b52
mov qword [rsp + 0x4c0], r12
mov r12, 0xffffffffffffffff
test al, 0x10
je 0x14003925e
test byte [0x1400f8b3b], 0x80
je 0x14003925e
lea r9, str.0_RTT_accepted
mov r8, r12
mov edx, 0x80
lea rcx, [rbp + 0xf0]
call fcn.1400015d0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0xf0]
mov rax, r12
mov qword [rbp + 0x38], 8
inc rax
cmp byte [rcx + rax], r15b
jne 0x140039226
inc eax
mov dword [rbp + 0x4c], r15d
mov dword [rbp + 0x48], eax
lea rcx, [rbp + 0xf0]
lea rax, [rbp + 0x20]
mov qword [rbp + 0x40], rcx
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, [0x1400d0508]
call fcn.140001460
test byte [rdi + 0xc8], 0x20
mov qword [rsp + 0x4b8], rsi
mov qword [rsp + 0x4c8], r13
mov qword [rsp + 0x480], r14
je 0x14003948e
test byte [0x1400f8b3b], 0x80
je 0x1400392ff
lea r9, str.0_RTT_rejected
mov r8, r12
mov edx, 0x80
lea rcx, [rbp + 0x170]
call fcn.1400015d0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x170]
mov rax, r12
mov qword [rbp + 0x68], 8
inc rax
cmp byte [rcx + rax], r15b
jne 0x1400392c7
inc eax
mov dword [rbp + 0x7c], r15d
mov dword [rbp + 0x78], eax
lea rcx, [rbp + 0x170]
lea rax, [rbp + 0x50]
mov qword [rbp + 0x70], rcx
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, [0x1400d0508]
call fcn.140001460
cmp dword [rbx], 3
jne 0x140039486
mov edx, 1
mov rcx, rdi
call fcn.140037f50
lea r13, [rbx + 0xa50]
mov rcx, r15
mov r14, qword [r13 + 0x58]
lea rdx, [r13 + 0x58]
mov qword [rbp - 0x58], rcx
test r14, r14
je 0x14003948e
lea r8, str.CSTR
mov edi, ecx
nop dword [rax]
movzx eax, byte [r14 + 0x58]
mov rsi, qword [r14]
and al, 3
cmp al, 1
jne 0x14003943e
test rcx, rcx
je 0x140039365
mov qword [rcx], rsi
test rsi, rsi
jne 0x140039371
mov qword [r13 + 0x60], rcx
jmp 0x140039371
mov qword [rdx], rsi
test rsi, rsi
jne 0x140039371
mov qword [r13 + 0x60], rdx
test byte [0x1400f8b3e], 0x80
je 0x140039414
test rbx, rbx
jne 0x140039388
lea ecx, [rbx + 0x2d]
jmp 0x140039396
cmp dword [rbx], 4
mov rax, r15
sete al
movsx ecx, byte [rax + r8]
mov rax, qword [r14 + 0x10]
lea r9, str.__c__TX___llu__Rejected
mov qword [rsp + 0x28], rax
mov r8, r12
mov dword [rsp + 0x20], ecx
mov edx, 0x80
lea rcx, [rbp + 0x1f0]
call fcn.1400015d0
lea rcx, [rbp + 0x1f0]
mov rax, r12
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], r15b
jne 0x1400393d0
inc eax
mov dword [rbp + 0xcc], r15d
mov dword [rbp + 0xc8], eax
lea rcx, [rbp + 0x1f0]
lea rax, [rbp + 0xb0]
mov qword [rbp + 0xc0], rcx
mov r9d, 2
mov qword [rsp + 0x20], rax
lea rdx, [0x1400d0798]
call fcn.140001460
dec dword [r13]
mov r8b, 1
movzx eax, word [r14 + 0x28]
mov rdx, r14
add edi, eax
mov rcx, r13
call fcn.140045300
mov rcx, qword [rbp - 0x58]
lea rdx, [r13 + 0x58]
lea r8, str.CSTR
jmp 0x140039445
mov rcx, r14
mov qword [rbp - 0x58], rcx
mov r14, rsi
test rsi, rsi
jne 0x140039340
mov dword [rbp - 0x60], edi
test edi, edi
mov rdi, qword [rsp + 0x30]
je 0x14003948e
mov edx, dword [rbp - 0x60]
lea rcx, [rbx + 0x880]
mov rax, qword [rcx + 0x30]
call qword [case.0x1400639e1.0]
test al, al
je 0x14003948e
lea rcx, [rbx + 0xd58]
lea edx, [rsi + 6]
call fcn.140042240
jmp 0x14003948e
mov rcx, rbx
call fcn.140022ed0
test byte [rdi + 0xc8], 8
mov r13, qword [rsp + 0x4c8]
je 0x140039555
test byte [0x1400f8b3a], 4
je 0x1400394f4
movzx eax, byte [rdi + 0x1c]
lea rdx, [0x1400d05a8]
mov byte [rbp - 0x68], al
mov r9d, 3
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x38], 8
mov qword [rbp - 0x28], 1
call fcn.140001460
cmp dword [rdi + 0x1c], 3
jne 0x14003951d
cmp dword [rbx], 3
jne 0x14003950c
mov edx, 1
mov rcx, rdi
call fcn.140037f50
lea rcx, [rbx + 0xd58]
mov edx, 8
call fcn.140042240
cmp dword [rbx], 4
mov eax, dword [rdi + 0x1c]
jne 0x140039535
cmp eax, 3
jne 0x140039555
mov eax, dword [rdi + 0x30]
mov dword [rbx + 0xe8c], eax
jmp 0x140039555
cmp eax, 2
jne 0x140039543
mov eax, dword [rdi + 0x2c]
mov dword [rbx + 0xe88], eax
cmp dword [rdi + 0x1c], 3
jne 0x140039555
mov eax, dword [rdi + 0x30]
sub eax, dword [rdi + 0x2c]
mov dword [rbx + 0xe90], eax
test byte [rdi + 0xc8], 4
je 0x140039737
cmp dword [rdi + 0x1a8], r15d
jbe 0x140039603
mov rax, qword [rdi + 0x1a0]
test rax, rax
je 0x140039603
cmp qword [rax], r15
jne 0x140039603
mov rax, qword [rax + 8]
sub rax, qword [rdi + 0x240]
cmp rax, qword [rdi + 0x238]
jbe 0x140039603
test byte [0x1400f8b3b], 4
je 0x1400395e5
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x40], rax
lea rdx, [0x1400cffc0]
lea rax, str.Leftover_crypto_data_in_previous_encryption_level.
mov qword [rbp - 0x38], 8
mov qword [rbp - 0x30], rax
mov r9d, 3
lea rax, [rbp - 0x50]
mov qword [rbp - 0x28], 0x33
mov qword [rsp + 0x20], rax
call fcn.140001460
xor r9d, r9d
mov word [rsp + 0x20], r15w
mov rcx, rbx
lea edx, [r9 + 2]
lea r8d, [r9 + 0xa]
call fcn.140017410
jmp 0x140039b3a
mov eax, dword [rdi + 0x178]
mov dword [rdi + 0x184], eax
test byte [0x1400f8b3a], 4
je 0x14003962c
movzx r9d, byte [rdi + 0x18]
lea rdx, [0x1400d0848]
mov r8, rbx
call fcn.1400139c0
cmp dword [rbx], 4
mov eax, dword [rdi + 0x18]
jne 0x14003965f
cmp eax, 2
jne 0x140039645
mov eax, dword [rdi + 0x178]
mov dword [rbx + 0xe88], eax
cmp dword [rdi + 0x18], 3
jne 0x140039670
mov eax, dword [rdi + 0x178]
sub eax, dword [rbx + 0xe88]
mov dword [rbx + 0xe90], eax
jmp 0x140039670
cmp eax, 3
jne 0x140039670
mov eax, dword [rdi + 0x178]
mov dword [rbx + 0xe8c], eax
cmp qword [rbx + 0xe58], r15
jne 0x1400396d5
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x1400f8b08]
xor edx, edx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
mov ecx, ecx
shr rax, 0x20
imul r9, rax, 0xf4240
mov rax, r9
div r8
mov rax, rdx
shl rax, 0x20
imul rdx, rcx, 0xf4240
add rax, rdx
xor edx, edx
div r8
xor edx, edx
mov rcx, rax
mov rax, r9
div r8
shl rax, 0x20
add rcx, rax
mov qword [rbx + 0xe58], rcx
cmp dword [rdi + 0x18], 3
jne 0x140039737
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x1400f8b08]
xor edx, edx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
mov ecx, ecx
shr rax, 0x20
imul r9, rax, 0xf4240
mov rax, r9
div r8
mov rax, rdx
shl rax, 0x20
imul rdx, rcx, 0xf4240
add rax, rdx
xor edx, edx
div r8
xor edx, edx
mov rcx, rax
mov rax, r9
div r8
shl rax, 0x20
add rcx, rax
mov qword [rbx + 0xe60], rcx
test byte [rdi + 0xc8], 2
je 0x140039796
mov rcx, qword [rbx + 0xf38]
test rcx, rcx
je 0x14003977d
cmp dword [rbx], 3
jne 0x14003977d
cmp dword [rdi + 0x1c], 1
ja 0x14003977d
cmp word [rdi + 0x22], r15w
jbe 0x14003977d
mov rax, qword [rdi + 0x38]
movups xmm0, xmmword [rax + 6]
movups xmmword [rcx + 2], xmm0
movups xmm1, xmmword [rax + 0x16]
or byte [rcx + 1], 1
movups xmmword [rcx + 0x12], xmm1
mov qword [rbx + 0xf38], r15
lea rcx, [rdi + 0x270]
mov edx, 2
call fcn.140042460
mov rcx, rdi
call fcn.140036f20
test byte [rdi + 0xc8], 0x40
je 0x140039ab4
test byte [0x1400f8b39], 0x40
je 0x1400397e6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], rbx
mov qword [rbp + 0xe0], rax
lea rdx, [0x1400cfee0]
lea rax, [rbp + 0xd0]
mov qword [rbp + 0xe8], 8
mov r9d, 2
mov qword [rsp + 0x20], rax
call fcn.140001460
cmp dword [rbx], 4
jne 0x1400398e3
test byte [0x1400f8b3b], 0x80
je 0x14003986b
lea r9, str.Handshake_confirmed__server_
mov r8, r12
mov edx, 0x80
lea rcx, [rbp + 0x270]
call fcn.1400015d0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x270]
mov rax, r12
mov qword [rbp - 8], 8
inc rax
cmp byte [rcx + rax], r15b
jne 0x140039833
inc eax
mov dword [rbp + 0xc], r15d
mov dword [rbp + 8], eax
lea rcx, [rbp + 0x270]
lea rax, [rbp - 0x20]
mov qword [rbp], rcx
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, [0x1400d0508]
call fcn.140001460
lea rcx, [rbx + 0xd58]
mov edx, 0x2000
call fcn.140042460
or byte [rdi - 0x9f6], 1
mov edx, 2
mov rcx, rdi
call fcn.140037f50
mov rcx, qword [rbx + 0x4f0]
mov rax, qword [rcx]
lea rsi, [rax - 0x18]
mov rax, qword [rax]
mov qword [rcx], rax
test byte [0x1400f8b3a], 4
je 0x1400398d1
mov r9, qword [rsi + 0x30]
lea rax, [rsi + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400cff80]
movzx eax, byte [rsi + 0x29]
mov r8, rbx
mov byte [rsp + 0x20], al
call fcn.140013a30
mov rcx, qword [0x1400f8a70]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
or byte [rbx + 0xf0], 8
call fcn.140001640
lock inc qword [rax + 0x100]
test byte [rbx + 0xf3], 1
je 0x140039947
mov rax, qword [rbx + 0x4f0]
xor cl, cl
test rax, rax
je 0x14003991a
nop
mov rax, qword [rax]
inc cl
test rax, rax
jne 0x140039910
movzx r14d, byte [rbx + 0x106]
cmp cl, r14b
jae 0x140039947
xor sil, sil
sub r14b, cl
je 0x140039947
nop
xor edx, edx
mov rcx, rbx
call fcn.1400165e0
test rax, rax
je 0x140039947
inc sil
cmp sil, r14b
jb 0x140039930
cmp dword [rbx], 3
jne 0x140039973
mov rcx, qword [rbx + 0x50]
mov rax, qword [rdi + 0x50]
lea rdx, [rcx + 0xda]
movzx ecx, word [rcx + 0xd8]
movzx r8d, byte [rax]
lea r9, [rax + 1]
call fcn.140026dd0
mov qword [rdi + 0x50], rax
mov rcx, qword [rdi + 0x50]
movzx r8d, byte [rdi + 0x10]
shr r8b, 1
and r8b, 1
mov dword [rsp + 0x60], r15d
test byte [0x1400f8b3c], 1
mov byte [rsp + 0x68], r8b
movzx eax, byte [rcx]
mov byte [rsp + 0x69], al
lea rax, [rcx + 1]
mov qword [rsp + 0x70], rax
je 0x140039a36
movzx eax, r8b
lea r9, str.Indicating_QUIC_CONNECTION_EVENT_CONNECTED__Resume_hhu_
mov r8, r12
mov dword [rsp + 0x20], eax
mov edx, 0x80
lea rcx, [rbp + 0x2f0]
call fcn.1400015d0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], rbx
mov qword [rbp + 0x90], rax
lea rax, [rbp + 0x2f0]
mov qword [rbp + 0x98], 8
inc r12
cmp byte [rax + r12], r15b
jne 0x1400399f0
lea rax, [rbp + 0x2f0]
mov dword [rbp + 0xac], r15d
mov qword [rbp + 0xa0], rax
lea rdx, [0x1400d0190]
lea rax, [rbp + 0x80]
inc r12d
mov r9d, 3
mov qword [rsp + 0x20], rax
mov dword [rbp + 0xa8], r12d
call fcn.140001460
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140015f70
test byte [rdi + 0x10], 2
je 0x140039a56
call fcn.140001640
lock inc qword [rax + 0xf0]
movzx eax, byte [rdi + 0x10]
shl eax, 2
xor eax, dword [rbx + 0xe48]
and eax, 8
xor dword [rbx + 0xe48], eax
test byte [rbx + 0xe4], 4
je 0x140039a87
xor r8d, r8d
lea rdx, [rbx + 0x130]
mov rcx, rbx
call fcn.140041e00
lea rcx, [rbx + 0x148]
mov rdx, rbx
call fcn.140051400
cmp dword [rbx], 4
jne 0x140039ab4
cmp dword [rdi + 0x30], r15d
je 0x140039ab4
mov eax, dword [rdi + 0x28]
cmp dword [rdi + 0xd0], eax
jne 0x140039ab4
mov rcx, rbx
call fcn.140018b90
test byte [rdi + 0xc8], 4
je 0x140039b3a
mov dil, 1
cmp byte [rbx + 0xb00], dil
jb 0x140039b3a
nop dword [rax]
movzx eax, dil
cmp qword [rbx + rax*8 + 0xb40], r15
je 0x140039b2e
movzx ecx, dil
test dil, dil
je 0x140039aff
sub ecx, 1
je 0x140039af1
cmp ecx, 1
je 0x140039af8
mov eax, 0xae0
jmp 0x140039b04
mov eax, 0xad8
jmp 0x140039b04
mov eax, 0xad0
mov rcx, qword [rax + rbx]
mov rdx, qword [rcx + 0x28]
test rdx, rdx
je 0x140039b2e
movzx r8d, byte [rcx + 4]
xor r9d, r9d
mov byte [rcx + 4], r15b
mov qword [rcx + 0x28], r15
mov rcx, rbx
mov byte [rsp + 0x20], 1
call fcn.140022470
inc dil
cmp dil, byte [rbx + 0xb00]
jbe 0x140039ad0
mov rsi, qword [rsp + 0x4b8]
mov r14, qword [rsp + 0x480]
mov r12, qword [rsp + 0x4c0]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x488
pop r15
pop rdi
pop rbx
pop rbp
ret