Function at 0x479ec7
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 [0x4e9150]
neg edi
sbb edi, edi
inc edi
test esi, esi
mov dword [ebp - 0xc], eax
jne 0x479f27
test edi, edi
jne 0x479f27
lea eax, [ebp - 0x20]
push eax
xor eax, eax
inc eax
lea esi, [ebp - 0xc]
mov dword [ebp - 0x20], 0x2e
call fcn.00403208
mov esi, dword [ebp - 0x24]
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00402ee8
and dword [ebp - 4], 0
and dword [ebp - 8], 0
test esi, esi
mov dword [ebp - 0x18], 0x100
mov ebx, str.Backup
jne 0x47a274
test edi, edi
jne 0x47a274
mov esi, dword [ebp - 0xc]
push 0x2001f
push esi
push SysReAllocString
lea eax, [ebp - 4]
call fcn.00401247
test eax, eax
je 0x479f87
cmp dword [ebp - 4], edi
je 0x479f7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0xc]
jmp 0x47a225
mov eax, dword [0x4e9150]
mov dword [ebp - 0x14], eax
mov eax, 0x100
lea ecx, [ebp - 0x14]
call fcn.00402f4f
push 0x4cc340
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.00402f7b
push str.Audio
lea edi, [ebp - 0x20]
call fcn.00402e10
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00402fdd
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x479fea
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 0x47a23a
push 0x2001f
push esi
push SysReAllocString
lea eax, [ebp - 8]
call fcn.00401247
test eax, eax
je 0x47a060
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x47a02a
push eax
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x47a03b
push eax
call fcn.004013aa
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x47a04c
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0
je 0x47a21f
push dword [ebp - 4]
call esi
jmp 0x47a21f
mov eax, dword [0x4e9150]
mov dword [ebp - 0x20], eax
mov eax, 0x100
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.00402f4f
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.00402f7b
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 0x47a168
push 0x2001f
push esi
mov edi, SysReAllocString
push edi
lea eax, [ebp - 0x10]
call fcn.00401247
test eax, eax
jne 0x47a168
push 1
push esi
push 0x4cc340
lea eax, [ebp - 4]
push eax
call fcn.0046d7b3
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 0x47a0f9
push dword [ebp - 8]
call ebx
and dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
je 0x47a104
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x1c]
push edi
lea ecx, [ebp - 0x10]
call fcn.0046d7de
add esi, 0xfffffff4
cmp esi, dword [0x4e9154]
je 0x47a124
push esi
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x47a135
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x47a149
push eax
call fcn.004013aa
cmp dword [ebp - 8], 0
je 0x47a154
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], 0
je 0x47a37f
push dword [ebp - 4]
call ebx
jmp 0x47a37f
push 1
push esi
push 0x4cc340
lea eax, [ebp - 4]
push eax
call fcn.0046d7b3
cmp dword [ebp - 0x10], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x47a18a
push dword [ebp - 0x10]
call edi
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x47a19b
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 [0x4e9154]
je 0x47a1b9
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x47a1cd
push eax
call fcn.004013aa
mov esi, dword [ebp - 0x24]
push 0x4d25d0
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 0x47a2a9
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x47a20b
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], esi
je 0x47a215
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x47a21f
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x47a233
push eax
call fcn.004013aa
xor eax, eax
jmp 0x47a396
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x47a24b
push eax
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x47a25c
push eax
call fcn.004013aa
cmp dword [ebp - 4], 0
je 0x47a37f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47a37f
push 0x2001f
push dword [ebp + 8]
lea eax, [ebp - 8]
push SysReAllocString
call fcn.00401247
test eax, eax
je 0x47a29e
cmp dword [ebp - 8], 0
je 0x47a21f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47a21f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47a1d0
push 0x4d2588
lea ecx, [ebp - 0x10]
call fcn.0046d7de
push 0x4d1058
lea ecx, [ebp - 0x10]
call fcn.0046d7de
test esi, esi
je 0x47a35e
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 0x47a353
mov eax, dword [0x4e9150]
mov dword [ebp - 0x24], eax
mov eax, 0x10f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x10e
call fcn.00402f4f
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.00402f7b
mov esi, dword [ebp - 0x24]
push 1
push esi
push 0x4cc340
lea eax, [ebp - 0x14]
push eax
call fcn.0046d7b3
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x47a34d
push eax
call fcn.004013aa
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x47a35e
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], 0
je 0x47a369
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], 0
je 0x47a374
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x47a37f
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x47a393
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret