Function at 0x404380
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x410004]
sub esp, 0x94
push ebx
push ebp
mov ebp, 4
push esi
cmp eax, ebp
push edi
jne 0x404685
cmp dword [0x410008], 0xa
jne 0x404685
call fcn.00404690
test eax, eax
je 0x404680
mov ecx, 5
mov esi, str.SoftwareRealtekAC97
lea edi, [esp + 0x24]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xa
mov esi, str.SoftwareMicrosoftMultimediaSound_Mapper
lea edi, [esp + 0x3c]
push eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xe
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionAppletsSysTray
lea edi, [esp + 0x6c]
mov dword [esp + 0x1c], ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], 0
push ecx
push 0x80000001
movsw word es:[edi], word [esi]
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40455d
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.FirstTime
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40454b
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x20]
push ebp
push eax
push ebp
push 0
mov edi, 1
push str.FirstTime
push ecx
mov dword [esp + 0x38], edi
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4044cb
mov edx, dword [esp + 0x10]
push 0x2b
push 0x40d5f0
push edi
push eax
push str.Playback
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0x2b
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push 0x40d5f0
push ecx
push 0
push str.UserPlayback
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
push ecx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40453f
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.Services
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40453f
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
or ecx, ebp
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push str.Services
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
call fcn.00407800
mov eax, dword [esp + 0x10]
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push 0x80000001
call ebx
test eax, eax
jne 0x404685
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x20]
push ebp
push eax
push ebp
push 0
mov edi, 1
push str.FirstTime
push ecx
mov dword [esp + 0x38], edi
call esi
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0x80000001
call ebx
test eax, eax
jne 0x404600
mov edx, dword [esp + 0x10]
push 0x2b
push 0x40d5f0
push edi
push eax
push str.Playback
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0x2b
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push 0x40d5f0
push ecx
push 0
push str.UserPlayback
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
push ecx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404679
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
mov edi, 4
push str.Services
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404679
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
or ecx, edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push str.Services
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebp
call fcn.00407800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret