Function at 0x1400e8d00
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 - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov sil, r9b
mov dword [rsp + 0x54], r8d
mov rdi, rdx
mov r13, rcx
mov qword [rbp - 0x18], rdx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
cmp r8d, 2
sete r12b
mov dword [rsp + 0x50], 0x20
lea rdx, [rbp - 0x28]
call fcn.14005e8b0
nop
lea rdx, [rbp - 0x38]
mov rcx, qword [rax]
call fcn.140021f4c
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x80]
mov rcx, qword [rax]
call fcn.14001d864
nop
lea rdx, [0x140271f78]
cmp qword [0x140271f90], 8
cmovae rdx, qword [0x140271f78]
cmp qword [rax + 0x18], 8
jb 0x1400e8dae
mov rax, qword [rax]
xor r9d, r9d
or r15, 0xffffffffffffffff
mov r8, r15
mov rcx, rax
call fcn.140006f18
test eax, eax
sete r14b
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.140007eb8
nop
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400e8e0d
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e8e0d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e8e0d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400e8e42
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e8e42
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e8e42
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor edx, edx
mov rcx, qword [rdi]
call fcn.14005f518
xor ebx, ebx
test al, al
jne 0x1400e9233
mov rcx, qword [rdi]
call fcn.14005f4fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, eax
test sil, sil
je 0x1400e8eb4
call fcn.140045480
mov rcx, rax
lea rdx, [rbp + 0xa0]
call fcn.1400493c8
nop
mov dword [rsp + 0x40], 1
lea r8, [r13 + 0xd8]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140037aa4
nop
mov dword [rsp + 0x40], 3
mov rcx, rax
call fcn.1400aba78
test al, al
mov sil, 1
jne 0x1400e8eb7
mov sil, bl
test byte [rsp + 0x40], 2
je 0x1400e8ed2
and dword [rsp + 0x40], 0xfffffffd
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.140007eb8
nop
test byte [rsp + 0x40], 1
je 0x1400e8eea
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xa0]
call fcn.140007eb8
test r12b, r12b
je 0x1400e9095
test r14b, r14b
je 0x1400e9095
xorps xmm0, xmm0
movss dword [rsp + 0x48], xmm0
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140042b78
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.1400083f8
nop
lea rbx, [r13 + 0xd8]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140077328
cmp rax, rbx
je 0x1400e8f6e
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.1400082c0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.140007eb8
call fcn.14004ff5c
mov rcx, rax
lea rdx, [rbp - 0x48]
call fcn.140051510
nop
lea r8, [rsp + 0x60]
mov edx, 2
mov rcx, qword [rax]
call fcn.1400789e0
cmp eax, 3
setne r14b
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x1400e8fdc
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400e8fdc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400e8fdc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor ebx, ebx
mov rcx, qword [rsp + 0x78]
test r14b, r14b
je 0x1400e905e
test rcx, rcx
je 0x1400e900a
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 3
call fcn.140029c24
mov qword [rsp + 0x78], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x68]
call fcn.140048664
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rbx, qword [rdi + 8]
xor eax, eax
test rbx, rbx
je 0x1400e9057
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400e9057
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x1400e9057
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor al, al
jmp 0x1400e926c
test rcx, rcx
je 0x1400e9080
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 3
call fcn.140029c24
mov qword [rsp + 0x78], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x68]
call fcn.140048664
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rsp + 0x54], 1
sete r9b
mov r8b, r12b
mov dl, sil
mov rcx, qword [rdi]
call fcn.14005f618
test al, al
je 0x1400e90c3
mov dl, sil
mov rcx, qword [rdi]
call fcn.14005f518
test al, al
jne 0x1400e922f
mov rcx, qword [rdi]
call fcn.14005f4fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
mov dword [rsp + 0x4c], eax
lea r8, [rsp + 0x4c]
lea rdx, str.Unable_to_obtain_writer_lock._TimeSpent:_d
lea rcx, [rbp + 0x40]
call fcn.1400192f8
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x1400e90fa
mov rsi, qword [rax]
lea rcx, [rbp + 0xc0]
call fcn.1400f6db0
mov rbx, rax
lea rcx, [r13 + 8]
lea rdx, [rbp + 0x10]
call fcn.14005f104
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400584e0
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.1400573a0
nop
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x1400e91a1
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400e91a1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x1400e91a1
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.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x110]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xe8]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xc8]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.140007eb8
nop
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400e922a
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400e922a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x1400e922a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400e9057
or r15, 0xffffffffffffffff
mov rbx, qword [rdi + 8]
xor eax, eax
test rbx, rbx
je 0x1400e926a
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e926a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e926a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov al, 1
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret