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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rcx, qword [0x14011f510]
test rcx, rcx
jne 0x140040ddb
call fcn.140040d24
test al, al
je 0x140040f91
mov rcx, qword [0x14011f510]
xor sil, sil
and qword [rbp + 0x7f], 0
mov rax, qword [rcx]
and qword [rbp + 0x7f], 0
lea rdx, [rbp + 0x7f]
call qword [rax + 0x68]
test eax, eax
js 0x140040f7e
and qword [rbp + 0x77], 0
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140041075
mov rax, qword [rcx]
and qword [rbp + 0x77], 0
lea r8, [rbp + 0x77]
lea rdx, [0x1400f6278]
call qword [rax]
test eax, eax
js 0x14004104f
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
and qword [rbp - 0x31], 0
lea r8, [rbp - 0x41]
lea rdx, [0x1400f5b74]
mov ecx, 0x65
call fcn.14004f3c8
mov rbx, qword [rbp - 0x39]
mov rdi, qword [rbp - 0x41]
sub rbx, rdi
test ebx, ebx
je 0x140041019
and dword [rbp - 0x45], 0
mov dword [rbp - 0x49], ebx
mov ecx, 0x11
lea r8, [rbp - 0x49]
lea edx, [rcx - 0x10]
call qword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov rsi, rax
test rax, rax
je 0x140040f31
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
js 0x140040f31
movsxd r8, ebx
mov rdx, rdi
mov rcx, qword [rbp - 0x29]
call fcn.1400adf20
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov rbx, qword [rbp + 0x77]
test rbx, rbx
je 0x140041064
mov rax, qword [rbx]
mov r14, qword [rax + 0x168]
mov rcx, qword [0x14011f638]
test rcx, rcx
je 0x140040eda
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
and qword [0x14011f638], 0
lea r8, [0x14011f638]
mov rdx, rsi
mov rcx, rbx
call r14
test eax, eax
js 0x140040f31
and qword [rbp + 0x6f], 0
mov rcx, qword [0x14011f638]
test rcx, rcx
je 0x140041086
mov rax, qword [rcx]
and qword [rbp + 0x6f], 0
lea rdx, [rbp + 0x6f]
call qword [rax + 0x80]
test eax, eax
jns 0x140040f9f
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x140040f31
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
test rdi, rdi
je 0x140040f6b
mov rdx, qword [rbp - 0x31]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140040f62
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041080
mov rcx, rdi
call fcn.140083110
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140040f7b
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xor sil, sil
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140040f8e
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov al, sil
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp + 0x17]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x140041086
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x128]
movups xmm0, xmmword [rbp - 0x21]
movaps xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
lea r9, [rbp + 0x17]
xor r8d, r8d
lea rdx, [rbp - 9]
call r10
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov dword [0x14010bf30], eax
shr esi, 0x1f
xor sil, 1
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x140041019
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
test rdi, rdi
je 0x14004104f
mov rdx, qword [rbp - 0x31]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140041046
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004106f
mov rcx, rdi
call fcn.140083110
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x14004105f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x140040f7e
mov ecx, 0x80004003
call fcn.140080920
nop
call fcn.14008a200
int3
mov ecx, 0x80004003
call fcn.140080920
int3
call fcn.14008a200
nop
mov ecx, 0x80004003
call fcn.140080920
int3