Function at 0x10003570
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x1000358c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 1
push 0xf003f
push 0
call sym.vtvbtoyx.dll__SetupDiOpenClassRegKeyExW_20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x100035b2
xor eax, eax
jmp 0x10003764
mov dword [ebp - 0x10], 0
jmp 0x100035c4
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x28
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100035ff
cmp dword [ebp - 0x14], 0xea
jne 0x10003726
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000362d
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10003764
push 0
push 0
push 0
push 0
push str.NoUseClass
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003657
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100035bb
mov edx, dword [ebp + 8]
and edx, 1
je 0x10003689
push 0
push 0
push 0
push 0
push str.NoInstallClass
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003689
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100035bb
mov edx, dword [ebp + 8]
and edx, 2
je 0x100036bb
push 0
push 0
push 0
push 0
push str.NoDisplayClass
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100036bb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100035bb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x1000371d
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x68]
cmp eax, 0x7b
jne 0x10003700
mov ecx, 2
imul edx, ecx, 0x25
movzx eax, word [ebp + edx - 0x68]
cmp eax, 0x7d
jne 0x10003700
mov ecx, 2
imul edx, ecx, 0x25
xor eax, eax
mov word [ebp + edx - 0x68], ax
mov ecx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp + 0xc]
push ecx
mov edx, 2
shl edx, 0
lea eax, [ebp + edx - 0x68]
push eax
call dword [0x10000000]
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x14], 0
je 0x1000372e
jmp 0x10003733
jmp 0x100035bb
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 0
je 0x1000374b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 8]
jae 0x1000375f
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10003764
mov eax, 1
mov esp, ebp
pop ebp
ret 0x18