Function at 0x47d12f
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 [0x4f0980]
neg edi
sbb edi, edi
inc edi
test esi, esi
mov dword [ebp - 0xc], eax
jne 0x47d18f
test edi, edi
jne 0x47d18f
lea eax, [ebp - 0x20]
push eax
xor eax, eax
inc eax
lea esi, [ebp - 0xc]
mov dword [ebp - 0x20], 0x2e
call fcn.004032fb
mov esi, dword [ebp - 0x24]
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00402fdb
and dword [ebp - 4], 0
and dword [ebp - 8], 0
test esi, esi
mov dword [ebp - 0x18], 0x100
mov ebx, str.Backup
jne 0x47d4dc
test edi, edi
jne 0x47d4dc
mov esi, dword [ebp - 0xc]
push 0x2001f
push esi
push SysReAllocStringLen
lea eax, [ebp - 4]
call fcn.00401247
test eax, eax
je 0x47d1ef
cmp dword [ebp - 4], edi
je 0x47d1e7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0xc]
jmp 0x47d48d
mov eax, dword [0x4f0980]
mov dword [ebp - 0x14], eax
mov eax, 0x100
lea ecx, [ebp - 0x14]
call fcn.00403042
push 0x4d1350
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.0040306e
push str.Audio
lea edi, [ebp - 0x20]
call fcn.00402f03
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004030d0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47d252
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 0x47d4a2
push 0x2001f
push esi
push SysReAllocStringLen
lea eax, [ebp - 8]
call fcn.00401247
test eax, eax
je 0x47d2c8
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x47d292
push eax
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
je 0x47d2a3
push eax
call fcn.004013aa
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x47d2b4
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0
je 0x47d487
push dword [ebp - 4]
call esi
jmp 0x47d487
mov eax, dword [0x4f0980]
mov dword [ebp - 0x20], eax
mov eax, 0x100
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.00403042
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.0040306e
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 0x47d3d0
push 0x2001f
push esi
mov edi, SysReAllocStringLen
push edi
lea eax, [ebp - 0x10]
call fcn.00401247
test eax, eax
jne 0x47d3d0
push 1
push esi
push 0x4d1350
lea eax, [ebp - 4]
push eax
call fcn.004709a8
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 0x47d361
push dword [ebp - 8]
call ebx
and dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
je 0x47d36c
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x1c]
push edi
lea ecx, [ebp - 0x10]
call fcn.004709d3
add esi, 0xfffffff4
cmp esi, dword [0x4f0984]
je 0x47d38c
push esi
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
je 0x47d39d
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47d3b1
push eax
call fcn.004013aa
cmp dword [ebp - 8], 0
je 0x47d3bc
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], 0
je 0x47d5e7
push dword [ebp - 4]
call ebx
jmp 0x47d5e7
push 1
push esi
push 0x4d1350
lea eax, [ebp - 4]
push eax
call fcn.004709a8
cmp dword [ebp - 0x10], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x47d3f2
push dword [ebp - 0x10]
call edi
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x47d403
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 [0x4f0984]
je 0x47d421
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47d435
push eax
call fcn.004013aa
mov esi, dword [ebp - 0x24]
push 0x4d7cf8
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 0x47d511
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x47d473
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], esi
je 0x47d47d
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x47d487
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47d49b
push eax
call fcn.004013aa
xor eax, eax
jmp 0x47d5fe
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x47d4b3
push eax
call fcn.004013aa
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
je 0x47d4c4
push eax
call fcn.004013aa
cmp dword [ebp - 4], 0
je 0x47d5e7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47d5e7
push 0x2001f
push dword [ebp + 8]
lea eax, [ebp - 8]
push SysReAllocStringLen
call fcn.00401247
test eax, eax
je 0x47d506
cmp dword [ebp - 8], 0
je 0x47d487
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47d487
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47d438
push 0x4d7cb0
lea ecx, [ebp - 0x10]
call fcn.004709d3
push 0x4d63f8
lea ecx, [ebp - 0x10]
call fcn.004709d3
test esi, esi
je 0x47d5c6
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 0x47d5bb
mov eax, dword [0x4f0980]
mov dword [ebp - 0x24], eax
mov eax, 0x10f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x10e
call fcn.00403042
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.0040306e
mov esi, dword [ebp - 0x24]
push 1
push esi
push 0x4d1350
lea eax, [ebp - 0x14]
push eax
call fcn.004709a8
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x47d5b5
push eax
call fcn.004013aa
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x47d5c6
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], 0
je 0x47d5d1
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], 0
je 0x47d5dc
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x47d5e7
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47d5fb
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret