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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 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.0041c750
push 0
mov edx, str.SoftwareClasses.pdf
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00412350
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.00412350
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 0x4121c7
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x411f79
push 0x80004005
call fcn.004071e0
push eax
push ecx
call fcn.00540fa6
add esp, 8
test eax, eax
jne 0x4121c7
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [eax - 0xc], 0
je 0x411fc6
mov edx, eax
lea ebx, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x411fa0
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 0x411fd0
push 0
push str.SoftwareClasses.pdf
push edi
call esi
push str.ProgId
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.00412350
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.00540fa6
add esp, 8
test eax, eax
jne 0x412019
push str.ProgId
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call esi
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x41202e
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412043
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x412045
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 0x5a4c40
push eax
call fcn.00420660
push str.Application
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.00412350
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x412086
xor ecx, ecx
jmp 0x41209f
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412090
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 0x4120ba
push 0x80004005
call fcn.004071e0
push eax
push dword [ebp - 0x10]
call fcn.00540fa6
add esp, 8
test eax, eax
jne 0x4120db
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call esi
mov esi, dword [ebp - 0x1c]
mov ecx, edi
mov edx, esi
call fcn.00412480
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.00412350
mov edx, eax
add esp, 4
test edx, edx
jne 0x412112
xor ecx, ecx
jmp 0x412126
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412117
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 0x412141
push 0x80004005
call fcn.004071e0
push eax
push dword [ebp - 0x10]
call fcn.00540fa6
add esp, 8
test eax, eax
jne 0x4121b0
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 0x4121a4
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 0x4121c9
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 0x41222d
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 0x412228
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 0x412221
push 0
push dword [edx + 4]
call edi
jmp 0x41222d
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x41222d
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 0x412288
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 0x412283
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 0x41227c
push 0
push dword [edx + 4]
call edi
jmp 0x412288
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x412288
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 0x4122e3
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 0x4122de
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 0x4122d7
push 0
push dword [edx + 4]
call edi
jmp 0x4122e3
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x4122e3
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 0x412337
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412333
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x412333
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