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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8660
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x516108]
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.00404470
push str._2d3d
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004176b0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x30]
call fcn.00432630
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x20]
call fcn.00432630
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
mov edx, str.ExplorerFileExts_
lea ecx, [ebp - 0x10]
call fcn.00432630
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
push 0
push dword [ebp - 0x20]
mov edx, esi
call fcn.004595a0
add esp, 0x18
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
je 0x45b9f3
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x45b76f
push 0x80004005
call fcn.00404710
push eax
push dword [ebp - 0x1c]
call fcn.004ba7da
add esp, 8
test eax, eax
jne 0x45b9f3
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push eax
push dword [ebp - 0x20]
push esi
call edi
push str.ProgId
push dword [ebp - 0x10]
mov edx, SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.004595a0
mov byte [ebp - 4], 7
push str.MasterPDF
push dword [ebp - 0x14]
call fcn.004ba7da
add esp, 0x10
test eax, eax
jne 0x45b7cc
push str.ProgId
push dword [ebp - 0x10]
push SysReAllocString
call edi
call fcn.004049b0
mov ecx, eax
test ecx, ecx
jne 0x45b7e1
push 0x80004005
call fcn.00404710
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.004140d0
push str.Application
push dword [ebp - 0x10]
mov edx, SysReAllocString
lea ecx, [ebp - 0x34]
call fcn.004595a0
add esp, 0x18
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004021f0
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b849
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x45b85a
push 0x80004005
call fcn.00404710
push esi
push dword [ebp - 0x14]
call fcn.004ba7da
add esp, 8
test eax, eax
jne 0x45b879
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.004596f0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.UserChoice
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.004176b0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
push str.ProgId
push dword [eax]
mov edx, SysReAllocString
call fcn.004595a0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.004021f0
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b8e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x45b904
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x45b915
push 0x80004005
call fcn.00404710
push eax
push dword [ebp - 0x14]
call fcn.004ba7da
add esp, 8
test eax, eax
jne 0x45b9b3
push str.UserChoice
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.004176b0
add esp, 4
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 0x45b98d
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 0x45b9b3
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 0x45b9d3
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 0x45b9f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45b9f5
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 0x45ba13
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 0x45ba31
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 0x45ba4f
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 0x45ba6d
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 0x45ba8b
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 0x45baa9
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 0x45bac8
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