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

Disassembly:
sub esp, 0xf40
mov eax, dword [0x68e698]
push ebp
push esi
push edi
mov dl, byte [0x64f55f]
mov ecx, 9
mov esi, str.SYSTEMCurrentControlSetControlClass
lea edi, [esp + 0x43c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0xf48], eax
xor eax, eax
mov ecx, 0x37
lea edi, [esp + 0x463]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x130], dl
mov ecx, 0x40
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x234], dl
mov ecx, 0x40
lea edi, [esp + 0x235]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x448]
push ecx
push 0x80000002
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0x104
mov byte [esp + 0x23], 0
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4656ae
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x38]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4656a3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x28], eax
jbe 0x4656a3
lea esp, [esp]
mov edx, dword [esp + 0x24]
push 0x104
lea ecx, [esp + 0x648]
push ecx
push eax
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyA]
test eax, eax
jne 0x465686
mov cl, byte [esp + eax + 0x43c]
mov byte [esp + eax + 0x338], cl
inc eax
test cl, cl
jne 0x4653f1
lea edi, [esp + 0x338]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x465410
mov ax, word [0x653cb0]
mov word [edi], ax
lea eax, [esp + 0x644]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465430
lea edi, [esp + 0x338]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465441
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x344]
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46568e
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push str.Class
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x4654b0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x46568e
lea ecx, [esp + 0x2c]
push str.MEDIA
push ecx
call fcn.00625eac
add esp, 8
test eax, eax
jne 0x46567b
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x3c]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x46568e
mov eax, dword [esp + 0x20]
xor ebp, ebp
test eax, eax
jbe 0x46567b
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x648]
push ecx
push ebp
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyA]
test eax, eax
jne 0x4655f3
mov cl, byte [esp + eax + 0x338]
mov byte [esp + eax + 0x540], cl
inc eax
test cl, cl
jne 0x465521
lea edi, [esp + 0x540]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x465540
mov ax, word [0x653cb0]
mov word [edi], ax
lea eax, [esp + 0x644]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465560
lea edi, [esp + 0x540]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465571
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x54c]
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46567b
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push str.Driver
push edx
call esi
test eax, eax
jne 0x4655e8
lea eax, [esp + 0x2c]
push 0xad9f20
push eax
call fcn.00625eac
add esp, 8
test eax, eax
je 0x465602
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jb 0x465500
jmp 0x46567b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push str.DriverDesc
push ecx
mov byte [esp + 0x27], 1
call esi
test eax, eax
jne 0x465640
jmp 0x465630
mov cl, byte [esp + eax + 0x2c]
mov byte [esp + eax + 0x234], cl
inc eax
test cl, cl
jne 0x465630
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push str.DriverVersion
push ecx
call esi
test eax, eax
jne 0x465670
mov edi, edi
mov cl, byte [esp + eax + 0x2c]
mov byte [esp + eax + 0x130], cl
inc eax
test cl, cl
jne 0x465660
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, byte [esp + 0xf]
test al, al
jne 0x4656a3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x4653d0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edi, 0x64f55f
mov esi, 0xad9f80
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x465819
push 0xad9f20
lea eax, [esp + 0x74c]
push str._Sound_Card_Drv__t_t:___s__n
push eax
call fcn.0061660d
lea eax, [esp + 0x754]
add esp, 0xc
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4656f0
mov ebp, dword [esp + 0xf50]
mov edi, ebp
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465703
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x64f55f
lea esi, [esp + 0x234]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x46576e
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x74c]
push str._Sound_Card_t_t:___s__n
push ecx
call fcn.0061660d
lea eax, [esp + 0x754]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465758
mov edi, ebp
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465764
jmp 0x4657a8
push 0xad9f80
lea edx, [esp + 0x74c]
push str._Sound_Card_t_t:___s__n
push edx
call fcn.0061660d
lea eax, [esp + 0x754]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465791
mov edi, ebp
sub eax, edx
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4657a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x64f55f
lea esi, [esp + 0x130]
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x465819
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0x74c]
push str._Sound_Version_t_t:___s__n
push edx
call fcn.0061660d
lea eax, [esp + 0x754]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4657f5
sub eax, edx
dec ebp
mov edi, ebp
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465801
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xf48]
pop edi
pop esi
pop ebp
call fcn.006162c0
add esp, 0xf40
ret