Function at 0x417610
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xb0
mov eax, dword [esp + 0xb4]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
test eax, eax
mov dword [edi + 0x40], eax
jne 0x417781
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x2015
push 0xffffffffffffffff
call dword [sym.imp.WINMM.dll_waveInMessage]
mov ebx, dword [sym.imp.WINMM.dll_waveInGetDevCapsA]
test eax, eax
jne 0x417662
cmp dword [esp + 0x10], 0xffffffff
jne 0x417717
lea edx, [esp + 0x1c]
mov byte [esp + 0x5c], 0
push edx
push str.SoftwareMicrosoftMultimediaSound_Mapper
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x417709
lea eax, [esp + 0x18]
lea ecx, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push str.Record
push eax
mov dword [esp + 0x30], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x5c]
test al, al
je 0x417709
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
mov ebp, eax
xor eax, eax
test ebp, ebp
mov dword [esp + 0x10], eax
jle 0x41770d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x28]
push 0x30
push edx
push eax
call ebx
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x30]
push eax
push ecx
call esi
test eax, eax
je 0x41771b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ebp
mov dword [esp + 0x10], eax
jl 0x4176d8
mov dword [esp + 0x10], 0
jmp 0x41771b
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], 0
jmp 0x41771b
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push 0x30
push edx
push eax
call ebx
test eax, eax
pop ebx
jne 0x41780b
lea ecx, [esp + 0x2c]
lea esi, [edi + 0x70]
push ecx
mov ecx, esi
call fcn.00428fc8
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0x20000000
push edx
push eax
call dword [sym.imp.WINMM.dll_mixerGetID]
test eax, eax
jne 0x41780b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0x20000000
push ebp
push ecx
push edx
mov ecx, edi
call fcn.00417860
jmp 0x41780e
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x2015
push 0xffffffffffffffff
call dword [sym.imp.WINMM.dll_waveOutMessage]
test eax, eax
jne 0x4177a5
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x4177ab
xor eax, eax
mov dword [esp + 0xc], eax
lea edx, [esp + 0x24]
push 0x34
push edx
push eax
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsA]
test eax, eax
jne 0x41780b
lea esi, [edi + 0x70]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00428fc8
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x10000000
push ecx
push edx
call dword [sym.imp.WINMM.dll_mixerGetID]
test eax, eax
jne 0x41780b
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
mov ecx, dword [esp + 0xc]
push 0x10000000
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
mov ecx, edi
call fcn.00417860
jmp 0x41780e
or eax, 0xffffffff
lea esi, [edi + 0x70]
push str.Digital_Audio_MB
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [edi + 0x44], eax
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x41783c
push 0x4378a0
mov ecx, esi
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x41783c
xor eax, eax
jmp 0x417841
mov eax, 1
mov dword [edi + 0xd0], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xb0
ret 4