Function at 0x40c31c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4520d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x750
mov dword [ebp - 0x71c], ecx
lea ecx, [ebp - 0x68]
call fcn.0043d7b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x71c]
mov dword [eax + 0x674], 0xfffefffe
mov ecx, dword [ebp - 0x71c]
mov dword [ecx + 0x678], 0xfffefffe
mov edx, dword [ebp - 0x71c]
mov dword [edx + 0x67c], 0xfffefffe
mov eax, dword [ebp - 0x71c]
mov dword [eax + 0x680], 0xfffefffe
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.00402df0
cmp eax, 1
jne 0x40c3ba
push 0
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.00402c76
jmp 0x40c3cb
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.00402f17
mov ecx, dword [ebp - 0x71c]
mov dword [ecx + 0x1308], 0
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.00402d81
cmp eax, 1
jne 0x40c5c1
lea ecx, [ebp - 0x6ec]
call sub.MFC42u.DLL_CString::CString_2
mov byte [ebp - 4], 1
mov dword [ebp - 0x6e8], 0
mov dword [ebp - 0x4d8], 0
lea edx, [ebp - 0x6e8]
push edx
lea eax, [ebp - 0x6f4]
push eax
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.00402e4d
lea ecx, [ebp - 0x6f4]
call sub.MFC42u.DLL_CString::CString
cmp dword [ebp - 0x6e8], 0
je 0x40c455
mov dword [ebp - 0x4d8], 1
lea ecx, [ebp - 0x6f8]
push ecx
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.00401dd8
mov dword [ebp - 0x720], eax
mov edx, dword [ebp - 0x720]
mov dword [ebp - 0x724], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x724]
push eax
lea ecx, [ebp - 0x6ec]
call sub.MFC42u.DLL_CString::operator_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6f8]
call sub.MFC42u.DLL_CString::CString
push 0
push 0x1f
lea ecx, [ebp - 0x6fc]
push ecx
lea ecx, [ebp - 0x6ec]
call sub.MFC42u.DLL_CString::Left
mov dword [ebp - 0x728], eax
mov edx, dword [ebp - 0x728]
mov dword [ebp - 0x72c], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x72c]
call fcn.00402b00
push eax
push 1
push 0x461898
push 1
push 0x80000001
lea ecx, [ebp - 0x68]
call fcn.0043de11
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6fc]
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x700]
push eax
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.00401da7
mov dword [ebp - 0x730], eax
mov ecx, dword [ebp - 0x730]
mov dword [ebp - 0x734], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x734]
push edx
lea ecx, [ebp - 0x6ec]
call sub.MFC42u.DLL_CString::operator_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x700]
call sub.MFC42u.DLL_CString::CString
push 0
push 0x1f
lea eax, [ebp - 0x704]
push eax
lea ecx, [ebp - 0x6ec]
call sub.MFC42u.DLL_CString::Left
mov dword [ebp - 0x738], eax
mov ecx, dword [ebp - 0x738]
mov dword [ebp - 0x73c], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x73c]
call fcn.00402b00
push eax
push 1
push 0x4618b0
push 1
push 0x80000001
lea ecx, [ebp - 0x68]
call fcn.0043de11
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x704]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6ec]
call sub.MFC42u.DLL_CString::CString
jmp 0x40c741
lea ecx, [ebp - 0x6f0]
call sub.MFC42u.DLL_CString::CString_2
mov byte [ebp - 4], 6
lea edx, [ebp - 0x708]
push edx
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.0040300b
mov dword [ebp - 0x740], eax
mov eax, dword [ebp - 0x740]
mov dword [ebp - 0x744], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x744]
push ecx
lea ecx, [ebp - 0x6f0]
call sub.MFC42u.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x708]
call sub.MFC42u.DLL_CString::CString
push 0
push 0x1f
lea edx, [ebp - 0x70c]
push edx
lea ecx, [ebp - 0x6f0]
call sub.MFC42u.DLL_CString::Left
mov dword [ebp - 0x748], eax
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x74c], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x74c]
call fcn.00402b00
push eax
push 1
push 0x4618c4
push 1
push 0x80000001
lea ecx, [ebp - 0x68]
call fcn.0043de11
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x710]
push ecx
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.00402f4c
mov dword [ebp - 0x750], eax
mov edx, dword [ebp - 0x750]
mov dword [ebp - 0x754], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x754]
push eax
lea ecx, [ebp - 0x6f0]
call sub.MFC42u.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x710]
call sub.MFC42u.DLL_CString::CString
push 0
push 0x1f
lea ecx, [ebp - 0x714]
push ecx
lea ecx, [ebp - 0x6f0]
call sub.MFC42u.DLL_CString::Left
mov dword [ebp - 0x758], eax
mov edx, dword [ebp - 0x758]
mov dword [ebp - 0x75c], edx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x75c]
call fcn.00402b00
push eax
push 1
push 0x4618dc
push 1
push 0x80000001
lea ecx, [ebp - 0x68]
call fcn.0043de11
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x714]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 0x4d8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6f0]
call sub.MFC42u.DLL_CString::CString
push 1
mov ecx, dword [ebp - 0x71c]
add ecx, 0x11c4
call fcn.004030ca
mov ecx, dword [ebp - 0x71c]
call fcn.00419114
mov ecx, dword [ebp - 0x71c]
call fcn.004181d7
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
mov dword [ebp - 0x6e4], eax
cmp dword [ebp - 0x4d8], 0
jne 0x40c934
push 0
lea eax, [ebp - 0x6e0]
push eax
push 1
push 0x4618f0
push 1
push 0x80000001
lea ecx, [ebp - 0x68]
call fcn.0043dc91
push 0
lea ecx, [ebp - 0x478]
push ecx
push 1
push 0x461908
push 1
push 0x80000001
lea ecx, [ebp - 0x68]
call fcn.0043dc91
lea edx, [ebp - 0x6e0]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x478]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x10], 0
jmp 0x40c7ff
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x6e4]
jae 0x40c87d
push 0x54
lea edx, [ebp - 0x4d4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsW]
lea ecx, [ebp - 0x6e0]
push ecx
lea edx, [ebp - 0x4cc]
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c878
mov eax, dword [ebp - 0x71c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x674], ecx
mov dword [ebp - 0x47c], 1
push 0x10000000
mov edx, dword [ebp - 0x71c]
add edx, 0x67c
push edx
mov eax, dword [ebp - 0x71c]
mov ecx, dword [eax + 0x674]
push ecx
call dword [sym.imp.WINMM.dll_mixerGetID]
jmp 0x40c87d
jmp 0x40c7f6
cmp dword [ebp - 0x47c], 0
je 0x40c921
mov dword [ebp - 0x47c], 0
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x64], 0
jmp 0x40c8af
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x10]
jae 0x40c921
push 0x50
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.WINMM.dll_waveInGetDevCapsW]
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c91f
mov edx, dword [ebp - 0x71c]
mov eax, dword [ebp - 0x64]
mov dword [edx + 0x678], eax
mov dword [ebp - 0x47c], 1
push 0x20000000
mov ecx, dword [ebp - 0x71c]
add ecx, 0x680
push ecx
mov edx, dword [ebp - 0x71c]
mov eax, dword [edx + 0x678]
push eax
call dword [sym.imp.WINMM.dll_mixerGetID]
jmp 0x40c921
jmp 0x40c8a6
cmp dword [ebp - 0x47c], 0
jne 0x40c934
mov dword [ebp - 0x4d8], 1
cmp dword [ebp - 0x4d8], 0
je 0x40cc02
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x71c]
add edx, 0x674
push edx
push 0x2015
push 0xffffffffffffffff
call dword [sym.imp.WINMM.dll_waveOutMessage]
test eax, eax
jne 0x40c9ac
mov eax, dword [ebp - 0x71c]
cmp dword [eax + 0x674], 0xffffffff
jne 0x40c982
mov ecx, dword [ebp - 0x71c]
mov dword [ecx + 0x674], 0
push 0x10000000
mov edx, dword [ebp - 0x71c]
add edx, 0x67c
push edx
mov eax, dword [ebp - 0x71c]
mov ecx, dword [eax + 0x674]
push ecx
call dword [sym.imp.WINMM.dll_mixerGetID]
jmp 0x40ca9a
lea edx, [ebp - 0x480]
push edx
push 0x20019
push 0
push 0x46191c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ca9a
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x64], 0x104
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0x461974
mov eax, dword [ebp - 0x480]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ca8d
mov dword [ebp - 0x64], 0
jmp 0x40ca1d
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x6e4]
jae 0x40ca8d
push 0x54
lea eax, [ebp - 0x4d4]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsW]
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40ca8b
mov ecx, dword [ebp - 0x71c]
mov edx, dword [ebp - 0x64]
mov dword [ecx + 0x674], edx
push 0x10000000
mov eax, dword [ebp - 0x71c]
add eax, 0x67c
push eax
mov ecx, dword [ebp - 0x71c]
mov edx, dword [ecx + 0x674]
push edx
call dword [sym.imp.WINMM.dll_mixerGetID]
jmp 0x40ca8d
jmp 0x40ca14
mov eax, dword [ebp - 0x480]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
mov word [ecx], 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x71c]
add eax, 0x678
push eax
push 0x2015
push 0xffffffffffffffff
call dword [sym.imp.WINMM.dll_waveInMessage]
test eax, eax
jne 0x40cb0b
mov ecx, dword [ebp - 0x71c]
cmp dword [ecx + 0x678], 0xffffffff
jne 0x40cae2
mov edx, dword [ebp - 0x71c]
mov dword [edx + 0x678], 0
push 0x20000000
mov eax, dword [ebp - 0x71c]
add eax, 0x680
push eax
mov ecx, dword [ebp - 0x71c]
mov edx, dword [ecx + 0x678]
push edx
call dword [sym.imp.WINMM.dll_mixerGetID]
jmp 0x40cbfa
lea eax, [ebp - 0x480]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftMultimediaSound_Mapper
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cbfa
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x64], 0x104
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Record
mov ecx, dword [ebp - 0x480]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cbed
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x64], 0
jmp 0x40cb85
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x10]
jae 0x40cbed
push 0x50
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.WINMM.dll_waveInGetDevCapsW]
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40cbeb
mov edx, dword [ebp - 0x71c]
mov eax, dword [ebp - 0x64]
mov dword [edx + 0x678], eax
push 0x20000000
mov ecx, dword [ebp - 0x71c]
add ecx, 0x680
push ecx
mov edx, dword [ebp - 0x71c]
mov eax, dword [edx + 0x678]
push eax
call dword [sym.imp.WINMM.dll_mixerGetID]
jmp 0x40cbed
jmp 0x40cb7c
mov ecx, dword [ebp - 0x480]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov word [edx], 0
mov dword [ebp - 0x718], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0043d7be
mov eax, dword [ebp - 0x718]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8