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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rdx
mov rdi, rcx
cmp dword [rcx], 0
je 0x140010456
mov eax, dword [rcx + 0x40]
jmp 0x14001078c
call fcn.14001037c
lea rdx, str.Win32_PnPAllocatedResource
lea rcx, [rbp + 0x17]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
lea rdx, str.Win32_CIMLogicalDeviceCIMDataFile
lea rcx, [rbp + 0x1f]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
lea rdx, [0x140022b28]
lea rcx, [rbp + 0x27]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov rax, qword [rbp + 0x17]
cmp dword [rax - 8], 0
je 0x140010766
xor r14d, r14d
lea rbx, [rbp + 0x17]
lea rcx, [rbp - 0x41]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rbp - 0x29]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
and qword [rbp - 0x31], 0
mov rax, qword [r15]
xor r9d, r9d
lea r8, [rbp - 0x31]
mov rdx, qword [rbx]
mov rcx, r15
mov rax, qword [rax + 8]
call qword [0x140022358]
test eax, eax
js 0x140010743
and qword [rbp - 0x39], 0
jmp 0x1400106b4
lea rcx, [rbp - 0x41]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
lea rcx, [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
lea r8, [rbp - 0x41]
lea rdx, str.Antecedent
mov rax, qword [rax + 0x10]
call qword [0x140022358]
test eax, eax
js 0x1400106b4
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
lea r8, [rbp - 0x49]
lea rdx, str.Dependent
mov rax, qword [rax + 0x10]
call qword [0x140022358]
test eax, eax
js 0x1400106b4
lea rdx, [0x140023970]
lea rcx, [rbp - 0x41]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextW]
cmp eax, 0xffffffff
je 0x14001059f
mov rcx, qword [rbp - 0x41]
mov r8d, dword [rcx - 8]
sub r8d, eax
dec r8d
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x41]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rbp - 0x21]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rdx, [0x140023970]
lea rcx, [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextW]
cmp eax, 0xffffffff
je 0x1400105ea
mov rcx, qword [rbp - 0x49]
mov r8d, dword [rcx - 8]
sub r8d, eax
dec r8d
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop
mov rdx, rax
lea rcx, [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rbp - 0x19]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rsi, [rdi + 8]
lea r8, [rbp - 0x11]
mov rdx, qword [rbp - 0x41]
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_CView::OnDestroy]
neg eax
sbb rbx, rbx
and rbx, qword [rbp - 0x11]
jne 0x140010644
lea ecx, [rbx + 0x38]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
mov qword [rbp + 7], rax
test rax, rax
je 0x14001062d
lea edx, [rbx + 0xa]
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CDaoQueryDef::CDaoQueryDef]
mov rbx, rax
jmp 0x14001062f
xor ebx, ebx
test rbx, rbx
je 0x140010651
mov rdx, qword [rbp - 0x41]
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_AfxOleUnlockControl]
mov qword [rax], rbx
lea rdx, [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_Ordinal_1383]
lea r8, [rbp - 9]
mov rdx, qword [rbp - 0x49]
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_CView::OnDestroy]
neg eax
sbb rbx, rbx
and rbx, qword [rbp - 9]
jne 0x1400106a7
lea ecx, [rbx + 0x38]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
mov qword [rbp + 0xf], rax
test rax, rax
je 0x140010690
lea edx, [rbx + 0xa]
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CDaoQueryDef::CDaoQueryDef]
mov rbx, rax
jmp 0x140010692
xor ebx, ebx
test rbx, rbx
je 0x1400106b4
mov rdx, qword [rbp - 0x49]
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_AfxOleUnlockControl]
mov qword [rax], rbx
lea rdx, [rbp - 0x41]
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_Ordinal_1383]
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rbp - 0x39]
mov rax, qword [rax + 0x10]
call qword [0x140022358]
test eax, eax
je 0x1400104f8
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400106ee
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [0x140022358]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140010709
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [0x140022358]
nop
lea rcx, [rbp - 0x29]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
inc r14
lea rbx, [rbp + 0x17]
lea rbx, [rbx + r14*8]
mov rax, qword [rbx]
cmp dword [rax - 8], 0
jne 0x1400104a6
jmp 0x140010766
mov dword [rdi + 0x40], eax
lea rcx, [rbp - 0x29]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi], eax
mov ebx, dword [rdi + 0x40]
mov r9, qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov edx, 8
lea r8d, [rdx - 5]
lea rcx, [rbp + 0x17]
call fcn.14001c840
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001c820
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret