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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4156af
mov eax, dword fs:[0]
push eax
sub esp, 0xfc8
push ebx
push esi
push edi
lea edi, [ebp - 0xfd4]
mov ecx, 0x3f2
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41f01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x21], 0
call fcn.00412983
movzx eax, al
test eax, eax
je 0x40a653
mov al, byte [ebp - 0x15]
jmp 0x40abea
cmp dword [ebp + 8], 0
je 0x40a665
cmp dword [ebp + 0xc], 0
je 0x40a665
cmp dword [ebp + 0x10], 0
jne 0x40a66d
mov al, byte [ebp - 0x15]
jmp 0x40abea
and dword [ebp - 0x30], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x48], 0
push 0x416c14
lea ecx, [ebp - 0x68]
call fcn.00405064
and dword [ebp - 4], 0
push 0x400
lea eax, [ebp - 0x870]
push eax
call fcn.00408494
pop ecx
pop ecx
mov dword [ebp - 0x87c], eax
push 0x416c14
lea ecx, [ebp - 0x89c]
call fcn.00405064
mov byte [ebp - 4], 1
cmp dword [ebp - 0x87c], 0
je 0x40a6f8
mov dword [ebp - 0x8a8], MsiConfigureFeatureFromDescriptorA
push str.USERS_
lea ecx, [ebp - 0x89c]
call fcn.0040cae5
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040cae5
push 0x416c18
lea ecx, [ebp - 0x68]
call fcn.0040cae5
jmp 0x40a712
mov dword [ebp - 0x8a8], MsiConfigureFeatureFromDescriptorA
push str.CURRENT_USER_
lea ecx, [ebp - 0x89c]
call fcn.0040cae5
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x68]
call fcn.0040cae5
push dword [ebp + 8]
lea ecx, [ebp - 0x68]
call fcn.0040cae5
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x89c]
call fcn.0040c9ba
push 0x4188cc
lea ecx, [ebp - 0x89c]
call fcn.0040cae5
call fcn.00409356
movzx eax, al
test eax, eax
jne 0x40a94e
mov esi, esp
lea eax, [ebp - 0x48]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x68]
call fcn.0040d12a
push eax
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x40a82d
and dword [ebp - 0x8b4], 0
mov esi, esp
lea eax, [ebp - 0x8b4]
push eax
push 0x20019
push 0
push str.UserChoice
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x40a81b
mov esi, esp
push dword [ebp - 0x8b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00414070
mov esi, esp
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 4
push 4
lea ecx, [ebp - 0x89c]
call fcn.0040d12a
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp esi, esp
call fcn.00414070
mov esi, esp
push str.UserChoice
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp esi, esp
call fcn.00414070
test eax, eax
je 0x40a81b
mov byte [ebp - 0x21], 1
mov esi, esp
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00414070
movzx eax, byte [ebp - 0x21]
test eax, eax
jne 0x40a94c
and dword [ebp - 0x8c0], 0
push 0x4188cc
lea ecx, [ebp - 0x68]
call fcn.0040cae5
mov esi, esp
push 0
lea eax, [ebp - 0x8c0]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x68]
call fcn.0040d12a
push eax
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x40a94c
cmp dword [ebp - 0x30], 0
je 0x40a8b9
mov esi, esp
push 0
push dword [ebp - 0x30]
push 0
push 0
push 4
push 4
push 0
lea ecx, [ebp - 0x89c]
call fcn.00405bca
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
cmp esi, esp
call fcn.00414070
mov esi, esp
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00414070
lea eax, [eax + eax + 2]
mov esi, esp
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.Progid
push dword [ebp - 0x8c0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x40a937
mov esi, esp
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00414070
lea eax, [eax + eax + 2]
mov esi, esp
push eax
push dword [ebp + 0x10]
push 1
push 0
push str.Hash
push dword [ebp - 0x8c0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x40a937
mov byte [ebp - 0x15], 1
mov esi, esp
push dword [ebp - 0x8c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00414070
jmp 0x40a95b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004017bd
pop ecx
pop ecx
mov esi, esp
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
cmp esi, esp
call fcn.00414070
call fcn.00409356
movzx eax, al
test eax, eax
je 0x40aba8
mov esi, esp
push str..pdf
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll__wcsicmp]
pop ecx
pop ecx
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x40aba8
lea ecx, [ebp - 0x8d4]
call fcn.00413456
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0xae4], ax
push 0x206
push 0
lea eax, [ebp - 0xae2]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov esi, esp
push str.AcroExch.Document.
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_wcsstr]
pop ecx
pop ecx
cmp esi, esp
call fcn.00414070
test eax, eax
je 0x40aa16
mov esi, esp
push str.HKEY_LOCAL_MACHINESOFTWAREAdobeAcrobat_Reader
push 0x104
lea eax, [ebp - 0xae4]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
jmp 0x40aa56
mov esi, esp
push str.Acrobat.Document.
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_wcsstr]
pop ecx
pop ecx
cmp esi, esp
call fcn.00414070
test eax, eax
je 0x40aa56
mov esi, esp
push 0x416df8
push 0x104
lea eax, [ebp - 0xae4]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
mov esi, esp
lea eax, [ebp - 0xae4]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00414070
test eax, eax
je 0x40ab99
push 0
push str.iSuppressToastMessage
lea eax, [ebp - 0xae4]
push eax
lea ecx, [ebp - 0x8d4]
call fcn.00413829
test eax, eax
jne 0x40ab99
mov esi, esp
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00414070
xor eax, eax
mov word [ebp - 0xcf4], ax
push 0x206
push 0
lea eax, [ebp - 0xcf2]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0xf04], ax
push 0x206
push 0
lea eax, [ebp - 0xf02]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov esi, esp
push str.HKEY_
push 0x104
lea eax, [ebp - 0xf04]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
lea ecx, [ebp - 0x89c]
call fcn.0040d12a
mov esi, esp
push eax
push 0x104
lea eax, [ebp - 0xf04]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
push 0x105
push 0
lea eax, [ebp - 0xcf4]
push eax
push str.ProgID
lea eax, [ebp - 0xf04]
push eax
lea ecx, [ebp - 0x8d4]
call fcn.0041399f
mov esi, esp
lea eax, [ebp - 0xcf4]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00414070
test eax, eax
je 0x40ab99
mov esi, esp
push dword [ebp + 0xc]
lea eax, [ebp - 0xcf4]
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
pop ecx
pop ecx
cmp esi, esp
call fcn.00414070
test eax, eax
je 0x40ab99
call fcn.00408f5e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8d4]
call fcn.00413498
cmp dword [ebp - 0x3c], 0
je 0x40abc0
mov esi, esp
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00414070
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xfcd], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x89c]
call fcn.00405812
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00405812
mov al, byte [ebp - 0xfcd]
push edx
mov ecx, ebp
push eax
lea edx, [0x40ac27]
call fcn.00414018
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414093
add esp, 0xfd4
cmp ebp, esp
call fcn.00414070
mov esp, ebp
pop ebp
ret