Function at 0x40d4d7
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Get common file path
Get file attributes
Get startup folder
Set current directory

Disassembly:
push ebp
sub esp, 0x4b8
lea ebp, [esp - 4]
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp + 0x4b8], eax
push 0x6c
mov eax, 0x4c6ba1
call fcn.0048efc2
mov edi, dword [ebp + 0x4c4]
push 7
pop esi
xor ebx, ebx
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x18], edi
mov dword [ebp + 0x18], esi
call fcn.004014a3
push ebx
lea ecx, [ebp + 0x8c]
mov dword [ebp - 4], ebx
mov dword [ebp + 0xa4], esi
call fcn.004014a3
push ebx
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], esi
call fcn.004014a3
mov byte [ebp - 4], 2
call fcn.0040cbaf
dec eax
neg eax
push ebx
sbb al, al
inc al
pop eax
setne al
lea ecx, [ebp + 0x2b0]
push ecx
push ebx
push ebx
add eax, 0x2b
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x40d58b
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401634
push ebx
push 1
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], bl
call fcn.00401634
push ebx
push 1
jmp 0x40d8bb
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x1c], 0x104
jb 0x40d59d
mov edi, dword [edi + 4]
jmp 0x40d5a0
add edi, 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xa8]
push eax
push str.InstalledProductName
push edi
call sub.msi.dll_MsiGetPropertyW
cmp eax, ebx
jne 0x40d898
lea eax, [ebp + 0xa8]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401f43
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.004085d5
mov esi, eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004085f3
mov edi, eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004085d5
push fcn.004915f9
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x68]
push eax
call fcn.00408748
add esp, 0x20
push ebx
push str.reader
lea ecx, [ebp + 0x1c]
call fcn.004071ba
or esi, 0xffffffff
cmp eax, esi
jne 0x40d679
push ebx
push str.acrobat
lea ecx, [ebp + 0x1c]
call fcn.004071ba
cmp eax, esi
jne 0x40d679
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00401634
push ebx
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401634
push ebx
push edi
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], bl
call fcn.00401634
push ebx
mov dword [ebp - 4], esi
push edi
jmp 0x40d8bf
lea eax, [ebp + 0x2b0]
push eax
lea ecx, [ebp + 0x8c]
call fcn.00401df6
push str.AdobeARM1.0AdobeARM.exe
lea ecx, [ebp + 0x8c]
call fcn.004029d2
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x40d6b0
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40d640
push str.__FixPDF
lea ecx, [ebp + 0x38]
call fcn.00401df6
push esi
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp + 0x38]
call fcn.0040288a
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
mov esi, SysReAllocStringLen
push esi
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x40d70e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x10]
push eax
push 2
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push esi
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x40d73b
push str.Application
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x38
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 0x58], 0x3c
call fcn.0048f0d0
add esp, 0xc
call fcn.0040cbf3
test al, al
je 0x40d761
mov dword [ebp - 0x4c], str.runas
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x40d776
lea eax, [ebp + 0x90]
cmp dword [ebp + 0x50], 8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x3c]
jae 0x40d785
lea eax, [ebp + 0x3c]
xor esi, esi
inc esi
push ebx
lea ecx, [ebp + 0x70]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp + 0x88], 7
call fcn.004014a3
push ebx
mov edi, 0x105
push edi
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.0040d261
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x40d7c3
lea eax, [ebp + 0x74]
push eax
push dword [ebp + 0x84]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x40d87a
cmp eax, dword [ebp + 0x84]
ja 0x40d87a
push ebx
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x6c], 7
call fcn.004014a3
push ebx
push edi
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 5
call fcn.0040d261
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x40d80e
lea eax, [ebp + 0x58]
push dword [ebp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x40d86c
cmp eax, dword [ebp + 0x68]
ja 0x40d86c
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x40d82d
lea eax, [ebp + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
test eax, eax
je 0x40d86c
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x88], 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x74]
jae 0x40d856
lea eax, [ebp + 0x74]
push eax
call edi
cmp dword [ebp - 0x18], ebx
je 0x40d86c
cmp dword [ebp - 0x50], ebx
je 0x40d86c
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push ebx
push esi
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 4
call fcn.00401634
push ebx
push esi
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 3
call fcn.00401634
push ebx
push esi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00401634
jmp 0x40d89b
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401634
push ebx
push esi
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], bl
call fcn.00401634
push ebx
push esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00401634
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4b8]
xor ecx, ebp
call fcn.0048ebcd
add ebp, 0x4bc
leave
ret 4