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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x140
cmp dword [0x1401156a4], 0
jg 0x140004747
mov rcx, qword [0x140112060]
cmp byte [rcx + 0x12d], 0
je 0x140004747
mov eax, dword [0x140112058]
cmp dword [0x1401156c8], eax
jge 0x140004747
cmp dword [0x140112054], 0
je 0x140004747
cmp dword [0x1401156a0], 0
jne 0x140004747
cmp byte [rcx + 0x12c], 0
jne 0x1400044b4
cmp byte [rcx + 0x12e], 0
jne 0x1400044a7
cmp dword [rcx + 0x120], 0xffffffff
jle 0x1400044a7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140112060]
sub eax, dword [rcx + 0x11c]
cmp eax, dword [rcx + 0x120]
jb 0x1400044a7
mov byte [rcx + 0x12c], 1
cmp byte [rcx + 0x12c], 0
je 0x140004747
xor r14d, r14d
mov ebp, r14d
mov rbx, qword [0x140119768]
test rbx, rbx
je 0x140004747
nop word [rax + rax]
cmp byte [rbx + 0x15], 0
je 0x1400044fd
cmp byte [rbx + 0x14], 0
ja 0x1400044fd
mov eax, dword [rcx + 0x3c]
cmp dword [rbx + 0x10], eax
jl 0x1400044fd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, eax
sub ecx, dword [rbx + 0xc]
cmp ecx, dword [rbx + 8]
jae 0x140004522
mov rcx, qword [0x140112060]
mov rsi, qword [rbx + 0x18]
mov rbx, rsi
test rsi, rsi
jne 0x1400044d0
test ebp, ebp
je 0x140004747
lea rcx, [rsp + 0x40]
call fcn.140005040
mov al, 1
jmp 0x140004749
test ebp, ebp
jne 0x140004568
mov ebp, 1
xor r8d, r8d
mov edx, ebp
mov rcx, qword [0x1401156c0]
call fcn.140001670
lea r8d, [rbp + 0x7e]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rsp + 0x13e], r14w
inc dword [0x1401156c8]
add qword [0x140112060], 0x150
mov dword [rbx + 0xc], edi
cmp byte [rbx + 0x16], 0
je 0x1400045be
mov byte [rbx + 0x15], 0
add dword [0x14011977c], 0xffffffff
jne 0x1400045be
cmp dword [0x1401156ec], 0
jne 0x1400045be
cmp dword [0x1401166c0], 0
jne 0x1400045be
cmp byte [0x140115542], 0
je 0x1400045be
mov edx, 9
mov rcx, qword [0x1401156f0]
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x140115542]
test eax, eax
cmovne ecx, r14d
mov byte [0x140115542], cl
mov dword [0x1401197ec], edi
mov r9, qword [rbx]
mov rcx, r9
call fcn.1400ad8f0
test eax, eax
je 0x1400045d8
cmp eax, 1
jne 0x1400045e7
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x1400045e7
movzx r9d, byte [rax]
jmp 0x1400045ea
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, dword [rbx + 0x10]
call fcn.140004e00
mov rax, qword [0x140112060]
mov qword [rax + 0xf0], rbx
inc byte [rbx + 0x14]
mov rcx, qword [rbx]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x1400e0708]
mov rdx, rcx
call fcn.1400a9aa0
dec byte [rbx + 0x14]
mov rsi, qword [rbx + 0x18]
cmp byte [rbx + 0x16], 0
je 0x140004662
cmp byte [rbx + 0x15], 0
jne 0x140004662
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004662
call fcn.1400ad8f0
cmp eax, 2
jne 0x140004662
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000465f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx], r14
cmp qword [rbx], 0
jne 0x14000473b
mov rdi, r14
mov rbx, qword [0x140119768]
test rbx, rbx
je 0x14000473b
movzx ecx, byte [0x140115542]
cmp qword [rbx], 0
jne 0x1400046e0
cmp byte [rbx + 0x15], 0
je 0x1400046da
mov byte [rbx + 0x15], 0
add dword [0x14011977c], 0xffffffff
jne 0x1400046da
cmp dword [0x1401156ec], 0
jne 0x1400046da
cmp dword [0x1401166c0], 0
jne 0x1400046da
test cl, cl
je 0x1400046da
mov edx, 9
mov rcx, qword [0x1401156f0]
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x140115542]
test eax, eax
cmovne ecx, r14d
mov byte [0x140115542], cl
cmp byte [rbx + 0x14], 0
je 0x1400046ee
mov rdi, rbx
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x14000473b
jmp 0x140004686
mov rax, qword [rbx + 0x18]
test rdi, rdi
je 0x1400046fd
mov qword [rdi + 0x18], rax
jmp 0x140004704
mov qword [0x140119768], rax
mov rax, qword [0x140119770]
cmp rax, rbx
cmove rax, rdi
mov qword [0x140119770], rax
dec dword [0x140119778]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000472e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov edx, SafeArrayAllocDescriptor
mov rcx, rbx
call fcn.1400dccbc
mov rcx, qword [0x140112060]
jmp 0x140004501
xor al, al
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret