Function at 0x405930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x148
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
push esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionAppletsVolume_Control_
push 0x40edf4
call ebx
push 0x40edc8
push 0x40edf4
call ebx
lea eax, [esp + 0x14]
push eax
push 0x40edf4
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40597e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
push 0x40d870
push 0x40edf4
call ebx
mov eax, dword [0x40edec]
xor edx, edx
test eax, eax
mov dword [esp + 0x1c], edx
jbe 0x405d67
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x2a
xor eax, eax
lea edi, [esp + 0x30]
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x38], edx
mov edx, dword [0x40f2fc]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0xa8
push ecx
push edx
call dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
test eax, eax
jne 0x405971
mov eax, dword [esp + 0x48]
cmp eax, 4
jne 0x405b31
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x68]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x405a2c
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405a43
lea edx, [esp + 0x58]
push 0x10
lea eax, [esp + 0xdc]
push edx
push eax
call fcn.00407d90
add esp, 0xc
push 0x40edf4
push 0x40e8b0
call ebp
lea ecx, [esp + 0xd8]
push ecx
push 0x40e8b0
call ebx
mov edx, dword [esp + 0x50]
lea eax, [edx + 1]
mov ecx, eax
mov dword [0x40f304], eax
shl ecx, 5
add ecx, eax
shl ecx, 2
push ecx
call fcn.00407d55
mov dword [0x40f2f4], eax
mov eax, dword [0x40f304]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
shl eax, 2
push eax
call fcn.00407d55
mov dword [0x40e2f4], eax
mov eax, dword [0x40f304]
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*4]
shl edx, 2
push edx
call fcn.00407d55
mov dword [0x40e2f0], eax
mov eax, dword [0x40f304]
mov ecx, eax
mov edi, dword [0x40f2f4]
shl ecx, 5
add ecx, eax
xor eax, eax
shl ecx, 2
mov edx, ecx
add esp, 0xc
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x40e8b0
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x405d51
mov edx, dword [0x40f2f4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.LineStates
push ecx
mov dword [esp + 0x30], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405d51
cmp eax, 7
jne 0x405d51
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x68]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x405b86
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405b9d
lea edx, [esp + 0x58]
push 0x10
lea eax, [esp + 0x11c]
push edx
push eax
call fcn.00407d90
add esp, 0xc
push 0x40edf4
push 0x40e3b0
call ebp
lea ecx, [esp + 0x118]
push ecx
push 0x40e3b0
call ebx
mov edx, dword [esp + 0x50]
lea eax, [edx + 1]
mov ecx, eax
mov dword [0x40f308], eax
shl ecx, 5
add ecx, eax
shl ecx, 2
push ecx
call fcn.00407d55
mov dword [0x40edf0], eax
mov eax, dword [0x40f308]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
shl eax, 2
push eax
call fcn.00407d55
mov dword [0x40e2d0], eax
mov eax, dword [0x40f308]
mov ecx, eax
mov edi, dword [0x40edf0]
shl ecx, 5
add ecx, eax
xor eax, eax
shl ecx, 2
mov edx, ecx
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x40e3b0
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x405c69
mov edx, dword [0x40edf0]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.LineStates
push ecx
mov dword [esp + 0x30], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40f308]
lea eax, [eax + eax*8]
shl eax, 3
push eax
call fcn.00407d55
mov edx, dword [0x40f2fc]
mov ecx, dword [esp + 0x40]
add esp, 4
mov esi, 0x18
mov edi, 1
mov dword [0x40f2f8], eax
push 0x80000002
push 0x40e2d8
push edx
mov dword [0x40e2d8], esi
mov dword [0x40e2dc], ecx
mov dword [0x40e2e0], 0x70010001
mov dword [0x40e2e4], edi
mov dword [0x40e2e8], 0x94
mov dword [0x40e2ec], 0x40e318
call dword [sym.imp.WINMM.dll_mixerGetLineControlsA]
test eax, eax
jne 0x405971
mov eax, dword [0x40e328]
mov ecx, dword [0x40f308]
cmp eax, ecx
jbe 0x405cf0
mov eax, ecx
mov dword [0x40e2f8], eax
shl eax, 2
push eax
call fcn.00407d55
mov ecx, dword [0x40e31c]
mov edx, dword [0x40e2f8]
add esp, 4
mov dword [0x40e304], ecx
mov ecx, dword [0x40f2fc]
mov dword [0x40e3ac], eax
mov eax, dword [0x40f2f8]
push edi
push 0x40e300
push ecx
mov dword [0x40e300], esi
mov dword [0x40e308], edi
mov dword [0x40e30c], edx
mov dword [0x40e310], 0x48
mov dword [0x40e314], eax
call dword [sym.imp.WINMM.dll_mixerGetControlDetailsA]
mov edx, dword [esp + 0x1c]
mov eax, dword [0x40edec]
inc edx
cmp edx, eax
mov dword [esp + 0x1c], edx
jb 0x4059a3
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret