Function at 0x489e11
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str.AudioCD
push dword [ebp + 8]
call edi
mov esi, eax
neg esi
sbb esi, esi
push str.Directory
push dword [ebp + 8]
inc esi
mov dword [ebp - 0x24], esi
call edi
add esp, 0x10
mov edi, eax
mov eax, dword [0x51b438]
neg edi
sbb edi, edi
inc edi
test esi, esi
mov dword [ebp - 0xc], eax
jne 0x489e71
test edi, edi
jne 0x489e71
lea eax, [ebp - 0x20]
push eax
xor eax, eax
inc eax
lea esi, [ebp - 0xc]
mov dword [ebp - 0x20], 0x2e
call fcn.004034a6
mov esi, dword [ebp - 0x24]
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00403184
and dword [ebp - 4], 0
and dword [ebp - 8], 0
test esi, esi
mov dword [ebp - 0x18], 0x100
mov ebx, str.Backup
jne 0x48a1be
test edi, edi
jne 0x48a1be
mov esi, dword [ebp - 0xc]
push 0x2001f
push esi
push SysReAllocStringLen
lea eax, [ebp - 4]
call fcn.0040124f
test eax, eax
je 0x489ed1
cmp dword [ebp - 4], edi
je 0x489ec9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0xc]
jmp 0x48a16f
mov eax, dword [0x51b438]
mov dword [ebp - 0x14], eax
mov eax, 0x100
lea ecx, [ebp - 0x14]
call fcn.00403201
push 0x4f8548
lea ecx, [ebp - 4]
push ecx
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.00401282
or eax, 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040322d
push str.Audio
lea edi, [ebp - 0x20]
call fcn.00403098
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0040328f
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x489f34
push eax
call fcn.004013b2
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x48a184
push 0x2001f
push esi
push SysReAllocStringLen
lea eax, [ebp - 8]
call fcn.0040124f
test eax, eax
je 0x489faa
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x489f74
push eax
call fcn.004013b2
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x489f85
push eax
call fcn.004013b2
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x489f96
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0
je 0x48a169
push dword [ebp - 4]
call esi
jmp 0x48a169
mov eax, dword [0x51b438]
mov dword [ebp - 0x20], eax
mov eax, 0x100
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.00403201
push ebx
lea ecx, [ebp - 4]
push ecx
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.00401282
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040322d
mov esi, dword [ebp - 0x20]
and dword [ebp - 0x10], 0
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x48a0b2
push 0x2001f
push esi
mov edi, SysReAllocStringLen
push edi
lea eax, [ebp - 0x10]
call fcn.0040124f
test eax, eax
jne 0x48a0b2
push 1
push esi
push 0x4f8548
lea eax, [ebp - 4]
push eax
call fcn.0047aa66
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 8], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x48a043
push dword [ebp - 8]
call ebx
and dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
je 0x48a04e
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x1c]
push edi
lea ecx, [ebp - 0x10]
call fcn.0047aa91
add esi, 0xfffffff4
cmp esi, dword [0x51b43c]
je 0x48a06e
push esi
call fcn.004013b2
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x48a07f
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x48a093
push eax
call fcn.004013b2
cmp dword [ebp - 8], 0
je 0x48a09e
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], 0
je 0x48a2c9
push dword [ebp - 4]
call ebx
jmp 0x48a2c9
push 1
push esi
push 0x4f8548
lea eax, [ebp - 4]
push eax
call fcn.0047aa66
cmp dword [ebp - 0x10], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x48a0d4
push dword [ebp - 0x10]
call edi
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x48a0e5
push eax
call fcn.004013b2
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x48a103
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x48a117
push eax
call fcn.004013b2
mov esi, dword [ebp - 0x24]
push 0x4ff618
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x10], 0
push 0x2001f
push str.shell
push dword [ebp - 8]
lea eax, [ebp - 0x10]
call fcn.0040124f
test eax, eax
je 0x48a1f3
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x48a155
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], esi
je 0x48a15f
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x48a169
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x48a17d
push eax
call fcn.004013b2
xor eax, eax
jmp 0x48a2e0
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x48a195
push eax
call fcn.004013b2
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x48a1a6
push eax
call fcn.004013b2
cmp dword [ebp - 4], 0
je 0x48a2c9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48a2c9
push 0x2001f
push dword [ebp + 8]
lea eax, [ebp - 8]
push SysReAllocStringLen
call fcn.0040124f
test eax, eax
je 0x48a1e8
cmp dword [ebp - 8], 0
je 0x48a169
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48a169
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48a11a
push 0x4ff5d0
lea ecx, [ebp - 0x10]
call fcn.0047aa91
push 0x4fdd60
lea ecx, [ebp - 0x10]
call fcn.0047aa91
test esi, esi
je 0x48a2a8
and dword [ebp - 0x14], 0
push 0x2001f
push str.opencommand
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.0040124f
test eax, eax
jne 0x48a29d
mov eax, dword [0x51b438]
mov dword [ebp - 0x24], eax
mov eax, 0x10f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x10e
call fcn.00403201
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.00401282
or eax, 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040322d
mov esi, dword [ebp - 0x24]
push 1
push esi
push 0x4f8548
lea eax, [ebp - 0x14]
push eax
call fcn.0047aa66
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x48a297
push eax
call fcn.004013b2
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x48a2a8
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], 0
je 0x48a2b3
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], 0
je 0x48a2be
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x48a2c9
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x48a2dd
push eax
call fcn.004013b2
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret