Function at 0x14001044c
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 0x14001048e
mov eax, dword [rcx + 0x40]
jmp 0x1400107c4
call fcn.1400103ac
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, [0x140022b78]
lea rcx, [rbp + 0x27]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov rax, qword [rbp + 0x17]
cmp dword [rax - 8], 0
je 0x14001079e
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 [0x140022378]
test eax, eax
js 0x14001077b
and qword [rbp - 0x39], 0
jmp 0x1400106ec
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 [0x140022378]
test eax, eax
js 0x1400106ec
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
lea r8, [rbp - 0x49]
lea rdx, str.Dependent
mov rax, qword [rax + 0x10]
call qword [0x140022378]
test eax, eax
js 0x1400106ec
lea rdx, [0x1400239c0]
lea rcx, [rbp - 0x41]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextW]
cmp eax, 0xffffffff
je 0x1400105d7
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, [0x1400239c0]
lea rcx, [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextW]
cmp eax, 0xffffffff
je 0x140010622
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 0x14001067c
lea ecx, [rbx + 0x38]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
mov qword [rbp + 7], rax
test rax, rax
je 0x140010665
lea edx, [rbx + 0xa]
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CDaoQueryDef::CDaoQueryDef]
mov rbx, rax
jmp 0x140010667
xor ebx, ebx
test rbx, rbx
je 0x140010689
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 0x1400106df
lea ecx, [rbx + 0x38]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
mov qword [rbp + 0xf], rax
test rax, rax
je 0x1400106c8
lea edx, [rbx + 0xa]
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CDaoQueryDef::CDaoQueryDef]
mov rbx, rax
jmp 0x1400106ca
xor ebx, ebx
test rbx, rbx
je 0x1400106ec
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 [0x140022378]
test eax, eax
je 0x140010530
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140010726
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [0x140022378]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140010741
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [0x140022378]
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 0x1400104de
jmp 0x14001079e
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.14001cbe0
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001cbc0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret