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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov r13, rdx
mov rbx, rcx
lea rax, [rcx + 0x50]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r15d, r15d
movabs rdi, 0xe38e38e38e38e39
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x1c0], eax
lea rdx, [rbx + 0x60]
lea rcx, [rsp + 0x1c8]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
nop
lea r12, [r13 + 0x1538]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [r13 + reloc.mfc140u.dll_CDataBoundProperty::GetCursor], r15
jbe 0x140131c6d
mov rax, qword [r13 + 0x14c8]
mov rax, qword [rax]
mov r14d, dword [rax + 0x10]
cmp r14d, 0xffffffff
sete byte [rsp + 0x1b8]
mov ebx, dword [rax + 0x14]
sub ebx, r14d
mov byte [r13 + 0x13cc], r15b
mov rcx, qword [r13 + 0x14b8]
sub rcx, qword [r13 + 0x14b0]
mov rax, rdi
imul rcx
mov rdi, rdx
sar rdi, 2
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14d, r14d
cmovle r14d, r15d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xd8], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildQPasteWndThread.cpp
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rsi, rax
mov dword [rsp + 0x20], edi
mov r9d, ebx
mov r8d, r14d
lea rdx, str.Load_Items_start___d__count___d__list_size:__d
lea rcx, [rsp + 0xa8]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
lea r9d, [r15 + 0x7b]
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r9d, r14d
mov r8d, ebx
lea rdx, str._LIMIT__d_OFFSET__d
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1c8]
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
mov dword [rsp + 0x50], 0xffffffff
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [rsp + 0x60], r15d
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
mov qword [rsp + 0x90], r15
lea rcx, [rsp + 0x1c8]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov r8, rax
lea rdx, [rsp + 0x148]
lea rcx, [0x1403c44c8]
call fcn.140143c00
nop
lea rbx, [r13 + 0x40]
mov r15d, r14d
nop dword [rax + rax]
lea rcx, [rsp + 0x148]
call fcn.1401437b0
test al, al
jne 0x140131a8c
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x50]
call fcn.1401860a0
mov esi, 0xffffffff
mov qword [rsp + 0x130], r12
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x138], 1
lea rbx, [r13 + 0x14b0]
mov r9, qword [rbx + 8]
mov rdi, qword [rbx]
mov rcx, r9
sub rcx, rdi
movabs rax, 0xe38e38e38e38e39
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, r14d
cmp rax, rdx
jae 0x1401318b9
lea rbx, [rax + rax*8]
mov eax, dword [rsp + 0x50]
mov dword [rdi + rbx*8], eax
lea rcx, [rdi + 8]
lea rcx, [rcx + rbx*8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
movzx eax, byte [rsp + 0x60]
mov byte [rdi + rbx*8 + 0x10], al
movzx eax, byte [rsp + 0x61]
mov byte [rdi + rbx*8 + 0x11], al
movzx eax, byte [rsp + 0x62]
mov byte [rdi + rbx*8 + 0x12], al
movzx eax, byte [rsp + 0x63]
mov byte [rdi + rbx*8 + 0x13], al
lea rcx, [rdi + 0x18]
lea rcx, [rcx + rbx*8]
lea rdx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
movsd xmm0, qword [rsp + 0x70]
movsd qword [rdi + rbx*8 + 0x20], xmm0
movsd xmm1, qword [rsp + 0x78]
movsd qword [rdi + rbx*8 + 0x28], xmm1
movsd xmm0, qword [rsp + 0x80]
movsd qword [rdi + rbx*8 + 0x30], xmm0
movsd xmm1, qword [rsp + 0x88]
movsd qword [rdi + rbx*8 + 0x38], xmm1
mov eax, dword [rsp + 0x90]
mov dword [rdi + rbx*8 + 0x40], eax
mov eax, dword [rsp + 0x94]
mov dword [rdi + rbx*8 + 0x44], eax
mov esi, r14d
jmp 0x1401319fd
jne 0x1401318ed
cmp r9, qword [rbx + 0x10]
je 0x1401318d8
lea rdx, [rsp + 0x50]
mov rcx, r9
call fcn.1401303c0
add qword [rbx + 8], 0x48
jmp 0x1401319d9
lea r8, [rsp + 0x50]
mov rdx, r9
mov rcx, rbx
call fcn.14012f9c0
jmp 0x1401319d9
jbe 0x1401319fd
lea edi, [rdx - 1]
nop word [rax + rax]
lea eax, [r14 - 1]
cmp edi, eax
jge 0x1401319ab
mov dword [rsp + 0xe0], 0xffffffff
lea rcx, [rsp + 0xe8]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [rsp + 0xf0], 0
lea rcx, [rsp + 0xf8]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
xor eax, eax
mov qword [rsp + 0x120], rax
mov dword [rsp + 0xe0], 0xffffffff
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x140131974
lea rdx, [rsp + 0xe0]
mov rcx, rax
call fcn.1401303c0
add qword [rbx + 8], 0x48
jmp 0x140131988
lea r8, [rsp + 0xe0]
mov rdx, rax
mov rcx, rbx
call fcn.14012f9c0
nop
lea rcx, [rsp + 0xf8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc edi
jmp 0x140131900
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x1401319c9
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1401303c0
add qword [rbx + 8], 0x48
jmp 0x1401319d9
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rbx
call fcn.14012f9c0
mov rcx, qword [rbx + 8]
movabs rax, 0xe38e38e38e38e39
sub rcx, qword [rbx]
imul rcx
sar rdx, 2
mov rsi, rdx
shr rsi, 0x3f
add rsi, rdx
dec esi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x138], 0
cmp byte [r13 + 0x13cc], 0
je 0x140131b0a
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xd8], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildQPasteWndThread.cpp
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov r8d, r15d
lea rdx, str.StopQuery_called_exiting_filling_cache_count___d
lea rcx, [rsp + 0xb8]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0xb1
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0xb8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rbx, [r13 + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
sub r14d, dword [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, eax
xor esi, esi
xor edi, edi
mov rcx, qword [rbx]
xor r9d, r9d
mov edx, 0x520
cmp byte [rsp + 0x1b8], sil
je 0x140131b46
lea r8, [rsi - 2]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rdx, r13
mov rdi, qword [rsp + 0x1b0]
mov rcx, rdi
call fcn.140131cb0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, r15d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov rdx, r13
mov rcx, rdi
call fcn.140130b20
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, ebx
jmp 0x140131b53
lea rcx, [rsp + 0x148]
call fcn.1401446f0
lea rbx, [r13 + 0x40]
cmp byte [rsp + 0x1b8], 0
jne 0x140131b3b
movsxd r9, esi
movsxd r8, dword [rsp + 0x50]
mov edx, 0x520
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_PostMessageW]
inc r15d
inc r14d
jmp 0x140131790
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [r13 + 0x14c8]
mov rcx, qword [rax]
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
dec qword [r13 + reloc.mfc140u.dll_CDataBoundProperty::GetCursor]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140265548
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x1b8], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildQPasteWndThread.cpp
lea rcx, [rsp + 0xc0]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x1c0]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r14d
mov r9d, eax
mov r8d, r14d
lea rdx, str.Load_items_End_count___d__Total_Time___d__LoadItems:__d__Count:__d__Accel:__d
lea rcx, [rsp + 0xc8]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0xe5
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0xc8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x148]
call fcn.140143000
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x1c8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rbx, qword [rsp + 0x1b0]
jmp 0x1401315e2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x1c8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEvent]