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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x14031b940]
xor rax, rsp
mov qword [rbp + 0x268], rax
mov rsi, rcx
xor r14d, r14d
cmp byte [rcx], r14b
je 0x1400181c9
call fcn.140020e90
sub dword [rax + 0x10], 1
jns 0x140017b4c
mov dword [rax + 0x10], r14d
call fcn.140020e90
mov rdi, rax
lea rcx, [rbp - 0x70]
call fcn.140019350
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f0], xmm0
mov qword [rbp + 0x200], r14
mov qword [rbp + 0x208], 7
mov word [rbp + 0x1f0], r14w
lea rdx, str.MARK
lea rcx, [rbp + 0x1f0]
call fcn.1400182b0
xorps xmm0, xmm0
movups xmmword [rbp + 0x190], xmm0
mov rdx, r14
mov qword [rbp + 0x1a0], rdx
mov r8d, 7
mov qword [rbp + 0x1a8], r8
mov word [rbp + 0x190], r14w
mov ebx, r14d
cmp dword [rdi + 0x10], edx
jle 0x140017c36
cmp ebx, 0xa
jge 0x140017c36
mov rax, r8
sub rax, rdx
lea rcx, [rbp + 0x190]
cmp rax, 2
jb 0x140017c05
lea rax, [rdx + 2]
mov qword [rbp + 0x1a0], rax
cmp r8, 7
cmova rcx, qword [rbp + 0x190]
mov eax, dword [0x1402cda80]
mov dword [rcx + rdx*2], eax
mov word [rcx + rdx*2 + 4], r14w
jmp 0x140017c1f
mov qword [rsp + 0x20], 2
lea r9, [0x1402cda80]
mov edx, 2
call fcn.140021e20
inc ebx
cmp ebx, dword [rdi + 0x10]
jge 0x140017c36
mov r8, qword [rbp + 0x1a8]
mov rdx, qword [rbp + 0x1a0]
jmp 0x140017bc5
xorps xmm0, xmm0
movups xmmword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x1e0], r14
mov qword [rbp + 0x1e8], 7
mov word [rbp + 0x1d0], r14w
movups xmmword [rbp + 0x1b0], xmm0
mov qword [rbp + 0x1c0], r14
mov qword [rbp + 0x1c8], 7
mov word [rbp + 0x1b0], r14w
call fcn.1402320cc
mov edx, VariantTimeToDosDateTime
lea rcx, [rbp + 0x250]
call fcn.14023221c
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x1d0]
call fcn.1400182b0
lea rcx, [rbp + 0x90]
call fcn.140019350
cmp dword [rdi + 0x14], r14d
jne 0x140017ccf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x14], eax
xor edx, edx
lea rcx, [rbp + 0xa0]
call fcn.140012dc0
jmp 0x140017cf4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x14]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x1402d4800]
lea rcx, [rbp + 0xa0]
call fcn.140021890
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0xa8]
call fcn.140019f80
mov rdx, qword [rbp + 0x1c8]
cmp rdx, 7
jbe 0x140017d4d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017d48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001824b
call fcn.140003e94
movups xmm0, xmmword [rbp + 0x210]
movups xmmword [rbp + 0x1b0], xmm0
movups xmm1, xmmword [rbp + 0x220]
movups xmmword [rbp + 0x1c0], xmm1
movdqa xmm0, xmmword [0x1402d4850]
movdqu xmmword [rbp + 0x220], xmm0
mov word [rbp + 0x210], r14w
lea rcx, [rbp + 0x90]
call fcn.140019240
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x30]
call fcn.1402237f8
mov rbx, rax
mov edx, 0x2040
lea rcx, [rsp + 0x40]
call fcn.1402237f8
mov rcx, qword [rbp - 0x60]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 0x60]
add rcx, rdx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rbp + 0x1d0]
cmp qword [rbp + 0x1e8], 7
cmova rdx, qword [rbp + 0x1d0]
mov r8, qword [rbp + 0x1e0]
lea rcx, [rbp - 0x60]
call fcn.140016b40
lea rdx, [0x1402cd5bc]
mov rcx, rax
call fcn.140016880
mov rdi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov edx, dword [rbx + 8]
call qword [rbx]
mov edx, 6
lea rcx, [rsp + 0x50]
call fcn.140223820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, qword [rax + 8]
call qword [rax]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
mov word [rcx + rdi + 0x58], 0x30
mov edx, 3
lea rcx, [rsp + 0x60]
call fcn.14022380c
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 7
cmova rdx, qword [rbp + 0x1b0]
mov r8, qword [rbp + 0x1c0]
mov rcx, rdi
call fcn.140016b40
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.140223820
mov rdi, rax
lea rdx, [0x1402cd5bc]
mov rcx, rbx
call fcn.140016880
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov rdx, qword [rdi + 8]
call qword [rdi]
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov word [rdx + rbx + 0x58], 0x20
mov edx, 0x40
lea rcx, [rbp - 0x80]
call fcn.1402237f8
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rbp + 0x1f0]
cmp qword [rbp + 0x208], 7
cmova rdx, qword [rbp + 0x1f0]
mov r8, qword [rbp + 0x200]
mov rcx, rbx
call fcn.140016b40
lea rbx, [rbp + 0x190]
cmp qword [rbp + 0x1a8], 7
cmova rbx, qword [rbp + 0x190]
lea rdx, [0x1402cdad0]
mov rcx, rax
call fcn.140016880
mov rcx, rax
mov rdx, rbx
call fcn.140016880
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14032b0dc], eax
jg 0x140018251
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x58]
call fcn.140019f80
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 7
jbe 0x140017fab
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14031c620]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017fa6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001823f
call fcn.140003e94
movups xmm0, xmmword [rbp + 0x230]
movups xmmword [0x14031c620], xmm0
movups xmm1, xmmword [rbp + 0x240]
movups xmmword [0x14031c630], xmm1
movdqa xmm0, xmmword [0x1402d4850]
movdqu xmmword [rbp + 0x240], xmm0
mov word [rbp + 0x230], r14w
mov rdx, qword [rbp + 0x1c8]
cmp rdx, 7
jbe 0x140018025
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018020
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001823f
call fcn.140003e94
mov qword [rbp + 0x1c0], r14
mov qword [rbp + 0x1c8], 7
mov word [rbp + 0x1b0], r14w
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 7
jbe 0x140018085
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018080
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001823f
call fcn.140003e94
mov qword [rbp + 0x1e0], r14
mov qword [rbp + 0x1e8], 7
mov word [rbp + 0x1d0], r14w
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 7
jbe 0x1400180e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400180e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001823f
call fcn.140003e94
mov qword [rbp + 0x1a0], r14
mov qword [rbp + 0x1a8], 7
mov word [rbp + 0x190], r14w
mov rdx, qword [rbp + 0x208]
cmp rdx, 7
jbe 0x140018145
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018140
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001823f
call fcn.140003e94
mov qword [rbp + 0x200], r14
mov qword [rbp + 0x208], 7
mov word [rbp + 0x1f0], r14w
lea rcx, [rbp - 0x70]
call fcn.140019240
call fcn.140020e90
lea rdx, [0x14031c620]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rdx, qword [0x14031c620]
mov r8, qword [0x14031c630]
mov rcx, rax
call fcn.140016b40
lea rbx, [rsi + 8]
lea rdx, str.Exiting:
mov rcx, rax
call fcn.140016880
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400181b3
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016b40
mov rcx, rax
call fcn.140017a70
jmp 0x1400181cd
lea rbx, [rcx + 8]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140018208
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140018203
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140018245
mov rcx, r8
call fcn.140003e94
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rcx, qword [rbp + 0x268]
xor rcx, rsp
call fcn.140220eb0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14022a650
int3
call fcn.14022a650
int3
call fcn.14022a650
int3
lea rcx, [0x14032b0dc]
call fcn.1402211e4
cmp dword [0x14032b0dc], 0xffffffff
jne 0x140017f55
xorps xmm0, xmm0
movups xmmword [0x14031c620], xmm0
movdqa xmm1, xmmword [0x1402d4850]
movdqu xmmword [0x14031c630], xmm1
mov word [0x14031c620], r14w
lea rcx, [0x14026f950]
call fcn.1402210f8
lea rcx, [0x14032b0dc]
call fcn.140221178
jmp 0x140017f55