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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5423f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
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 dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46ab37
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46ab4c
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46ab4e
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 0x46abc1
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
je 0x46ab96
cmp dword [edi + 0xc], 0
jl 0x46abb2
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x46abb2
push ecx
call fcn.00406f70
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.00408130
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 0x46ac35
xor edi, edi
jmp 0x46b357
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004078f0
mov esi, dword [ebp - 0x1c]
jmp 0x46ab96
lea ecx, [ebp - 0x2c]
call fcn.00468d10
push str.MasterPDF
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x1c]
push str._s_s.exe
push eax
call fcn.004232b0
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 0x46ac2d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46ac29
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46ac29
push 0
push dword [edx + 4]
call edi
mov esi, dword [ebp - 0x1c]
jmp 0x46ab9c
mov ecx, edx
call esi
mov esi, dword [ebp - 0x1c]
jmp 0x46ab9c
push str.MasterPDF
lea ecx, [ebp - 0x28]
call fcn.00407ab0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x20]
call fcn.0046e0e0
add esp, 4
mov byte [ebp - 4], 4
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46ac73
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46ac88
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46ac8a
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
mov edx, str.SoftwareClasses.pdf
mov ecx, dword [ebp - 0x18]
push 0
call fcn.0046c470
mov edx, eax
add esp, 4
test edx, edx
jne 0x46acb0
xor ecx, ecx
jmp 0x46acc4
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46acb5
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.004078f0
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x46ad27
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x46ace8
push 0x80004005
call fcn.00407be0
push eax
push ebx
call fcn.00515ba3
add esp, 8
test eax, eax
je 0x46ad27
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ad00
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.00408090
mov ecx, eax
test ecx, ecx
jne 0x46ad53
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46ad68
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46ad6a
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.004232b0
push str.DefaultIcon
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x34]
call fcn.0046e1d0
add esp, 0x10
mov eax, dword [eax]
mov dword [ebp - 0x30], 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 0x46ada6
sub edx, dword [ebp - 0x24]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x30]
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 0x46ae1d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46ae18
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46ae11
push 0
push dword [edx + 4]
call edi
jmp 0x46ae1d
mov ecx, edx
call dword [ebp - 0x30]
jmp 0x46ae1d
mov ecx, edx
call dword [ebp - 0x30]
push str._shell
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x34]
call fcn.0046e1d0
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 - 0x34]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46ae98
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46ae93
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46ae8c
push 0
push dword [edx + 4]
call edi
jmp 0x46ae98
mov ecx, edx
call dword [ebp - 0x30]
jmp 0x46ae98
mov ecx, edx
call dword [ebp - 0x30]
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46aead
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46aec2
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46aec4
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push str.__s_____1____
push eax
call fcn.004232b0
push str._shellopencommand
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.0046e1d0
add esp, 0x10
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x34], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46af00
sub edx, dword [ebp - 0x34]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 0x38]
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 0x46af7d
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 0x46af78
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 0x46af71
push 0
push dword [edx + 4]
call edi
jmp 0x46af7d
mov ecx, edx
call dword [ebp - 0x34]
jmp 0x46af7d
mov ecx, edx
call dword [ebp - 0x34]
push esi
lea eax, [ebp - 0x24]
push str.__s___print_to_default____1_
push eax
call fcn.004232b0
push str._shellprintcommand
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x30]
call fcn.0046e1d0
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 0x46afb0
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 0x46b027
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 0x46b022
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 0x46b01b
push 0
push dword [edx + 4]
call edi
jmp 0x46b027
mov ecx, edx
call dword [ebp - 0x38]
jmp 0x46b027
mov ecx, edx
call dword [ebp - 0x38]
push esi
lea eax, [ebp - 0x24]
push str.__s___print_to____2_____1_
push eax
call fcn.004232b0
push str._shellprinttocommand
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x34]
call fcn.0046e1d0
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 0x46b056
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 0x46b0cf
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 0x46b0ca
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 0x46b0c3
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46b0cf
mov ecx, edx
call dword [ebp - 0x38]
jmp 0x46b0cf
mov ecx, edx
call dword [ebp - 0x38]
cmp byte [ebp - 0xd], 0
je 0x46b1ed
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 0x46b0e4
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 0x55f580
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 0x46b1e4
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 0x46b140
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]
lea eax, [ebp - 0x18]
push eax
push 0x40000
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46b1d4
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x4c]
push eax
push 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x24], 1
jmp 0x46b1f4
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 0x46b237
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b235
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46b235
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call edi
jmp 0x46b23d
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 0x46b293
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 0x46b28e
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 0x46b287
push 0
push dword [edx + 4]
call edi
jmp 0x46b293
mov ecx, edx
call dword [ebp - 0x38]
jmp 0x46b293
mov ecx, edx
call dword [ebp - 0x38]
mov byte [ebp - 4], 4
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x46b2d0
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b2ce
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46b2ce
push 0
push dword [ecx + 4]
call edi
jmp 0x46b2d0
call edx
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46b312
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b30e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46b30e
push 0
push dword [edx + 4]
call edi
jmp 0x46b312
mov ecx, edx
call ebx
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 0x46b354
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b350
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46b350
push 0
push dword [edx + 4]
call edi
jmp 0x46b354
mov ecx, edx
call ebx
mov edi, 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 0x46b39a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b398
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46b398
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call ebx
jmp 0x46b3a0
call edx
mov ebx, 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 0x46b3f7
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b3f3
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46b3f3
push 0
push dword [edx + 4]
call ebx
mov eax, edi
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, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret