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

Disassembly:
sub esp, 0x20
push ebx
lea eax, [esp + 0x18]
push esi
mov dword [esp + 0x20], ecx
xor esi, esi
push eax
push 0x20019
add ecx, 0x114
push esi
push ecx
push 0x80000002
xor bl, bl
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401880
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0xff
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401869
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401858
test bl, bl
mov dword [esp + 0x34], eax
jne 0x40184d
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push 0xff
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40184d
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40183c
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push 0
mov esi, 0xff
push str.Class
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
call ebp
test eax, eax
jne 0x401831
push edi
push str.MEDIA
call fcn.00406840
add esp, 8
test eax, eax
jne 0x401831
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push 0
push str.DeviceDesc
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
call ebp
test eax, eax
jne 0x401831
mov esi, str.SoundMAX_Integrated_Digital_Audio
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40172d
test cl, cl
je 0x401729
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40172d
add eax, 2
add esi, 2
test cl, cl
jne 0x401709
xor eax, eax
jmp 0x401732
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4017a2
mov esi, str.Digital_Audio_MB
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401761
test cl, cl
je 0x40175d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401761
add eax, 2
add esi, 2
test cl, cl
jne 0x40173d
xor eax, eax
jmp 0x401766
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4017a2
mov esi, str.SoundMAX_Integrated_Digital_HD_Audio
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401795
test cl, cl
je 0x401791
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401795
add eax, 2
add esi, 2
test cl, cl
jne 0x401771
xor eax, eax
jmp 0x40179a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401831
mov eax, dword [esp + 0x28]
mov ax, word [eax]
cmp ax, 4
je 0x4017e2
cmp ax, 5
je 0x4017e2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
push 0
push str.Driver
push eax
mov bl, 1
mov dword [esp + 0x28], 0xff
mov dword [esp + 0x2c], 1
call ebp
jmp 0x401831
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push str.Control
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401831
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push 0
push str.Driver
push edx
mov bl, 1
mov dword [esp + 0x28], 0xff
mov dword [esp + 0x2c], 1
call ebp
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x34]
inc ecx
test bl, bl
mov dword [esp + 0x34], ecx
je 0x40164c
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
inc ecx
test bl, bl
mov dword [esp + 0x20], ecx
je 0x4015fe
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov al, bl
pop esi
pop ebx
add esp, 0x20
ret 0xc
mov al, bl
pop esi
pop ebx
add esp, 0x20
ret 0xc