Function at 0x8530b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push edi
push ebp
push ebx
sub esp, 0x2a8
mov edi, dword [esp + 0x2b8]
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov bl, 0
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x8530e1
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x8530d5
push eax
push edi
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [esp + 0xc]
push eax
push 0xa45d94
push DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x853322
mov edx, 0
jne 0x853318
mov edi, dword [esp + 0x2bc]
mov dword [esp], edx
mov dword [esp + 4], esi
mov esi, dword [esp + 0x2c0]
test bl, bl
jne 0x853330
mov ebx, dword [esp]
mov ebp, dword [esp + 0x2b8]
lea edx, [esp + 0x10]
push 0x200
push edx
mov eax, ebx
push eax
push dword [esp + 0x18]
add ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x85315f
mov esi, dword [esp + 4]
jmp 0x853318
lea edi, [esp + 0x10]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x853179
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x85316d
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea edi, [esp + 0x10]
mov esi, ebp
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x8531ab
or dl, dl
je 0x8531a7
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x8531ab
add edi, 2
add esi, 2
or dl, dl
jne 0x85318b
xor eax, eax
jmp 0x8531b0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x853138
mov esi, dword [esp + 0x2c0]
mov edi, dword [esp + 0x2bc]
mov dword [esp], ebx
lea edx, [esp + 0x10]
lea eax, [esp + 0x210]
push eax
push 0x20019
push 0
push edx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
test ebp, ebp
jne 0x85330a
lea eax, [esp + 0x214]
push eax
push 0x20019
push 0
push 0xa45d84
push dword [esp + 0x220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
test ebp, ebp
jne 0x8532fd
mov dword [esp + 0x218], 1
mov dword [esp + 0x21c], esi
xor ecx, ecx
lea edx, [esp + 0x218]
lea eax, [esp + 0x21c]
push eax
push edi
push edx
push ecx
push ecx
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
test ebp, ebp
jne 0x8532f0
lea ecx, [esp + 0x220]
xor edx, edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], edx
mov dword [ecx + 0x38], edx
mov dword [ecx + 0x3c], edx
mov dword [ecx + 0x40], edx
mov dword [ecx + 0x44], edx
mov dword [ecx + 0x48], edx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x50], edx
mov dword [ecx + 0x54], edx
mov dword [ecx + 0x58], edx
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x60], edx
mov dword [ecx + 0x64], edx
mov dword [ecx + 0x68], edx
mov dword [ecx + 0x6c], edx
mov dword [ecx + 0x70], edx
mov dword [ecx + 0x74], edx
mov dword [ecx + 0x78], edx
mov dword [ecx + 0x7c], edx
mov dword [ecx + 0x80], edx
mov dword [ecx + 0x84], edx
mov byte [esp + 0x220], 0x88
lea edx, [esp + 0x220]
push 0x4000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x8532f0
xor edx, edx
mov dword [esp + 8], edx
push dword [esp + 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
test ebp, ebp
je 0x853126
mov esi, dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add esp, 0x2a8
pop ebx
pop ebp
pop edi
ret
mov esi, dword [esp + 4]
jmp 0x853318