Function at 0x140017190
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
mov rcx, r9
xor edx, edx
mov r8d, 0x620
mov r12, r9
xor r13d, r13d
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, CView::CView
mov dword [r12], 0x620
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 0x140017210
xor eax, eax
jmp 0x1400175d1
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 0x140017269
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140017209
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
setne r13b
mov eax, r13d
jmp 0x1400175d1
and dword [rsp + 0x58], 0xfbfff7ff
xor r9d, r9d
mov rdx, rbp
lea r8d, [r9 + 1]
mov rcx, rsi
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 0x1400172b5
or rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400175c9
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 0x1400175fb
cmp dword [rsp + 0x40], 1
jne 0x1400175fb
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 0x1400175fb
cmp dword [rsp + 0x40], 1
jne 0x1400175fb
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 0x1400175fb
cmp dword [rsp + 0x40], 1
jne 0x1400175fb
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 0x1400175f7
cmp dword [rsp + 0x40], 1
jne 0x1400175f7
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 0x1400175f7
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 0x1400175f7
lea r8d, [rbx + 1]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x1400175f7
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 0x1400175ac
lea rdi, [r12 + 0x210]
nop dword [rax]
lea r8, [rsp + 0xad0]
mov rax, rdi
sub r8, rdi
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400174b4
add rax, 2
test ecx, ecx
jne 0x1400174a0
test edx, edx
jne 0x140017588
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 0x1400174e4
add rax, 2
test ecx, ecx
jne 0x1400174d0
test edx, edx
jne 0x140017588
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 0x14001752a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140017588
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 0x140017554
add rax, 2
test ecx, ecx
jne 0x140017540
test edx, edx
jne 0x140017588
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 0x140017584
add rax, 2
test ecx, ecx
jne 0x140017570
test edx, edx
je 0x1400175ef
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 0x140017490
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov eax, r13d
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 0x1400175be
xor eax, eax
jmp 0x1400175c1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400175c9