Function at 0x411490
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576540
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 edi, ecx
test edx, edx
mov ecx, str.PdfRecommand
mov eax, str.MasterPDF
cmove eax, ecx
lea ecx, [ebp - 0x14]
push eax
call fcn.00404e80
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x1c]
call fcn.0041bb30
push 0
mov edx, str.SoftwareClasses.pdf
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00411920
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.00404e80
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x1c]
push str.previous.pdf
call fcn.00411920
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.00404e80
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
cmp dword [ecx - 0xc], 0
je 0x411797
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x411549
push 0x80004005
call fcn.004071e0
push eax
push ecx
call fcn.0053c1f5
add esp, 8
test eax, eax
jne 0x411797
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [eax - 0xc], 0
je 0x411596
mov edx, eax
lea ebx, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x411570
sub edx, ebx
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.SoftwareClasses.pdf
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x4115a0
push 0
push str.SoftwareClasses.pdf
push edi
call esi
push str.ProgId
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.00411920
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.00404e80
mov byte [ebp - 4], 4
push str.MasterPDF
push dword [ebp - 0x10]
call fcn.0053c1f5
add esp, 8
test eax, eax
jne 0x4115e9
push str.ProgId
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call esi
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4115fe
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x411613
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x411615
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
push str..exe
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push 0x59ecd0
push eax
call fcn.0041f560
push str.Application
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.00411920
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x411656
xor ecx, ecx
jmp 0x41166f
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411660
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00405730
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41168a
push 0x80004005
call fcn.004071e0
push eax
push dword [ebp - 0x10]
call fcn.0053c1f5
add esp, 8
test eax, eax
jne 0x4116ab
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call esi
mov esi, dword [ebp - 0x1c]
mov ecx, edi
mov edx, esi
call fcn.00411a50
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
call esi
push str.ProgId
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
mov ecx, SysReAllocStringLen
call fcn.00411920
mov edx, eax
add esp, 4
test edx, edx
jne 0x4116e2
xor ecx, ecx
jmp 0x4116f6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4116e7
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00405730
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x411711
push 0x80004005
call fcn.004071e0
push eax
push dword [ebp - 0x10]
call fcn.0053c1f5
add esp, 8
test eax, eax
jne 0x411780
lea eax, [ebp - 0x20]
push eax
push 0x40000
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411774
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x3c]
push eax
push 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push SysReAllocStringLen
call esi
lea ecx, [ebp - 0x18]
mov ebx, 1
call fcn.00404e00
lea ecx, [ebp - 0x10]
call fcn.00404e00
jmp 0x411799
xor ebx, ebx
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4117fd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4117f8
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4117f1
push 0
push dword [edx + 4]
call edi
jmp 0x4117fd
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x4117fd
mov ecx, edx
call dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov eax, esi
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x411858
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x411853
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41184c
push 0
push dword [edx + 4]
call edi
jmp 0x411858
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x411858
mov ecx, edx
call dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4118b3
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4118ae
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4118a7
push 0
push dword [edx + 4]
call edi
jmp 0x4118b3
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x4118b3
mov ecx, edx
call dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x411907
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x411903
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x411903
push 0
push dword [edx + 4]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret