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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5768d8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5c4104]
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.0041bb30
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x24]
call fcn.0041bb30
lea eax, [ebp + 8]
mov byte [ebp - 4], 5
push eax
mov edx, str.ExplorerFileExts_
lea ecx, [ebp - 0x10]
call fcn.0041bb30
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x24]
push 0
call fcn.00411920
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 0x415ed9
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x415c90
push 0x80004005
call fcn.004071e0
push ecx
push eax
call fcn.0053bd35
add esp, 8
test eax, eax
jne 0x415ed6
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.00411920
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.0053bd35
add esp, 8
test eax, eax
jne 0x415cf4
push str.ProgId
push dword [ebp - 0x10]
push SysReAllocStringLen
call esi
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x415d09
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x415d1e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x415d20
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 0x59ecb0
push eax
call fcn.0041f560
mov edx, dword [ebp - 0x10]
mov ecx, SysReAllocStringLen
push str.Application
call fcn.00411920
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x415d5f
xor ecx, ecx
jmp 0x415d73
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415d64
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 0x415d8e
push 0x80004005
call fcn.004071e0
push eax
push dword [ebp - 0x14]
call fcn.0053bd35
add esp, 8
test eax, eax
jne 0x415dad
push str.Application
push dword [ebp - 0x10]
push SysReAllocStringLen
call esi
mov esi, dword [ebp - 0x30]
mov ecx, ebx
mov edx, esi
call fcn.00411a50
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.0041bc20
mov byte [ebp - 4], 0xa
mov ecx, SysReAllocStringLen
mov edx, dword [eax]
push str.ProgId
call fcn.00411920
mov edx, eax
add esp, 8
test edx, edx
jne 0x415df5
xor ecx, ecx
jmp 0x415e0f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415e00
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 0x415e36
push 0x80004005
call fcn.004071e0
push eax
push dword [ebp - 0x14]
call fcn.0053bd35
add esp, 8
test eax, eax
jne 0x415eba
push str.UserChoice
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.0041bc20
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 0x415eaa
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 0x415ee0
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 0x415f27
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x415f23
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x415f23
push 0
push dword [edx + 4]
call edi
jmp 0x415f27
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 0x415f68
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x415f64
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x415f64
push 0
push dword [edx + 4]
call edi
jmp 0x415f68
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 0x415fa9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x415fa5
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x415fa5
push 0
push dword [edx + 4]
call edi
jmp 0x415fa9
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 0x415fea
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x415fe6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x415fe6
push 0
push dword [edx + 4]
call edi
jmp 0x415fea
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 0x41602b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416027
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416027
push 0
push dword [edx + 4]
call edi
jmp 0x41602b
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 0x41606c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x416068
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x416068
push 0
push dword [edx + 4]
call edi
jmp 0x41606c
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 0x4160ad
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4160a9
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4160a9
push 0
push dword [edx + 4]
call edi
jmp 0x4160ad
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 0x4160ef
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4160eb
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4160eb
push 0
push dword [edx + 4]
call edi
jmp 0x4160ef
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