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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rdi, rcx
xor r15d, r15d
lea rcx, [0x1400c7f78]
mov esi, r15d
mov r12d, r15d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov rbx, qword [0x1400c7ce0]
test rbx, rbx
je 0x1400893e7
cmp qword [rbx], rdi
je 0x1400893e2
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400893d4
test rbx, rbx
jne 0x140089428
mov edx, 0x20
lea ecx, [rdx + 0x20]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400896d7
mov qword [rax], rdi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov rcx, qword [0x1400c7ce0]
sub eax, 0xea61
mov dword [rbx + 8], eax
mov qword [rbx + 0xc], r15
mov qword [rbx + 0x18], rcx
mov qword [0x1400c7ce0], rbx
inc dword [rbx + 0xc]
inc dword [rbx + 0x10]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [rbx + 8]
cmp eax, 0xea60
jbe 0x1400896d7
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rbx + 8], eax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.1400892b8
mov r13d, eax
test eax, eax
je 0x14008948b
lea rax, [0x140000000]
cmp rdi, rax
jb 0x14008948b
mov edx, dword [rsp + 0x30]
add rdx, rax
cmp rdx, rax
jbe 0x14008948b
cmp rdi, rdx
ja 0x14008948b
sub edi, eax
jmp 0x14008948e
mov edi, r15d
mov dword [rsp + 0x44], edi
cmp dword [rbx + 0x10], 1
jne 0x14008957a
lea rcx, [0x1400c64e8]
call fcn.14004dc84
test eax, eax
jne 0x14008957a
xor edx, edx
lea rcx, [0x1400c64e8]
call fcn.14001fb84
test al, al
je 0x14008956e
mov dl, byte [rbp + 0x20]
mov esi, 1
mov dword [rsp + 0x58], 0x1d1727a6
mov r12d, esi
mov dword [rsp + 0x5c], 0x4e2792c8
mov r14d, r15d
mov dword [rsp + 0x60], 0x8b0f69bc
mov dword [rsp + 0x64], 0x9d548c45
test dl, dl
je 0x140089534
mov rdi, r15
lea r15, [rbp + 0x20]
movsx ecx, dl
call qword [sym.imp.msvcrt.dll_toupper]
add byte [rsp + rdi + 0x58], al
inc r15
lea ecx, [r14 + 1]
cmp ecx, 0x10
lea rax, [rdi + 1]
mov dl, byte [r15]
sbb rdi, rdi
and rdi, rax
cmp ecx, 0x10
sbb r14d, r14d
and r14d, ecx
cmp dl, 0
jne 0x1400894ff
xor r15d, r15d
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventRegister]
test eax, eax
jne 0x14008956e
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventProviderEnabled]
mov rcx, qword [rsp + 0x38]
test al, al
cmovne esi, r15d
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
lea rcx, [0x1400c64e8]
call fcn.14002ac1c
lea rdi, [0x1400c64b0]
mov rcx, rdi
call fcn.14004dc84
test eax, eax
jne 0x1400896bf
cmp dword [0x1400c64b0], 5
jbe 0x1400896b7
movabs rdx, 0x400000000000
mov rcx, rdi
call fcn.14001f6b8
test al, al
je 0x1400896b7
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0xa
mov qword [rbp - 0x70], rax
lea rdx, [rbp + 0x20]
lea rax, [rsp + 0x44]
mov qword [rbp - 0x68], 4
mov qword [rbp - 0x60], rax
mov eax, r13d
neg eax
mov qword [rbp - 0x58], 4
lea rax, [rsp + 0x34]
mov qword [rbp - 0x48], 4
sbb ecx, ecx
mov qword [rbp - 0x50], rax
and dword [rsp + 0x34], ecx
mov eax, r13d
neg eax
mov qword [rbp - 0x38], 4
lea rax, [rsp + 0x30]
sbb ecx, ecx
mov qword [rbp - 0x40], rax
and dword [rsp + 0x30], ecx
lea rax, [0x140098dc8]
test r13d, r13d
lea rcx, [rbp - 0x30]
cmove rdx, rax
call fcn.14004dc94
mov ecx, dword [rbx + 0xc]
lea rax, [rsp + 0x48]
mov qword [rbp - 0x20], rax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x4c]
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x50]
mov qword [rbp], rax
lea rax, [rsp + 0x38]
mov qword [rbp + 0x10], rax
mov dword [rsp + 0x48], ecx
mov qword [rbp - 0x18], 4
mov qword [rbp - 8], 4
mov dword [rsp + 0x50], esi
mov qword [rbp + 8], 4
mov dword [rsp + 0x38], r12d
mov qword [rbp + 0x18], 4
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1400a27e6]
xor r8d, r8d
mov dword [rsp + 0x20], SafeArrayGetDim
mov rcx, rdi
call fcn.1400202f4
mov rcx, rdi
call fcn.14002ac1c
test r12d, r12d
je 0x1400896d3
test esi, esi
je 0x1400896d3
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov dword [rbx + 0xc], r15d
lea rcx, [0x1400c7f78]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14002c150
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret