Function at 0x4028a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
or ebp, 0xffffffff
lea edi, [esi + 0x4e5de]
mov eax, ebp
mov ecx, edi
mov word [esi + 0x4e598], bp
mov word [esi + 0x4e5dc], bp
lea edx, [esp + 0x1c]
mov dword [ecx], eax
push edx
mov dword [esp + 0x1c], 4
mov dword [ecx + 4], eax
mov word [ecx + 8], ax
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4a6368
push reloc.dsound.dll_DirectSoundCreate
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ae2
lea ecx, [esp + 0x18]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x4a6360
push eax
call ebx
test eax, eax
jne 0x402ad7
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x402941
cmp eax, 0x65
jae 0x402941
dec eax
mov word [esi + 0x4e598], ax
jmp 0x402948
mov word [esi + 0x4e598], bp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push 0x4a6354
push ecx
call ebx
test eax, eax
je 0x402979
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40298e
cmp eax, 0xc9
jae 0x40298e
dec eax
mov word [edi], ax
jmp 0x402991
mov word [edi], bp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x4a6348
push edx
call ebx
test eax, eax
je 0x4029c2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4029db
cmp eax, 0xc9
jae 0x4029db
dec eax
mov word [esi + 0x4e5e0], ax
jmp 0x4029e2
mov word [esi + 0x4e5e0], bp
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0x4a633c
push eax
call ebx
test eax, eax
jne 0x402ad7
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x402a1d
cmp eax, 0xc9
jae 0x402a1d
dec eax
mov word [esi + 0x4e5e2], ax
jmp 0x402a24
mov word [esi + 0x4e5e2], bp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push 0x4a6330
push ecx
call ebx
test eax, eax
je 0x402a55
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x402a6e
cmp eax, 0xc9
jae 0x402a6e
dec eax
mov word [esi + 0x4e5e4], ax
jmp 0x402a75
mov word [esi + 0x4e5e4], bp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x4a6324
push edx
call ebx
test eax, eax
je 0x402aa6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x402ad0
cmp eax, 0xc9
jae 0x402ad0
mov ecx, dword [esp + 0x10]
dec eax
push ecx
mov word [esi + 0x4e5e6], ax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov word [esi + 0x4e5e6], bp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret