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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov qword [rax - 0x98], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x1800c9088]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, r8
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
lea rcx, [rsp + 0x50]
call fcn.18005cfa8
nop
or esi, 0xffffffff
lea r15, [0x1800c9a10]
mov r14d, dword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 - 1]
cmp ecx, 0xfffffffd
ja 0x180069c4e
mov ecx, eax
sub ecx, r13d
cmp eax, r13d
jae 0x180069c3d
dec ecx
cmp ecx, r14d
jae 0x180069f6d
mov r8d, r14d
sub r8d, ecx
jmp 0x180069c51
mov r8d, r14d
and dword [rsp + 0x20], 0
mov r9d, 0x4ff
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0x102
je 0x180069ff2
cmp eax, esi
je 0x180069fb4
cmp eax, 0xc0
je 0x180069ff2
cmp eax, 1
jne 0x180069f78
xor r12d, r12d
xor edx, edx
lea r8d, [rax + 0x2f]
lea rcx, [rsp + 0xb8]
call fcn.1800485d0
xor r15d, r15d
and dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x180069f20
inc r15
cmp dword [rsp + 0xc0], 0x12
jne 0x180069d2c
mov rcx, qword [0x1800c9a10]
lea rax, [0x1800c9a10]
cmp rcx, rax
je 0x180069d22
test byte [rcx + 0x1c], 1
je 0x180069d22
cmp byte [rcx + 0x19], 4
jb 0x180069d22
mov edx, reloc.OLEAUT32.dll_VariantChangeType
lea r8, [0x1800a2800]
mov rcx, qword [rcx + 0x10]
call fcn.180001ae4
mov rcx, qword [0x1800c9a10]
lea rax, [0x1800c9a10]
cmp dword [rdi + 0xc], r12d
jne 0x180069ea4
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
jne 0x180069dca
lea edi, [rcx + 1]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x180069da8
cmp dword [rsp + 0xc0], 0x12
je 0x180069da8
mov rax, qword [0x1800c9a10]
lea rcx, [0x1800c9a10]
cmp rax, rcx
je 0x180069da8
test byte [rax + 0x1c], 1
je 0x180069da8
cmp byte [rax + 0x19], 2
jb 0x180069da8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, SafeArrayDestroy
mov rcx, qword [0x1800c9a10]
mov r9d, eax
lea r8, [0x1800a2800]
mov rcx, qword [rcx + 0x10]
call fcn.180001560
lea rcx, [rsp + 0xb8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb8]
test edi, edi
jne 0x180069e2b
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x180069e31
call qword [sym.imp.USER32.dll_IsWindowUnicode]
mov edi, eax
test eax, eax
jne 0x180069d40
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x180069da8
cmp dword [rsp + 0xc0], 0x12
je 0x180069da8
mov rax, qword [0x1800c9a10]
lea rcx, [0x1800c9a10]
cmp rax, rcx
je 0x180069da8
test byte [rax + 0x1c], 1
je 0x180069da8
cmp byte [rax + 0x19], 2
jb 0x180069da8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rdi + 0xd]
jmp 0x180069d8e
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea ecx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x3f
jbe 0x180069eea
lea ecx, [rax - 0x80]
cmp ecx, 0x3f
jbe 0x180069eea
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 - 1]
cmp ecx, 0xfffffffd
ja 0x180069e7b
mov ecx, eax
sub ecx, r13d
cmp eax, r13d
jae 0x180069e76
dec ecx
cmp ecx, r14d
jae 0x180069ed9
and dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call qword [sym.imp.USER32.dll_PeekMessageW]
mov rdi, qword [rsp + 0x38]
test eax, eax
je 0x180069ef5
jmp 0x180069cd3
cmp rcx, rax
je 0x180069ed1
test byte [rcx + 0x1c], 1
je 0x180069ed1
cmp byte [rcx + 0x19], 4
jb 0x180069ed1
mov edx, SafeArrayDestroy
lea r8, [0x1800a2800]
mov rcx, qword [rcx + 0x10]
call fcn.180001ae4
mov rcx, qword [0x1800c9a10]
mov r12d, 1
jmp 0x180069efc
mov ebx, 0x102
mov dword [rsp + 0x30], ebx
mov r12d, 1
jmp 0x180069ef0
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rdi, qword [rsp + 0x38]
mov rcx, qword [0x1800c9a10]
test r15, r15
je 0x180069f27
lea r15, [0x1800c9a10]
test r12d, r12d
jne 0x180069ff2
cmp ebx, 1
jne 0x180069f7f
mov rbx, qword [rsp + 0x40]
jmp 0x180069c22
mov rcx, qword [0x1800c9a10]
lea r15, [0x1800c9a10]
cmp rcx, r15
je 0x180069f08
test byte [rcx + 0x1c], 1
je 0x180069f08
cmp byte [rcx + 0x19], 4
jb 0x180069f08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
lea r8, [0x1800a2800]
mov rcx, qword [0x1800c9a10]
mov rcx, qword [rcx + 0x10]
call fcn.180001560
mov rcx, qword [0x1800c9a10]
jmp 0x180069f08
mov ebx, 0x102
mov dword [rsp + 0x30], ebx
jmp 0x180069ff2
mov rcx, qword [0x1800c9a10]
cmp ebx, 0x3f
jbe 0x180069ff2
lea eax, [rbx - 0x80]
cmp eax, 0x3f
jbe 0x180069ff2
cmp rcx, r15
je 0x180069ff2
test byte [rcx + 0x1c], 1
je 0x180069ff2
cmp byte [rcx + 0x19], 2
jb 0x180069ff2
mov edx, 0x10
lea r8, [0x1800a2800]
mov rcx, qword [rcx + 0x10]
call fcn.180001ae4
jmp 0x180069ff2
mov rax, qword [0x1800c9a10]
cmp rax, r15
je 0x180069ff2
test byte [rax + 0x1c], 1
je 0x180069ff2
cmp byte [rax + 0x19], 2
jb 0x180069ff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0xa
lea r8, [0x1800a2800]
mov rcx, qword [0x1800c9a10]
mov rcx, qword [rcx + 0x10]
call fcn.180001560
nop
jmp 0x180069ffb
cmp dword [rsp + 0x58], 0
jne 0x18006a004
mov esi, ebx
lea rcx, [rsp + 0x50]
call fcn.18005d030
mov eax, esi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180045d30
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
sub rsp, 0x38
cmp dword [rcx + 8], 0
mov r10, r8
jne 0x18006a0d0
and dword [rsp + 0x20], 0
xor r8d, r8d
mov r9d, dword [rsp + 0x60]
mov rdx, r10
lea ecx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
add rsp, 0x38
ret
add rsp, 0x38
jmp 0x180069bb4