Function at 0x489975
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 [0x51a438]
neg edi
sbb edi, edi
inc edi
test esi, esi
mov dword [ebp - 0xc], eax
jne 0x4899d5
test edi, edi
jne 0x4899d5
lea eax, [ebp - 0x20]
push eax
xor eax, eax
inc eax
lea esi, [ebp - 0xc]
mov dword [ebp - 0x20], 0x2e
call fcn.004035c1
mov esi, dword [ebp - 0x24]
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040328b
and dword [ebp - 4], 0
and dword [ebp - 8], 0
test esi, esi
mov dword [ebp - 0x18], 0x100
mov ebx, str.Backup
jne 0x489d22
test edi, edi
jne 0x489d22
mov esi, dword [ebp - 0xc]
push 0x2001f
push esi
push SysReAllocStringLen
lea eax, [ebp - 4]
call fcn.00401247
test eax, eax
je 0x489a35
cmp dword [ebp - 4], edi
je 0x489a2d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0xc]
jmp 0x489cd3
mov eax, dword [0x51a438]
mov dword [ebp - 0x14], eax
mov eax, 0x100
lea ecx, [ebp - 0x14]
call fcn.00403308
push 0x4f7548
lea ecx, [ebp - 4]
push ecx
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.0040127a
or eax, 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403334
push str.Audio
lea edi, [ebp - 0x20]
call fcn.004031b3
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00403396
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x489a98
push eax
call fcn.004013aa
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 0x489ce8
push 0x2001f
push esi
push SysReAllocStringLen
lea eax, [ebp - 8]
call fcn.00401247
test eax, eax
je 0x489b0e
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x489ad8
push eax
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x489ae9
push eax
call fcn.004013aa
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x489afa
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0
je 0x489ccd
push dword [ebp - 4]
call esi
jmp 0x489ccd
mov eax, dword [0x51a438]
mov dword [ebp - 0x20], eax
mov eax, 0x100
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.00403308
push ebx
lea ecx, [ebp - 4]
push ecx
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.0040127a
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00403334
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 0x489c16
push 0x2001f
push esi
mov edi, SysReAllocStringLen
push edi
lea eax, [ebp - 0x10]
call fcn.00401247
test eax, eax
jne 0x489c16
push 1
push esi
push 0x4f7548
lea eax, [ebp - 4]
push eax
call fcn.0047a0a2
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 0x489ba7
push dword [ebp - 8]
call ebx
and dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
je 0x489bb2
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x1c]
push edi
lea ecx, [ebp - 0x10]
call fcn.0047a0cd
add esi, 0xfffffff4
cmp esi, dword [0x51a43c]
je 0x489bd2
push esi
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x489be3
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x489bf7
push eax
call fcn.004013aa
cmp dword [ebp - 8], 0
je 0x489c02
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], 0
je 0x489e2d
push dword [ebp - 4]
call ebx
jmp 0x489e2d
push 1
push esi
push 0x4f7548
lea eax, [ebp - 4]
push eax
call fcn.0047a0a2
cmp dword [ebp - 0x10], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x489c38
push dword [ebp - 0x10]
call edi
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x489c49
push eax
call fcn.004013aa
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x489c67
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x489c7b
push eax
call fcn.004013aa
mov esi, dword [ebp - 0x24]
push 0x4fe5f8
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.00401247
test eax, eax
je 0x489d57
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x489cb9
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], esi
je 0x489cc3
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x489ccd
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x489ce1
push eax
call fcn.004013aa
xor eax, eax
jmp 0x489e44
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x489cf9
push eax
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x489d0a
push eax
call fcn.004013aa
cmp dword [ebp - 4], 0
je 0x489e2d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x489e2d
push 0x2001f
push dword [ebp + 8]
lea eax, [ebp - 8]
push SysReAllocStringLen
call fcn.00401247
test eax, eax
je 0x489d4c
cmp dword [ebp - 8], 0
je 0x489ccd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x489ccd
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x489c7e
push 0x4fe5b0
lea ecx, [ebp - 0x10]
call fcn.0047a0cd
push 0x4fcd68
lea ecx, [ebp - 0x10]
call fcn.0047a0cd
test esi, esi
je 0x489e0c
and dword [ebp - 0x14], 0
push 0x2001f
push str.opencommand
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.00401247
test eax, eax
jne 0x489e01
mov eax, dword [0x51a438]
mov dword [ebp - 0x24], eax
mov eax, 0x10f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x10e
call fcn.00403308
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.0040127a
or eax, 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00403334
mov esi, dword [ebp - 0x24]
push 1
push esi
push 0x4f7548
lea eax, [ebp - 0x14]
push eax
call fcn.0047a0a2
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x489dfb
push eax
call fcn.004013aa
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x489e0c
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], 0
je 0x489e17
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], 0
je 0x489e22
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x489e2d
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x489e41
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret