Function at 0x100166e0
Capabilities:
Check for time delay via queryperformancecounter
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov bl, byte [eax + 0x22]
mov edi, ecx
mov dword [ebp - 0xd0], edx
xor dl, dl
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xa8], edx
test bl, bl
je 0x10016831
mov edi, dword [edi + 0x360]
test edi, edi
je 0x1001682f
nop
cmp bl, byte [edi + 9]
jne 0x1001678c
mov ecx, dword [eax + 0x14]
lea edx, [edi + 0x18]
movzx esi, bl
sub esi, 4
jb 0x10016754
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10016759
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10016743
cmp esi, 0xfffffffc
je 0x100167a9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10016786
cmp esi, 0xfffffffd
je 0x100167a9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10016786
cmp esi, 0xfffffffe
je 0x100167a9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10016786
cmp esi, 0xffffffff
je 0x100167a9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100167a9
mov eax, dword [ebp - 0xc8]
mov edi, dword [edi]
test edi, edi
jne 0x10016730
mov edi, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xc8]
jmp 0x10016833
test byte [edi + 8], 0x10
jne 0x10016792
test byte [0x10059abb], 0x80
mov esi, dword [ebp - 0xc8]
je 0x10016808
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x2d4]
push eax
mov dl, bl
call fcn.10004a30
add esp, 4
push eax
push str.First_usage_of_SrcCid:__s
push 0xffffffffffffffff
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.100015f0
add esp, 0x14
lea eax, [ebp - 0x8c]
mov edx, 0x1004ccf8
push eax
push dword [ebp - 0xcc]
call fcn.10001280
add esp, 8
or byte [edi + 8], 0x10
mov eax, 1
mov edx, dword [ebp - 0xa8]
test byte [edi + 8], 1
mov edi, dword [ebp - 0xcc]
movzx edx, dl
cmove edx, eax
mov dword [ebp - 0xa8], edx
jmp 0x10016833
mov edi, ecx
mov esi, eax
mov ebx, dword [ebp - 0xd0]
mov ecx, dword [ebx]
mov al, byte [ecx + 1]
test al, 0x10
jne 0x1001697c
or al, 0x10
mov byte [ecx + 1], al
mov edx, dword [ebx]
test byte [edx + 1], 2
jne 0x10016994
mov eax, dword [edx + 0x68]
test eax, eax
je 0x1001686d
cmp byte [ebp - 0xa8], 0
je 0x100168d4
cmp byte [eax + 0x19], 0
je 0x100168d4
mov eax, dword [edi + 0x364]
lea ecx, [edi + 0x364]
cmp eax, ecx
je 0x1001688c
nop dword [eax]
test byte [eax + 0x18], 0x28
je 0x100168c8
mov eax, dword [eax]
cmp eax, ecx
jne 0x10016880
test byte [0x10059abb], 4
je 0x100168a8
push str.No_unused_CID_for_new_path
push edi
mov edx, 0x1004c7e0
call fcn.10001280
add esp, 8
mov eax, dword [ebx]
and byte [eax + 1], 0xef
mov eax, dword [ebx]
mov dword [eax + 0x68], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
mov dword [edx + 0x68], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
or byte [eax + 0x18], 8
mov eax, dword [ebx]
or byte [eax + 2], 1
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
call fcn.10001100
mov ecx, dword [ebx]
add esp, 8
mov dword [ecx + 0x94], eax
mov eax, dword [ebx]
push 2
push 8
add eax, 0x8c
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov al, byte [edi + 0x101]
test al, 0x20
je 0x1001696a
or byte [edi + 0x102], 1
and al, 0xdf
mov byte [edi + 0x101], al
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
call fcn.10001100
add esp, 8
mov dword [edi + 0x194], eax
lea eax, [edi + 0x18c]
push 2
push 8
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
lea ecx, [edi + 0xa70]
mov edx, 0x400
call fcn.1002f8f0
jmp 0x10016994
test dl, dl
je 0x10016994
test al, 4
jne 0x1001698f
mov edx, ecx
mov ecx, edi
call fcn.1000fdc0
jmp 0x10016994
and al, 0xfb
mov byte [ecx + 1], al
mov al, byte [esi + 0x29]
and al, 0xc
cmp al, 0xc
jne 0x10016b99
mov edx, dword [ebx]
mov dword [ebp - 0xc8], edx
mov bl, byte [edx + 1]
test bl, 2
jne 0x10016b99
lea esi, [edi + 0x100]
xor bh, bh
mov dword [ebp - 0xa8], esi
cmp edx, esi
jne 0x100169d2
or bl, 2
mov byte [edx + 1], bl
jmp 0x10016ab5
movzx eax, word [edx + 0x30]
cmp ax, word [edi + 0x130]
jne 0x10016a65
cmp eax, 2
jne 0x100169f6
mov eax, dword [edx + 0x34]
cmp eax, dword [edi + 0x134]
sete al
jmp 0x10016a33
mov ecx, dword [ebp - 0xc8]
lea edx, [edi + 0x138]
add ecx, 0x38
mov esi, 0xc
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10016a25
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10016a10
mov al, 1
jmp 0x10016a27
xor al, al
mov edx, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xa8]
test al, al
je 0x10016a65
mov ecx, 0x26
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xa4]
or bl, 2
shr eax, 8
mov bh, 1
and al, 0xfd
mov byte [ebp - 0xa3], al
xor al, bl
and al, 0x40
xor al, bl
mov byte [edx + 1], al
jmp 0x10016a8b
mov ecx, 0x26
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xa4]
xor bh, bh
shr eax, 8
and al, 0xfd
or bl, 2
mov byte [ebp - 0xa3], al
mov byte [edx + 1], bl
mov edi, dword [ebp - 0xa8]
mov ecx, 0x26
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x26
lea esi, [ebp - 0xa4]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xa8]
test byte [0x10059abb], 0x80
je 0x10016af3
movzx eax, bh
push eax
movzx eax, byte [esi]
push eax
push str.Path__hhu__Set_active__rebind_hhu_
push 0xffffffffffffffff
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.100015f0
lea eax, [ebp - 0x8c]
mov edx, 0x1004ccf8
push eax
push edi
call fcn.10001280
add esp, 0x20
test bh, bh
jne 0x10016b13
mov esi, dword [edi + 0x694]
lea eax, [edi + 0x688]
push 0
push eax
mov ecx, esi
call dword [0x1004b298]
call esi
add esp, 8
mov esi, dword [ebp - 0xd0]
lea eax, [edi + 0x100]
mov dword [esi], eax
test byte [0x10059ab9], 0x40
je 0x10016b41
lea eax, [edi + 0x130]
mov edx, 0x1004c9a0
push eax
push 0x1c
push edi
call fcn.10004960
add esp, 0xc
mov eax, dword [esi]
add eax, 0x30
mov dword [ebp - 0xc4], 5
test byte [0x10059abc], 1
mov dword [ebp - 0xbc], eax
je 0x10016b8c
push str.Indicating_QUIC_CONNECTION_EVENT_PEER_ADDRESS_CHANGED
push 0xffffffffffffffff
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.100015f0
lea eax, [ebp - 0x8c]
mov edx, 0x1004c9b0
push eax
push edi
call fcn.10001280
add esp, 0x18
lea edx, [ebp - 0xc4]
mov ecx, edi
call fcn.1000f960
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100483f7
mov esp, ebp
pop ebp
ret