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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564120
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5b3124]
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.00404c40
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x1c]
call fcn.00411680
push 0
mov edx, str.SoftwareClasses.pdf
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0040c7f0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.00404c40
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x1c]
push str.previous.pdf
call fcn.0040c7f0
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.00404c40
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
cmp dword [ecx - 0xc], 0
je 0x40c667
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40c419
push 0x80004005
call fcn.00406fb0
push eax
push ecx
call fcn.0052a4e5
add esp, 8
test eax, eax
jne 0x40c667
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [eax - 0xc], 0
je 0x40c466
mov edx, eax
lea ebx, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40c440
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 0x40c470
push 0
push str.SoftwareClasses.pdf
push edi
call esi
push str.ProgId
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.0040c7f0
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.00404c40
mov byte [ebp - 4], 4
push str.MasterPDF
push dword [ebp - 0x10]
call fcn.0052a4e5
add esp, 8
test eax, eax
jne 0x40c4b9
push str.ProgId
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call esi
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40c4ce
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c4e3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40c4e5
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 0x58ad3c
push eax
call fcn.004155d0
push str.Application
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.0040c7f0
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x40c526
xor ecx, ecx
jmp 0x40c53f
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c530
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00405500
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40c55a
push 0x80004005
call fcn.00406fb0
push eax
push dword [ebp - 0x10]
call fcn.0052a4e5
add esp, 8
test eax, eax
jne 0x40c57b
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call esi
mov esi, dword [ebp - 0x1c]
mov ecx, edi
mov edx, esi
call fcn.0040c920
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.0040c7f0
mov edx, eax
add esp, 4
test edx, edx
jne 0x40c5b2
xor ecx, ecx
jmp 0x40c5c6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5b7
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00405500
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40c5e1
push 0x80004005
call fcn.00406fb0
push eax
push dword [ebp - 0x10]
call fcn.0052a4e5
add esp, 8
test eax, eax
jne 0x40c650
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 0x40c644
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.00404bc0
lea ecx, [ebp - 0x10]
call fcn.00404bc0
jmp 0x40c669
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 0x40c6cd
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 0x40c6c8
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 0x40c6c1
push 0
push dword [edx + 4]
call edi
jmp 0x40c6cd
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x40c6cd
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 0x40c728
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 0x40c723
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 0x40c71c
push 0
push dword [edx + 4]
call edi
jmp 0x40c728
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x40c728
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 0x40c783
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 0x40c77e
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 0x40c777
push 0
push dword [edx + 4]
call edi
jmp 0x40c783
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x40c783
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 0x40c7d7
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c7d3
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40c7d3
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