Function at 0x40efe0
Capabilities:
Check if file exists
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dc70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5ce104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40f02a
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f03f
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40f041
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [eax - 0xc]
test ebx, ebx
je 0x40f0b4
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
je 0x40f089
cmp dword [edi + 0xc], 0
jl 0x40f0a5
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x40f0a5
push ecx
call fcn.00405650
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.00407070
add esi, 0x10
mov dword [ebp - 0x1c], esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f128
xor ebx, ebx
jmp 0x40f811
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405730
mov esi, dword [ebp - 0x1c]
jmp 0x40f089
lea ecx, [ebp - 0x2c]
call fcn.0040c540
push str.MasterPDF
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x1c]
push str._s_s.exe
push eax
call fcn.00420620
mov byte [ebp - 4], 1
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f120
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f11c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f11c
push 0
push dword [edx + 4]
call edi
mov esi, dword [ebp - 0x1c]
jmp 0x40f08f
mov ecx, edx
call esi
mov esi, dword [ebp - 0x1c]
jmp 0x40f08f
cmp dword [ebp - 0x30], 0
mov ecx, str.PdfRecommand
mov eax, str.MasterPDF
cmove eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00404e80
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x20]
call fcn.0041c710
add esp, 4
mov byte [ebp - 4], 4
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40f173
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f188
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40f18a
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, str.SoftwareClasses.pdf
push 0
mov byte [ebp - 4], 5
call fcn.00412350
mov edx, eax
add esp, 4
test edx, edx
jne 0x40f1b0
xor ecx, ecx
jmp 0x40f1c4
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f1b5
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00405730
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x40f227
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40f1e8
push 0x80004005
call fcn.004071e0
push eax
push ebx
call fcn.00543b38
add esp, 8
test eax, eax
je 0x40f227
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f200
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push str.previous.pdf
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x18
push str.PDF_Document
push 1
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40f253
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f268
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40f26a
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
push esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push str._s_1
push eax
call fcn.00420620
push str.DefaultIcon
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.0041c800
add esp, 0x10
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x24], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40f2a6
sub edx, dword [ebp - 0x24]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f31d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f318
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f311
push 0
push dword [edx + 4]
call edi
jmp 0x40f31d
mov ecx, edx
call dword [ebp - 0x34]
jmp 0x40f31d
mov ecx, edx
call dword [ebp - 0x34]
push str._shell
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.0041c800
add esp, 4
push 8
push str.open
push 1
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f398
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f393
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f38c
push 0
push dword [edx + 4]
call edi
jmp 0x40f398
mov ecx, edx
call dword [ebp - 0x34]
jmp 0x40f398
mov ecx, edx
call dword [ebp - 0x34]
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40f3ad
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f3c2
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40f3c4
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x30], 0
push esi
je 0x40f3df
push str.__s_____1____
jmp 0x40f3e4
push str.__s__tryfirstsel____1_
push eax
call fcn.00420620
add esp, 0xc
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x30]
push str._shellopencommand
call fcn.0041c800
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40f410
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 0x30]
test eax, eax
sete byte [ebp - 0xd]
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f48d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f488
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f481
push 0
push dword [edx + 4]
call edi
jmp 0x40f48d
mov ecx, edx
call dword [ebp - 0x38]
jmp 0x40f48d
mov ecx, edx
call dword [ebp - 0x38]
push esi
lea eax, [ebp - 0x24]
push str.__s___print_to_default____1_
push eax
call fcn.00420620
push str._shellprintcommand
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x30]
call fcn.0041c800
add esp, 0x10
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40f4c0
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 0x30]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f537
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f532
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f52b
push 0
push dword [edx + 4]
call edi
jmp 0x40f537
mov ecx, edx
call dword [ebp - 0x38]
jmp 0x40f537
mov ecx, edx
call dword [ebp - 0x38]
push esi
lea eax, [ebp - 0x24]
push str.__s___print_to____2_____1_
push eax
call fcn.00420620
push str._shellprinttocommand
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x34]
call fcn.0041c800
mov edi, dword [ebp - 0x24]
add esp, 0x10
mov ecx, edi
mov edx, dword [eax]
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f566
sub ecx, dword [ebp - 0x38]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push edx
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 0x34]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f5df
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f5da
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f5d3
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40f5df
mov ecx, edx
call dword [ebp - 0x38]
jmp 0x40f5df
mov ecx, edx
call dword [ebp - 0x38]
cmp byte [ebp - 0xd], 0
je 0x40f69a
mov eax, dword [ebp - 0x28]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40f5f4
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.SoftwareClasses.pdf
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0
push 0x5a3e2c
push 1
push dword [ebp - 0x28]
push str.SoftwareClasses.pdfOpenWithProgids
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x18], 0x80000001
jne 0x40f691
mov eax, dword [ebp - 0x28]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40f650
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov dword [ebp - 0x24], 1
jmp 0x40f6a1
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 6
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40f6e4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f6e2
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f6e2
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call edi
jmp 0x40f6ea
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f740
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f73b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f734
push 0
push dword [edx + 4]
call edi
jmp 0x40f740
mov ecx, edx
call dword [ebp - 0x38]
jmp 0x40f740
mov ecx, edx
call dword [ebp - 0x38]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40f785
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f783
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f783
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call ebx
jmp 0x40f78b
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 3
mov eax, edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f7cc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f7c8
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f7c8
push 0
push dword [edx + 4]
call ebx
jmp 0x40f7cc
mov ecx, edx
call edi
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f80e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f80a
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f80a
push 0
push dword [edx + 4]
call ebx
jmp 0x40f80e
mov ecx, edx
call edi
mov ebx, dword [ebp - 0x24]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f854
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f852
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f852
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call edi
jmp 0x40f85a
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40f8b1
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f8ad
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40f8ad
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