Function at 0x14001dd70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r12
push r13
mov eax, CRecordset::IsFieldNull
call fcn.1403aeb10
sub rsp, rax
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + COccManager::IsDialogMessageW], rax
mov rbp, r8
mov rsi, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, CView::CView
mov r12, r9
xor r13d, r13d
call sub.MSVCR90.dll_memset
lea r8, [rsp + 0x50]
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], CView::CView
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
jne 0x14001ddd8
xor al, al
jmp 0x14001e194
or dword [rsp + 0x58], 0x4000800
lea r8, [rsp + 0x50]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x14001de2e
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x14001ddd1
xor r9d, r9d
mov rdx, rbp
mov rcx, rsi
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x14001de36
mov al, 1
jmp 0x14001e194
and dword [rsp + 0x58], 0xfbfff7ff
xor r9d, r9d
mov rdx, rbp
mov rcx, rsi
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x20019
mov qword [rsp + CGopherFileFind::IsDots], rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001de7a
or rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14001e18c
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, str.InfPath
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8c]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x44], CPictureHolder::CPictureHolder
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e1be
cmp dword [rsp + 0x40], 1
jne 0x14001e1be
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, str.ProviderName
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8d0]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x44], reloc.mfc90u.dll_COleStreamFile::COleStreamFile
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e1be
cmp dword [rsp + 0x40], 1
jne 0x14001e1be
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, str.InfSection
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xed0]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x44], reloc.mfc90u.dll_COleStreamFile::COleStreamFile
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e1be
cmp dword [rsp + 0x40], 1
jne 0x14001e1be
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, str.DriverDesc
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xcd0]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + reloc.mfc90u.dll_CDaoRecordView::IsOnLastRecord], rbx
mov dword [rsp + 0x44], reloc.mfc90u.dll_COleStreamFile::COleStreamFile
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001e1ba
cmp dword [rsp + 0x40], 1
jne 0x14001e1ba
lea rax, [rsp + 0xad0]
mov qword [rsp + 0x30], r13
lea r8d, [rbx + 0xb]
xor r9d, r9d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x28], reloc.mfc90u.dll_COleStreamFile::COleStreamFile
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14001e1ba
bts dword [rsp + 0x54], 0x10
bts dword [rsp + 0x58], 0xb
lea r8, [rsp + 0x50]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x14001e1ba
lea r8d, [rbx + 1]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x14001e1ba
xor r9d, r9d
mov rdx, rbp
mov rcx, rsi
lea r8d, [r9 + 1]
mov ebx, r13d
mov qword [rsp + 0x20], r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x14001e16c
lea rdi, [r12 + 0x210]
lea r8, [rsp + 0xad0]
mov rax, rdi
sub r8, rdi
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14001e074
add rax, 2
test ecx, ecx
jne 0x14001e060
test edx, edx
jne 0x14001e148
lea rax, [r12 + reloc.mfc90u.dll_CObList::AddTail]
lea r8, [rsp + 0x8d0]
sub r8, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14001e0a4
add rax, 2
test ecx, ecx
jne 0x14001e090
test edx, edx
jne 0x14001e148
lea r9, [rsp + 0x2a0]
mov r8, r12
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x2a0], CDaoWorkspace::CommitTrans
mov dword [rsp + 0x20], CDaoWorkspace::CommitTrans
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x14001e0ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001e148
lea rax, [rsp + reloc.mfc90u.dll_CMiniFrameWnd::CMiniFrameWnd]
lea r8, [rsp + 0xed0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14001e114
add rax, 2
test ecx, ecx
jne 0x14001e100
test edx, edx
jne 0x14001e148
lea rax, [rsp + 0x6c8]
lea r8, [rsp + 0xcd0]
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14001e144
add rax, 2
test ecx, ecx
jne 0x14001e130
test edx, edx
je 0x14001e1b2
inc ebx
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
mov r9d, ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x14001e052
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
test r13d, r13d
setne al
mov rbx, qword [rsp + reloc.mfc90u.dll_CDaoRecordView::IsOnLastRecord]
mov rdi, qword [rsp + 0x10e0]
mov rcx, qword [rsp + 0x10d0]
xor rcx, rsp
call fcn.1403addc0
add rsp, 0x10e8
pop r13
pop r12
pop rsi
pop rbp
ret
mov r13d, 1
jmp 0x14001e17e
xor al, al
jmp 0x14001e184
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14001e18c