Function at 0x4015f0
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 0x4018c6
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 0x4018af
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 0x40189e
test bl, bl
mov dword [esp + 0x34], eax
jne 0x401893
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 0x401893
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 0x401882
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 0x401877
push edi
push str.MEDIA
call fcn.004068a0
add esp, 8
test eax, eax
jne 0x401877
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 0x401877
mov esi, str.SoundMAX_Integrated_Digital_Audio
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40176d
test cl, cl
je 0x401769
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40176d
add eax, 2
add esi, 2
test cl, cl
jne 0x401749
xor eax, eax
jmp 0x401772
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4017e2
mov esi, str.Digital_Audio_MB
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4017a1
test cl, cl
je 0x40179d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4017a1
add eax, 2
add esi, 2
test cl, cl
jne 0x40177d
xor eax, eax
jmp 0x4017a6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4017e2
mov esi, str.SoundMAX_Integrated_Digital_HD_Audio
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4017d5
test cl, cl
je 0x4017d1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4017d5
add eax, 2
add esi, 2
test cl, cl
jne 0x4017b1
xor eax, eax
jmp 0x4017da
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401877
mov eax, dword [esp + 0x28]
mov ax, word [eax]
cmp ax, 4
je 0x401828
cmp ax, 5
je 0x401828
cmp ax, 6
je 0x401828
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 0x401877
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 0x401877
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 0x40168c
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 0x40163e
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