Function at 0x415bf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xb0
mov eax, dword [esp + 0xb4]
push ebp
mov ebp, ecx
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 0
mov dword [ebp + 0x40], eax
jne 0x415d61
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 0x415c42
cmp dword [esp + 0x10], 0xffffffff
jne 0x415cf7
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 0x415ce9
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 0x43166c
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 0x415ce9
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
mov edi, eax
xor eax, eax
test edi, edi
mov dword [esp + 0x10], eax
jle 0x415ced
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 0x415cfb
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x415cb8
mov dword [esp + 0x10], 0
jmp 0x415cfb
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
jmp 0x415cfb
mov edi, 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 0x415deb
lea ecx, [esp + 0x2c]
lea esi, [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.00425078
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 0x415deb
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0x20000000
push edi
push ecx
push edx
mov ecx, ebp
call fcn.00415e20
jmp 0x415dee
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 0x415d85
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x415d8b
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 0x415deb
lea esi, [ebp + 0x68]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00425078
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 0x415deb
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, ebp
call fcn.00415e20
jmp 0x415dee
or eax, 0xffffffff
push 0x431660
lea ecx, [ebp + 0x68]
mov dword [esp + 0x14], eax
mov dword [ebp + 0x44], eax
call sub.MFC42.DLL_CString::Find_2
xor edx, edx
pop edi
test eax, eax
mov eax, dword [esp + 0xc]
pop esi
setge dl
mov dword [ebp + 0xc8], edx
pop ebp
add esp, 0xb0
ret 4