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

Disassembly:
push 0x260
mov eax, 0x439d11
call fcn.0041ea10
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov bl, cl
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
mov byte [ebp - 0x250], cl
test eax, eax
je 0x40dc16
test esi, esi
je 0x40dc16
test edi, edi
je 0x40dc16
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x25c], ecx
lea ecx, [ebp - 0x230]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
call fcn.0040c4e8
push dword [ebp - 0x254]
and dword [ebp - 4], 0
call fcn.00423bce
pop ecx
push eax
push dword [ebp - 0x254]
lea ecx, [ebp - 0x230]
call fcn.0040dd1b
push str.CURRENT_USER_
lea ecx, [ebp - 0x248]
call fcn.0040c4e8
push dword [ebp - 0x220]
xor eax, eax
lea ecx, [ebp - 0x248]
inc eax
cmp dword [ebp - 0x21c], 8
mov byte [ebp - 4], al
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040dd1b
push 0x440808
call fcn.00423bce
pop ecx
push eax
push 0x440808
lea ecx, [ebp - 0x248]
call fcn.0040dd1b
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x25c]
push ecx
push 0xf003f
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d8e1
and dword [ebp - 0x258], eax
lea eax, [ebp - 0x258]
push eax
push 0x20019
push 0
push str.UserChoice
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d8c8
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.004020ed
mov eax, dword [ebp - 0x24c]
xor ecx, ecx
inc ecx
mov byte [ebp - 4], 2
cmp dword [eax - 4], ecx
jle 0x40d864
push dword [eax - 0xc]
lea ecx, [ebp - 0x24c]
call fcn.00402632
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x264]
xor edx, edx
push ecx
push edx
lea ecx, [ebp - 0x260]
push ecx
push edx
push edx
push 4
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24c]
call fcn.0040318b
push str.UserChoice
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x250]
test eax, eax
movzx ecx, cl
push 1
pop eax
cmovne ecx, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x250], ecx
mov ecx, dword [ebp - 0x24c]
lea ecx, [ecx - 0x10]
call fcn.00401a64
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x250], 0
jne 0x40dbe7
and dword [ebp - 0x24c], 0
push 0x440808
call fcn.00423bce
pop ecx
push eax
push 0x440808
lea ecx, [ebp - 0x230]
call fcn.0040dd1b
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x230]
xor edx, edx
push edx
push ecx
push edx
push 0xf003f
push edx
push edx
push edx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d9d7
cmp dword [ebp - 0x260], eax
je 0x40d971
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
xor ecx, ecx
push ecx
push dword [ebp - 0x260]
push ecx
push ecx
push 4
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push esi
call fcn.00423bce
pop ecx
xor ecx, ecx
inc ecx
lea eax, [eax*2 + 2]
push eax
push esi
push ecx
push 0
push str.Progid
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40d9cb
push edi
call fcn.00423bce
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
xor edi, edi
inc edi
push edi
push 0
push str.Hash
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx ebx, bl
cmove ebx, edi
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.0040d1ff
test al, al
je 0x40dbe7
push str..pdf
push dword [ebp - 0x254]
call fcn.00426578
pop ecx
pop ecx
test eax, eax
jne 0x40dbe7
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0041ff30
push str.AcroExch.Document.
push esi
call fcn.0042008a
add esp, 0x14
test eax, eax
je 0x40da39
push str.SOFTWAREAdobeAcrobat_Reader
jmp 0x40da4f
push str.Acrobat.Document.
push esi
call fcn.0042008a
pop ecx
pop ecx
test eax, eax
je 0x40da63
push str.SOFTWAREAdobeAdobe_Acrobat
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00426498
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.00423bce
pop ecx
test eax, eax
je 0x40dbe7
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], edi
push eax
push str.iSuppressToastMessage
lea eax, [ebp - 0x218]
push eax
push 0x80000002
call fcn.00406656
xor eax, eax
add esp, 0x10
inc eax
cmp dword [ebp - 0x258], eax
jae 0x40dbe7
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x40dac6
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, eax
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x40dadc
push edi
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x254]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.004020ed
push str.HKEY_CURRENT_USER_
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.004020ed
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 4
push dword [eax - 0xc]
push 0
call fcn.0040cafa
call fcn.0040fd19
push eax
lea ecx, [ebp - 0x250]
call fcn.00401330
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 5
push eax
push str.ProgID
push dword [ebp - 0x254]
push 0x80000001
call fcn.004066ab
push dword [ebp - 0x250]
call fcn.00423bce
add esp, 0x14
test eax, eax
je 0x40dbbd
push esi
push dword [ebp - 0x250]
call fcn.00426578
pop ecx
pop ecx
test eax, eax
je 0x40dbbd
push str.ownership_is_not_confirmed
lea ecx, [ebp - 0x268]
call fcn.004020ed
push 0
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 6
push eax
push 2
call fcn.00403025
mov ecx, dword [ebp - 0x268]
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00401a64
call fcn.0040ce9d
mov ecx, dword [ebp - 0x250]
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x264], 0
je 0x40dbfc
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x248]
call fcn.0040dce2
lea ecx, [ebp - 0x230]
call fcn.0040dce2
mov al, bl
jmp 0x40dc18
xor al, al
call fcn.0041e9ba
ret