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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbf20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x501108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
push str.MasterPDF
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00404260
push str._2d3d
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00417310
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x30]
call fcn.004305e0
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x20]
call fcn.004305e0
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
mov edx, str.ExplorerFileExts_
lea ecx, [ebp - 0x10]
call fcn.004305e0
mov byte [ebp - 4], 5
mov ecx, esi
mov edx, dword [ebp - 0x20]
push 0
call fcn.00456550
add esp, 0x1c
lea ecx, [ebp - 0x1c]
push eax
call fcn.00404260
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
je 0x457a08
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x457777
push 0x80004005
call fcn.00404500
push eax
push dword [ebp - 0x1c]
call fcn.004af0d9
add esp, 8
test eax, eax
jne 0x457a08
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push eax
push dword [ebp - 0x20]
push esi
call edi
mov edx, dword [ebp - 0x10]
mov ecx, SysReAllocString
push str.ProgId
call fcn.00456550
add esp, 4
lea ecx, [ebp - 0x14]
push eax
call fcn.00404260
mov byte [ebp - 4], 7
push str.MasterPDF
push dword [ebp - 0x14]
call fcn.004af0d9
add esp, 8
test eax, eax
jne 0x4577dd
push str.ProgId
push dword [ebp - 0x10]
push SysReAllocString
call edi
call fcn.004047a0
mov ecx, eax
test ecx, ecx
jne 0x4577f2
push 0x80004005
call fcn.00404500
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push str..exe
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
push str._s_s
push eax
call fcn.00413b70
mov edx, dword [ebp - 0x10]
mov ecx, SysReAllocString
push str.Application
call fcn.00456550
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x457836
xor ecx, ecx
jmp 0x45784f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457840
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00404160
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x45786a
push 0x80004005
call fcn.00404500
push esi
push dword [ebp - 0x14]
call fcn.004af0d9
add esp, 8
test eax, eax
jne 0x457889
push str.Application
push dword [ebp - 0x10]
push SysReAllocString
call edi
mov edi, dword [ebp - 0x30]
mov edx, edi
mov ecx, dword [ebp - 0x2c]
call fcn.00456610
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.UserChoice
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00417310
mov byte [ebp - 4], 9
mov ecx, SysReAllocString
mov edx, dword [eax]
push str.ProgId
call fcn.00456550
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4578d4
xor ecx, ecx
jmp 0x4578ef
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4578e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00404160
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457917
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x457928
push 0x80004005
call fcn.00404500
push eax
push dword [ebp - 0x14]
call fcn.004af0d9
add esp, 8
test eax, eax
jne 0x4579c8
push str.UserChoice
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00417310
add esp, 0xc
mov edi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
push 0x40000
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4579a2
push 1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x48]
push eax
push 4
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [ebp - 0x34]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4579c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4579e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457a0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x457a0a
xor edi, edi
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457a28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457a46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457a64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457a82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457aa0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457abe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x457add
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret