Function at 0x1400e4040
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 [0x1401d4618]
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.14003c3cc
nop
lea rdx, [rbp - 0x38]
mov rcx, qword [rax]
call fcn.14002022c
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x40]
mov rcx, qword [rax]
call fcn.14001afd4
nop
lea rdx, [0x14025d150]
cmp qword [0x14025d168], 8
cmovae rdx, qword [0x14025d150]
cmp qword [rax + 0x18], 8
jb 0x1400e40eb
mov rax, qword [rax]
xor r9d, r9d
or r15, 0xffffffffffffffff
mov r8, r15
mov rcx, rax
call fcn.1400076bc
test eax, eax
sete r14b
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.14000867c
nop
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400e4147
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e4147
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e4147
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400e417b
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e417b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e417b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
mov rcx, qword [rdi]
call fcn.140075c04
xor ebx, ebx
test al, al
jne 0x1400e453e
mov rcx, qword [rdi]
call fcn.140075be8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, eax
test sil, sil
je 0x1400e41ed
call fcn.140041eb8
mov rcx, rax
lea rdx, [rbp + 0x80]
call fcn.140045750
nop
mov dword [rsp + 0x40], 1
lea r8, [r13 + 0xe0]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14000ffc4
nop
mov dword [rsp + 0x40], 3
mov rcx, rax
call fcn.1400a68bc
test al, al
mov sil, 1
jne 0x1400e41f0
mov sil, bl
test byte [rsp + 0x40], 2
je 0x1400e420b
and dword [rsp + 0x40], 0xfffffffd
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.14000867c
nop
test byte [rsp + 0x40], 1
je 0x1400e4223
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.14000867c
test r12b, r12b
je 0x1400e43cc
test r14b, r14b
je 0x1400e43cc
xorps xmm0, xmm0
movss dword [rsp + 0x4c], xmm0
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x60]
call fcn.1400407b0
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.140008bbc
nop
lea rbx, [r13 + 0xe0]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14005d1f8
cmp rax, rbx
je 0x1400e42a7
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140008a84
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.14000867c
call fcn.14004b2c8
mov rcx, rax
lea rdx, [rbp - 0x18]
call fcn.14004c990
nop
lea r8, [rsp + 0x60]
mov edx, 2
mov rcx, qword [rax]
call fcn.14008ed84
cmp eax, 3
setne r14b
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x1400e4314
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400e4314
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400e4314
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 0x1400e4395
test rcx, rcx
je 0x1400e4342
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 3
call fcn.140089b20
mov qword [rsp + 0x78], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x68]
call fcn.140044d20
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 0x1400e438e
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400e438e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x1400e438e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x1400e4576
test rcx, rcx
je 0x1400e43b7
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 3
call fcn.140089b20
mov qword [rsp + 0x78], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x68]
call fcn.140044d20
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 byte [rsp + 0x20], bl
mov r8b, r12b
mov dl, sil
mov rcx, qword [rdi]
call fcn.140075d08
test al, al
je 0x1400e43fe
mov dl, sil
mov rcx, qword [rdi]
call fcn.140075c04
test al, al
jne 0x1400e453a
mov rcx, qword [rdi]
call fcn.140075be8
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.1400a2f5c
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x1400e4438
mov rsi, qword [rax]
lea rcx, [rbp + 0xc0]
call fcn.1400f27cc
mov rbx, rax
lea rcx, [r13 + 8]
lea rdx, [rbp - 8]
call fcn.1400c2680
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14006f440
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.1400b4934
mov rbx, qword [rbp + 0x18]
test rbx, rbx
je 0x1400e44de
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400e44de
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x1400e44de
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.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x110]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xe8]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xc8]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xa0]
call fcn.14000867c
nop
jmp 0x1400e435a
or r15, 0xffffffffffffffff
mov rbx, qword [rdi + 8]
xor eax, eax
test rbx, rbx
je 0x1400e4574
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1400e4574
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1400e4574
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.140121d80
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret