Function at 0x78f48c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x2a0
mov edi, dword [esp + 0x2b4]
mov esi, 0xffffffff
mov ebx, dword [esp + 0x2b8]
mov ebp, dword [esp + 0x2bc]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x78f4c6
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x78f4ba
push eax
push edi
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [esp]
push eax
push 0x8a5a54
push DirectSoundEnumerateA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, eax
test edx, edx
jne 0x78f6f8
mov eax, 0
jne 0x78f6ef
mov esi, 0xffffffff
mov dword [esp + 0x29c], esi
mov ebx, eax
mov ebp, edi
nop
lea esi, [esi]
lea ecx, [esp + 4]
push 0x200
push ecx
mov edx, ebx
push edx
push dword [esp + 0xc]
add ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x78f536
mov esi, dword [esp + 0x29c]
jmp 0x78f6ef
lea edi, [esp + 4]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x78f550
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x78f544
lea edx, [esp + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea edi, [esp + 4]
mov esi, ebp
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x78f582
or dl, dl
je 0x78f57e
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x78f582
add edi, 2
add esi, 2
or dl, dl
jne 0x78f562
xor eax, eax
jmp 0x78f587
sbb eax, eax
or eax, 1
test eax, eax
jne 0x78f50c
mov esi, dword [esp + 0x29c]
mov ebp, dword [esp + 0x2bc]
mov ebx, dword [esp + 0x2b8]
lea edx, [esp + 4]
lea eax, [esp + 0x204]
push eax
push 0x20019
push 0
push edx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x78f6ef
lea eax, [esp + 0x208]
push eax
push 0x20019
push 0
push 0x8a5a44
push dword [esp + 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x78f6e2
mov dword [esp + 0x20c], 1
mov dword [esp + 0x210], ebp
xor ecx, ecx
lea edx, [esp + 0x20c]
lea eax, [esp + 0x210]
push eax
push ebx
push edx
push ecx
push ecx
push dword [esp + 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x78f6d5
lea ebp, [esp + 0x214]
xor eax, eax
and eax, 0xff
mov edx, eax
shl edx, 8
or eax, edx
mov ecx, eax
shl ecx, 0x10
or eax, ecx
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x84], eax
mov byte [esp + 0x214], 0x88
lea eax, [esp + 0x214]
push 0x4000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x78f6d5
xor esi, esi
push dword [esp + 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x204]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add esp, 0x2a0
pop ebx
pop ebp
pop esi
pop edi
ret