Function at 0x5091a0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0xe58
push ebp
xor ebp, ebp
cmp dword [str.Crescendo], ebp
push esi
push edi
je 0x509222
mov esi, 0x732548
jmp 0x5091c0
mov edi, dword [esi]
mov ecx, 0x6bc140
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5091f6
test dx, dx
je 0x5091f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5091f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5091d0
xor eax, eax
jmp 0x5091fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x50920e
mov eax, dword [esi + 4]
push 0x6bc0cc
push eax
push edi
call fcn.00508d70
add ebp, 1
cmp dword [ebp + ebp*8 + 0x732548], 0
lea esi, [ebp + ebp*8 + 0x732548]
jne 0x5091c0
mov edi, dword [str.WavePad]
xor esi, esi
test edi, edi
je 0x5092ab
mov eax, edi
mov ecx, 0x6bc140
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50925b
test dx, dx
je 0x509257
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50925b
add eax, 4
add ecx, 4
test dx, dx
jne 0x509235
xor eax, eax
jmp 0x509260
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x509278
add esi, 1
mov ecx, esi
imul ecx, ecx, 0x5c
mov eax, dword [ecx + 0x7325dc]
test eax, eax
jne 0x509230
jmp 0x5092ab
mov edx, esi
imul edx, edx, 0x5c
mov ecx, dword [edx + 0x7325e4]
test ecx, ecx
je 0x5092ab
imul esi, esi, 0x5c
lea edi, [esi + 0x7325e4]
mov eax, dword [esi + 0x7325e0]
call fcn.005090f0
mov ecx, dword [edi + 4]
add edi, 4
test ecx, ecx
jne 0x509290
mov edi, dword [str.WavePad]
test edi, edi
mov dword [esp + 0x18], 0
je 0x50957a
mov dword [esp + 0xc], 0
push ebx
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x7325e4], 0
lea eax, [eax + 0x7325e4]
je 0x50955a
mov ebx, eax
mov dword [esp + 0x20], eax
mov ebp, dword [eax]
push ebp
push 0x6c69c4
mov esi, 0x104
lea edi, [esp + 0x650]
call fcn.004af0d0
add esp, 8
lea eax, [esp + 0x30]
push eax
push 0x6bc0cc
push 0
mov ecx, edi
mov edx, SysReAllocStringLen
call fcn.004af7e0
cmp word [esp + 0x30], 0
jne 0x509372
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts._sUserChoice
lea edi, [esp + 0x448]
call fcn.004af0d0
add esp, 8
lea ecx, [esp + 0x30]
push ecx
push 0x6bc0cc
push str.Progid
mov ecx, edi
mov edx, SysReAllocStringLen
call fcn.004af7e0
lea edx, [esp + 0x30]
push str.Applications_
push edx
call fcn.0069c886
add esp, 8
test eax, eax
jne 0x509548
cmp word [esp + 0x30], ax
je 0x509548
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x7325e0]
push ecx
lea edx, [esp + 0x34]
push edx
push str.SoftwareClasses_s_shell_s
mov esi, 0x104
lea edi, [esp + 0x244]
call fcn.004af0d0
add esp, 0xc
mov dword [esp + 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], SysReAllocStringLen
xor ebx, ebx
lea ecx, [ecx]
mov ebp, dword [esp + ebx*4 + 0x28]
lea eax, [esp + 0x24]
push eax
push 1
push 0
lea ecx, [esp + 0x244]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x509538
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x7325e0]
push ecx
lea edx, [esp + 0x23c]
push edx
push str._scommand
mov esi, 0x104
lea edi, [esp + 0xa64]
call fcn.004af0d0
add esp, 0xc
lea eax, [esp + 0x850]
push eax
push 0x6bc0cc
push 0
mov ecx, edi
mov edx, ebp
call fcn.004af7e0
lea ecx, [esp + 0x850]
push str._extfind
push ecx
call fcn.0069c886
add esp, 8
test eax, eax
je 0x509538
movzx ecx, word [eax + 0x10]
xor edx, edx
test cx, cx
je 0x509463
jmp 0x509450
cmp cx, 0x20
ja 0x509463
movzx ecx, word [eax + edx*2 + 0x12]
add edx, 1
test cx, cx
jne 0x509450
push 5
lea edx, [eax + edx*2 + 0x10]
push 0x6bc140
push edx
call fcn.006b23f4
add esp, 0xc
test eax, eax
jne 0x509538
xor esi, esi
cmp word [esp + 0x238], si
je 0x50949a
lea eax, [esp + 0x238]
push eax
push ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [esp + 0x30]
push ecx
push str.SoftwareClasses_s_shell
lea edx, [esp + 0xc68]
call fcn.00401000
add esp, 8
lea edx, [esp + 0x14]
push edx
push 1
push esi
lea eax, [esp + 0xc6c]
push eax
push ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x509506
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x34]
push ecx
push esi
push esi
push esi
push edx
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], esi
seta al
test al, al
jne 0x509538
lea ecx, [esp + 0x30]
push ecx
push str.SoftwareClasses_sDefaultIcon
lea edx, [esp + 0x448]
call fcn.00401000
add esp, 8
cmp word [esp + 0x440], si
je 0x509538
lea edx, [esp + 0x440]
push edx
push ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add ebx, 1
cmp ebx, 2
jb 0x5093b0
mov ebx, dword [esp + 0x20]
add ebx, 4
cmp dword [ebx], 0
mov dword [esp + 0x20], ebx
mov eax, ebx
jne 0x5092e1
mov eax, dword [esp + 0x1c]
add eax, 1
mov dword [esp + 0x1c], eax
imul eax, eax, 0x5c
cmp dword [eax + 0x7325dc], 0
mov dword [esp + 0x10], eax
jne 0x5092c4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xe58
ret