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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542510
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x580124]
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.00407ab0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x1c]
call fcn.0046e0e0
push 0
mov edx, str.SoftwareClasses.pdf
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0046c470
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.00407ab0
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x1c]
push str.previous.pdf
call fcn.0046c470
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.00407ab0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
cmp dword [ecx - 0xc], 0
je 0x46c2e7
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x46c099
push 0x80004005
call fcn.00407be0
push eax
push ecx
call fcn.00515ba3
add esp, 8
test eax, eax
jne 0x46c2e7
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [eax - 0xc], 0
je 0x46c0e6
mov edx, eax
lea ebx, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46c0c0
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 0x46c0f0
push 0
push str.SoftwareClasses.pdf
push edi
call esi
push str.ProgId
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.0046c470
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.00407ab0
mov byte [ebp - 4], 4
push str.MasterPDF
push dword [ebp - 0x10]
call fcn.00515ba3
add esp, 8
test eax, eax
jne 0x46c139
push str.ProgId
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call esi
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46c14e
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c163
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46c165
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 0x564468
push eax
call fcn.004232b0
push str.Application
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.0046c470
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x46c1a6
xor ecx, ecx
jmp 0x46c1bf
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c1b0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.004078f0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x46c1da
push 0x80004005
call fcn.00407be0
push eax
push dword [ebp - 0x10]
call fcn.00515ba3
add esp, 8
test eax, eax
jne 0x46c1fb
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call esi
mov esi, dword [ebp - 0x1c]
mov ecx, edi
mov edx, esi
call fcn.0046c5a0
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.0046c470
mov edx, eax
add esp, 4
test edx, edx
jne 0x46c232
xor ecx, ecx
jmp 0x46c246
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c237
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.004078f0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x46c261
push 0x80004005
call fcn.00407be0
push eax
push dword [ebp - 0x10]
call fcn.00515ba3
add esp, 8
test eax, eax
jne 0x46c2d0
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 0x46c2c4
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.00407b80
lea ecx, [ebp - 0x10]
call fcn.00407b80
jmp 0x46c2e9
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 0x46c34d
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 0x46c348
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 0x46c341
push 0
push dword [edx + 4]
call edi
jmp 0x46c34d
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x46c34d
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 0x46c3a8
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 0x46c3a3
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 0x46c39c
push 0
push dword [edx + 4]
call edi
jmp 0x46c3a8
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x46c3a8
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 0x46c403
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 0x46c3fe
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 0x46c3f7
push 0
push dword [edx + 4]
call edi
jmp 0x46c403
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x46c403
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 0x46c457
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c453
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c453
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