Function at 0x1400e9664
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x260
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov sil, r9b
mov dword [rsp + 0x58], r8d
mov rdi, rdx
mov r13, rcx
mov qword [rbp - 0x40], rdx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
cmp r8d, 2
sete r12b
mov dword [rsp + 0x48], 0x20
lea rdx, [rbp - 0x28]
call fcn.140060690
nop
lea rdx, [rbp - 0x38]
mov rcx, qword [rax]
call fcn.140021aec
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x40]
mov rcx, qword [rax]
call fcn.14001e504
nop
lea rdx, [0x140260038]
cmp qword [0x140260050], 8
cmovae rdx, qword [0x140260038]
cmp qword [rax + 0x18], 8
jb 0x1400e970f
mov rax, qword [rax]
xor r9d, r9d
or r15, 0xffffffffffffffff
mov r8, r15
mov rcx, rax
call fcn.140006a68
test eax, eax
sete r14b
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.140007a08
nop
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400e976b
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e976b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e976b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400e979f
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e979f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e979f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
mov rcx, qword [rdi]
call fcn.14006124c
xor ebx, ebx
test al, al
jne 0x1400e9b5e
mov rcx, qword [rdi]
call fcn.140061230
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, eax
test sil, sil
je 0x1400e9811
call fcn.140047e70
mov rcx, rax
lea rdx, [rbp + 0x80]
call fcn.14004bc48
nop
mov dword [rsp + 0x40], 1
lea r8, [r13 + 0xd8]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140011680
nop
mov dword [rsp + 0x40], 3
mov rcx, rax
call fcn.1400aaca0
test al, al
mov sil, 1
jne 0x1400e9814
mov sil, bl
test byte [rsp + 0x40], 2
je 0x1400e982f
and dword [rsp + 0x40], 0xfffffffd
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.140007a08
nop
test byte [rsp + 0x40], 1
je 0x1400e9847
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.140007a08
test r12b, r12b
je 0x1400e99f0
test r14b, r14b
je 0x1400e99f0
xorps xmm0, xmm0
movss dword [rsp + 0x4c], xmm0
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x60]
call fcn.140045600
nop
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
mov r8d, 0xf
lea rdx, str.updatetoversion
lea rcx, [rbp + 0x20]
call fcn.140007f48
nop
lea rbx, [r13 + 0xd8]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140078210
cmp rax, rbx
je 0x1400e98cb
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140007e10
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.140007a08
call fcn.14005241c
mov rcx, rax
lea rdx, [rbp - 0x18]
call fcn.140053ae4
nop
lea r8, [rsp + 0x60]
mov edx, 2
mov rcx, qword [rax]
call fcn.1400797e0
cmp eax, 3
setne r14b
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x1400e9938
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400e9938
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400e9938
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ebx, ebx
mov rcx, qword [rsp + 0x78]
test r14b, r14b
je 0x1400e99b9
test rcx, rcx
je 0x1400e9966
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 3
call fcn.140073cc0
mov qword [rsp + 0x78], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x68]
call fcn.14004af00
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
xor eax, eax
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400e99b2
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400e99b2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x1400e99b2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x1400e9b96
test rcx, rcx
je 0x1400e99db
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 3
call fcn.140073cc0
mov qword [rsp + 0x78], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x68]
call fcn.14004af00
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rsp + 0x58], 1
sete r9b
mov r8b, r12b
mov dl, sil
mov rcx, qword [rdi]
call fcn.14006134c
test al, al
je 0x1400e9a1e
mov dl, sil
mov rcx, qword [rdi]
call fcn.14006124c
test al, al
jne 0x1400e9b5a
mov rcx, qword [rdi]
call fcn.140061230
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
mov dword [rsp + 0x50], eax
lea r8, [rsp + 0x50]
lea rdx, str.Unable_to_obtain_writer_lock._TimeSpent:_d
lea rcx, [rbp + 0xa0]
call fcn.14001ac4c
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x1400e9a58
mov rsi, qword [rax]
lea rcx, [rbp + 0xc0]
call fcn.1400f7cb0
mov rbx, rax
lea rcx, [r13 + 8]
lea rdx, [rbp - 8]
call fcn.14004bf18
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14005a420
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 0x60], rcx
lea rcx, str.ContextData
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rsi
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, str.TaskUpdateApply::TryAcquireWriterLock
mov edx, 0x3ac
mov ecx, 0x6d2707
mov r8d, 0x32
call fcn.1400592f8
mov rbx, qword [rbp + 0x18]
test rbx, rbx
je 0x1400e9afe
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400e9afe
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x1400e9afe
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x130]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x110]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xe8]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xc8]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xa0]
call fcn.140007a08
nop
jmp 0x1400e997e
or r15, 0xffffffffffffffff
mov rbx, qword [rdi + 8]
xor eax, eax
test rbx, rbx
je 0x1400e9b94
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e9b94
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e9b94
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret