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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0xd0], rax
test byte [rcx - 0x670], 0x30
lea rbp, [rcx - 0x750]
movzx esi, dl
mov rdi, rcx
jne 0x180008ca9
mov rbx, qword [rcx + 0x20]
test rbx, rbx
je 0x180008beb
test byte [rbx + 0x17], 4
je 0x180008c7b
test byte [rbp + 0x121], 0x10
je 0x180008cc5
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x108], r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
movabs r14, 0xd6bf94d5e57a42bd
mov r9, qword [0x180067c48]
mov rax, rcx
shr rax, 0x20
imul r8, rax, 0xf4240
cmp r9, 0x989680
jne 0x180008da4
mov rax, r14
mul r8
shr rdx, 0x17
imul rax, rdx, 0x989680
sub r8, rax
shl r8, 0x20
mov eax, ecx
imul r10, rax, 0xf4240
add r10, r8
cmp r9, 0x989680
jne 0x180008db4
mov rax, r14
mul r10
mov r9, rdx
shr r9, 0x17
mov r8d, 1
test rbx, rbx
je 0x18000881a
mov rax, qword [rdi + 8]
cmp qword [rbx + 8], rax
jb 0x180008cee
test byte [rbp + 0x121], 4
mov eax, dword [rbp + 0x184]
je 0x180008c8c
imul ecx, dword [rdi - 0x208], 0xfa
mov r10b, 2
add ecx, dword [rbp + 0x190]
lea edx, [rax + rcx*4]
movzx ecx, byte [rdi + 0x48]
shl r8d, cl
imul edx, r8d
mov r8d, dword [rdi - 0x6c4]
cmp edx, r8d
cmovae r8d, edx
add r8d, dword [rdi + 0x30]
sub r8d, r9d
test rbx, rbx
je 0x180008cbb
imul ecx, dword [rbp + 0xa4], 0x3e8
add ecx, dword [rbx + 0x10]
sub ecx, r9d
cmp r8d, 0x7fffffff
jae 0x180008cd7
cmp ecx, 0x7fffffff
jae 0x180008cd7
mov eax, 0x10624dd3
cmp r8d, ecx
ja 0x180008ce7
mul r8d
shr edx, 6
lea ebx, [rdx + 1]
test ebx, ebx
je 0x180008cd9
test byte [0x180067c72], 0x10
jne 0x18003baf6
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
mov r10, qword [0x180067c48]
mov rax, rcx
shr rax, 0x20
imul r8, rax, 0xf4240
cmp r10, 0x989680
jne 0x180008dc4
mov rax, r14
mul r8
mov rax, r14
mov r9, rdx
mul r8
shr r9, 0x17
shr rdx, 0x17
imul rax, rdx, 0x989680
sub r8, rax
mov ecx, ecx
imul rcx, rcx, 0xf4240
shl r8, 0x20
add rcx, r8
cmp r10, 0x989680
jne 0x180008dd7
mov rax, r14
mul rcx
mov rax, rdx
shr rax, 0x17
mov ecx, ebx
xor r8d, r8d
imul r14, rcx, 0x3e8
shl r9, 0x20
mov ebx, 6
add r14, rax
add r14, r9
xor edx, edx
nop dword [rax + rax]
lea rax, [rdx + 0x38]
mov r9d, edx
add rax, rax
mov ecx, edx
cmp dword [rbp + rax*8], 2
cmovne ecx, r8d
mov r8d, ecx
cmp edx, ebx
jb 0x180008b52
lea ecx, [rdx + 1]
lea rax, [rcx + 0x38]
mov r9d, ecx
add rax, rax
cmp dword [rbp + rax*8], 2
cmove r8d, ecx
cmp ecx, ebx
jb 0x180008b65
lea ecx, [rdx + 2]
lea rax, [rcx + 0x38]
mov r9d, ecx
add rax, rax
cmp dword [rbp + rax*8], 2
cmove r8d, ecx
cmp ecx, ebx
jb 0x180008b78
lea ecx, [rdx + 3]
lea rax, [rcx + 0x38]
mov r9d, ecx
add rax, rax
cmp dword [rbp + rax*8], 2
cmove r8d, ecx
cmp ecx, ebx
jb 0x180008b8b
lea ecx, [rdx + 4]
lea rax, [rcx + 0x38]
mov r9d, ecx
add rax, rax
cmp dword [rbp + rax*8], 2
cmove r8d, ecx
cmp ecx, ebx
jb 0x180008b9e
lea ecx, [rdx + 5]
lea rax, [rcx + 0x38]
mov r9d, ecx
add rax, rax
cmp dword [rbp + rax*8], 2
cmove r8d, ecx
cmp ecx, ebx
jb 0x180008bb1
add edx, 6
cmp edx, 6
jb 0x180008960
cmp ebx, r8d
jb 0x180008c10
mov ecx, r8d
lea eax, [r8 + 1]
shl rcx, 4
add rcx, rbp
cmp ebx, eax
ja 0x180008d46
mov qword [rcx + 0x388], r14
mov ebx, r8d
test ebx, ebx
jne 0x180008b27
mov rbx, qword [rbp + 0x40]
lea r8, [rbp + 0x30]
mov rcx, qword [r8]
add rbx, 0x18
mov rdi, qword [rbp + 0x388]
test rcx, rcx
je 0x180008d91
mov rax, qword [rbp + 0x38]
mov qword [rax], rcx
mov qword [rcx + 8], rax
cmp rdi, 0xffffffffffffffff
je 0x18003bb15
mov r9d, dword [rbx + 0x18]
movabs r10, 0x624dd2f1a9fbe77
mov rax, r10
mov rcx, rdi
mul rdi
mov rax, r10
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
cmp r9, 0x20
jne 0x180008de4
and ecx, 0x1f
mov eax, ecx
shl rax, 4
add rax, qword [rbx + 0x20]
mov rcx, qword [rax + 8]
cmp rcx, rax
jne 0x180008bd0
mov rax, qword [rcx]
mov qword [r8], rax
mov qword [r8 + 8], rcx
mov qword [rax + 8], r8
mov qword [rcx], r8
test byte [0x180067c76], 1
jne 0x18003bb79
cmp rdi, qword [rbx]
jb 0x180008c62
cmp rbp, qword [rbx + 0x10]
jne 0x180008b17
mov rcx, rbx
call fcn.180008680
mov eax, dword [rbx + 0x18]
shl eax, 5
cmp qword [rbx + 8], rax
ja 0x18003bbfa
mov r14, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180028c10
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret
add r9, r9
cmp r14, qword [rbp + r9*8 + 0x388]
cmovb ebx, edx
jmp 0x180008980
add r9, r9
cmp r14, qword [rbp + r9*8 + 0x388]
cmovb ebx, ecx
jmp 0x18000899e
add r9, r9
cmp r14, qword [rbp + r9*8 + 0x388]
cmovb ebx, ecx
jmp 0x1800089bc
add r9, r9
cmp r14, qword [rbp + r9*8 + 0x388]
cmovb ebx, ecx
jmp 0x1800089da
add r9, r9
cmp r14, qword [rbp + r9*8 + 0x388]
cmovb ebx, ecx
jmp 0x1800089f8
add r9, r9
cmp r14, qword [rbp + r9*8 + 0x388]
cmovb ebx, ecx
jmp 0x180008a16
cmp rdi, qword [rcx + 0x358]
ja 0x180008ae2
mov rcx, qword [rcx + 8]
cmp rcx, rax
jne 0x180008bd0
jmp 0x180008ae2
cmp dword [rbp], 4
jne 0x180008c54
test byte [0x180067c72], 0x10
jne 0x18003bc08
mov edx, 2
mov rcx, rbp
call fcn.18000c060
jmp 0x180008b2f
sub r8d, ebx
mov esi, ebx
shl rsi, 4
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 0x390]
shl r8, 4
add rdx, rsi
mov edi, ebx
add rcx, rsi
call fcn.18002a1d0
lea rax, [rdi + 0x38]
mov qword [rsi + rbp + 0x388], r14
add rax, rax
mov dword [rbp + rax*8], 2
jmp 0x180008a4b
cmp dword [rbp + 0x7d4], 3
je 0x180008bf1
jmp 0x180008772
mov qword [rbx], rdi
mov qword [rbx + 0x10], rbp
test byte [0x180067c76], 1
je 0x180008b17
jmp 0x18003bbb7
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180008768
jmp 0x180008beb
mov ecx, dword [rbp + 0x190]
lea r8d, [rax + rcx*4]
movzx ecx, byte [rdi + 0x48]
shl r8d, cl
add r8d, dword [rdi + 0x30]
xor r10b, r10b
jmp 0x180008860
test byte [0x180067c72], 0x10
je 0x180008bfe
jmp 0x18003bc08
mov ecx, 0x7ffffffe
jmp 0x18000887c
cmp dword [rbp + 0x180], 0x4b
jae 0x18000877f
jmp 0x180008bf1
xor ebx, ebx
test sil, sil
je 0x1800088b4
jmp 0x18003bae8
mul ecx
jmp 0x1800088a6
movzx ecx, byte [rbx + 0x17]
and ecx, 3
cmp ecx, 3
jne 0x180008d33
mov eax, 2
cmp eax, dword [rdi + 0x10]
jg 0x18000881a
mov ecx, dword [rbp + 0x184]
movzx r10d, r8b
mov eax, dword [rbp + 0x194]
cmp ecx, eax
cmovbe ecx, eax
mov r8d, ecx
shr r8d, 3
add r8d, dword [rbx + 0x10]
sub r8d, r9d
add r8d, ecx
jmp 0x18000886c
test ecx, ecx
je 0x180008d8a
sub ecx, r8d
je 0x180008cfa
cmp ecx, r8d
jne 0x180008cfa
mov eax, r8d
jmp 0x180008cff
mov eax, ebx
lea rdx, [rcx + 0x390]
sub eax, r8d
add rcx, 0x380
lea r8d, [rax - 1]
shl r8, 4
call fcn.18002a1d0
lea eax, [rbx - 1]
mov ecx, eax
add rax, 0x38
add rax, rax
add rcx, rcx
mov dword [rbp + rax*8], 2
mov qword [rbp + rcx*8 + 0x388], r14
jmp 0x180008a4b
xor eax, eax
jmp 0x180008cff
cmp rdi, 0xffffffffffffffff
je 0x18003bb19
inc qword [rbx + 8]
jmp 0x180008a87
mov rax, r8
xor edx, edx
div r9
mov r8, rdx
jmp 0x1800087d7
xor edx, edx
mov rax, r10
div r9
mov r9, rax
jmp 0x180008801
mov rax, r8
xor edx, edx
div r10
mov r8, rdx
mov r9, rax
jmp 0x180008914
xor edx, edx
mov rax, rcx
div r10
jmp 0x18000893e
mov rax, rcx
xor edx, edx
div r9
mov rcx, rdx
jmp 0x180008acb
mov rcx, rdi
call fcn.180002b78
nop
jmp 0x180008b27
movzx eax, word [rdi + 0x48]
movzx r9d, r10b
mov word [rsp + 0x28], ax
mov r8, rbp
mov dword [rsp + 0x20], ebx
call fcn.18004a0e4
nop
jmp 0x1800088c1
dec qword [rbx + 8]
mov qword [r8], 0
test byte [0x180067c76], 1
je 0x18003bb61
mov qword [rsp + 0x28], rbp
lea r9, str._time___p__Removing_Connection__p.
mov edx, 0x80
mov qword [rsp + 0x20], rbx
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
call fcn.180042088
lea r8, [rsp + 0x50]
lea rdx, [0x180056df8]
call fcn.1800417fc
cmp rbp, qword [rbx + 0x10]
jne 0x180008b27
mov rcx, rbx
call fcn.180008680
nop
jmp 0x180008b27
mov qword [rsp + 0x28], rbp
lea r9, str._time___p__Updating_Connection__p.
mov edx, 0x80
mov qword [rsp + 0x20], rbx
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
call fcn.180042088
lea r8, [rsp + 0x50]
lea rdx, [0x180056df8]
call fcn.1800417fc
nop
jmp 0x180008b00
mov qword [rsp + 0x30], rbp
lea r9, str._time___p__Next_Expiration___llu___p.
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x50]
mov edx, 0x80
mov qword [rsp + 0x20], rbx
mov r8, 0xffffffffffffffff
call fcn.180042088
lea r8, [rsp + 0x50]
lea rdx, [0x180056df8]
call fcn.1800417fc
nop
jmp 0x180008b17
mov rcx, rbx
call fcn.18004adf0
nop
jmp 0x180008b27
mov r8, rbp
lea rdx, [0x18005af68]
call fcn.1800420e4
nop
jmp 0x180008bfe