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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bc88
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5ca104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.MasterPDF
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00404e80
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004048b0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x30]
call fcn.0041c750
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x24]
call fcn.0041c750
lea eax, [ebp + 8]
mov byte [ebp - 4], 5
push eax
mov edx, str.ExplorerFileExts_
lea ecx, [ebp - 0x10]
call fcn.0041c750
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x24]
push 0
call fcn.00412350
add esp, 0x1c
lea ecx, [ebp - 0x20]
push eax
call fcn.00404e80
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x416909
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x4166c0
push 0x80004005
call fcn.004071e0
push ecx
push eax
call fcn.00540fa6
add esp, 8
test eax, eax
jne 0x416906
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push eax
push dword [ebp - 0x24]
push ebx
call esi
mov edx, dword [ebp - 0x10]
mov ecx, SysReAllocStringLen
push str.ProgId
call fcn.00412350
add esp, 4
lea ecx, [ebp - 0x14]
push eax
call fcn.00404e80
mov byte [ebp - 4], 8
push str.MasterPDF
push dword [ebp - 0x14]
call fcn.00540fa6
add esp, 8
test eax, eax
jne 0x416724
push str.ProgId
push dword [ebp - 0x10]
push SysReAllocStringLen
call esi
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x416739
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41674e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x416750
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str..exe
mov byte [ebp - 4], 9
lea eax, [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x5a4c40
push eax
call fcn.00420660
mov edx, dword [ebp - 0x10]
mov ecx, SysReAllocStringLen
push str.Application
call fcn.00412350
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x41678f
xor ecx, ecx
jmp 0x4167a3
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416794
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00405730
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4167be
push 0x80004005
call fcn.004071e0
push eax
push dword [ebp - 0x14]
call fcn.00540fa6
add esp, 8
test eax, eax
jne 0x4167dd
push str.Application
push dword [ebp - 0x10]
push SysReAllocStringLen
call esi
mov esi, dword [ebp - 0x30]
mov ecx, ebx
mov edx, esi
call fcn.00412480
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push esi
push ebx
call edi
push str.UserChoice
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0041c840
mov byte [ebp - 4], 0xa
mov ecx, SysReAllocStringLen
mov edx, dword [eax]
push str.ProgId
call fcn.00412350
mov edx, eax
add esp, 8
test edx, edx
jne 0x416825
xor ecx, ecx
jmp 0x41683f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416830
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00405730
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00404e00
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x416866
push 0x80004005
call fcn.004071e0
push eax
push dword [ebp - 0x14]
call fcn.00540fa6
add esp, 8
test eax, eax
jne 0x4168ea
push str.UserChoice
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.0041c840
add esp, 4
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
push 0x40000
push 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4168da
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x4c]
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 esi
push SysReAllocStringLen
call edi
lea ecx, [ebp - 0x38]
call fcn.00404e00
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x34], 1
call fcn.00404e00
lea ecx, [ebp - 0x14]
call fcn.00404e00
mov eax, dword [ebp - 0x20]
jmp 0x416910
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], 0
or esi, 0xffffffff
mov byte [ebp - 4], 6
lea ecx, [eax - 0x10]
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x416957
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416953
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416953
push 0
push dword [edx + 4]
call edi
jmp 0x416957
mov ecx, edx
call ebx
mov byte [ebp - 4], 5
mov eax, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x416998
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416994
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416994
push 0
push dword [edx + 4]
call edi
jmp 0x416998
mov ecx, edx
call ebx
mov byte [ebp - 4], 4
mov eax, esi
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4169d9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4169d5
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4169d5
push 0
push dword [edx + 4]
call edi
jmp 0x4169d9
mov ecx, edx
call ebx
mov byte [ebp - 4], 3
mov eax, esi
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x416a1a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416a16
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416a16
push 0
push dword [edx + 4]
call edi
jmp 0x416a1a
mov ecx, edx
call ebx
mov byte [ebp - 4], 2
mov eax, esi
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x416a5b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416a57
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416a57
push 0
push dword [edx + 4]
call edi
jmp 0x416a5b
mov ecx, edx
call ebx
mov byte [ebp - 4], 1
mov eax, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x416a9c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416a98
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416a98
push 0
push dword [edx + 4]
call edi
jmp 0x416a9c
mov ecx, edx
call ebx
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x416add
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416ad9
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416ad9
push 0
push dword [edx + 4]
call edi
jmp 0x416add
mov ecx, edx
call ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x416b1f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416b1b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416b1b
push 0
push dword [edx + 4]
call edi
jmp 0x416b1f
mov ecx, edx
call esi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret