Function at 0x40d4c6
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 [0x509354]
xor eax, ebp
mov dword [ebp + 0x4b8], eax
push 0x6c
mov eax, 0x4c5ea1
call fcn.0048e652
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.00401495
push ebx
lea ecx, [ebp + 0x8c]
mov dword [ebp - 4], ebx
mov dword [ebp + 0xa4], esi
call fcn.00401495
push ebx
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], esi
call fcn.00401495
mov byte [ebp - 4], 2
call fcn.0040cbd4
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 0x40d57a
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401626
push ebx
push 1
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], bl
call fcn.00401626
push ebx
push 1
jmp 0x40d8aa
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x1c], 0x104
jb 0x40d58c
mov edi, dword [edi + 4]
jmp 0x40d58f
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 0x40d887
lea eax, [ebp + 0xa8]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401f35
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.004088e2
mov esi, eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00408900
mov edi, eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004088e2
push fcn.00490c89
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.00408aa0
add esp, 0x20
push ebx
push str.reader
lea ecx, [ebp + 0x1c]
call fcn.0040745d
or esi, 0xffffffff
cmp eax, esi
jne 0x40d668
push ebx
push str.acrobat
lea ecx, [ebp + 0x1c]
call fcn.0040745d
cmp eax, esi
jne 0x40d668
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00401626
push ebx
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401626
push ebx
push edi
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], bl
call fcn.00401626
push ebx
mov dword [ebp - 4], esi
push edi
jmp 0x40d8ae
lea eax, [ebp + 0x2b0]
push eax
lea ecx, [ebp + 0x8c]
call fcn.00401de8
push str.AdobeARM1.0AdobeARM.exe
lea ecx, [ebp + 0x8c]
call fcn.0040288c
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x40d69f
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40d62f
push str.__FixPDF
lea ecx, [ebp + 0x38]
call fcn.00401de8
push esi
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp + 0x38]
call fcn.00402744
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
mov esi, SysReAllocString
push esi
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x40d6fd
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 0x40d72a
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.0048e760
add esp, 0xc
call fcn.004025b9
test al, al
je 0x40d750
mov dword [ebp - 0x4c], str.runas
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x40d765
lea eax, [ebp + 0x90]
cmp dword [ebp + 0x50], 8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x3c]
jae 0x40d774
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.00401495
push ebx
mov edi, 0x105
push edi
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.0040d211
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x40d7b2
lea eax, [ebp + 0x74]
push eax
push dword [ebp + 0x84]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x40d869
cmp eax, dword [ebp + 0x84]
ja 0x40d869
push ebx
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x6c], 7
call fcn.00401495
push ebx
push edi
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 5
call fcn.0040d211
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x40d7fd
lea eax, [ebp + 0x58]
push dword [ebp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x40d85b
cmp eax, dword [ebp + 0x68]
ja 0x40d85b
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x40d81c
lea eax, [ebp + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
test eax, eax
je 0x40d85b
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 0x40d845
lea eax, [ebp + 0x74]
push eax
call edi
cmp dword [ebp - 0x18], ebx
je 0x40d85b
cmp dword [ebp - 0x50], ebx
je 0x40d85b
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.00401626
push ebx
push esi
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 3
call fcn.00401626
push ebx
push esi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00401626
jmp 0x40d88a
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401626
push ebx
push esi
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], bl
call fcn.00401626
push ebx
push esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00401626
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.0048e25d
add ebp, 0x4bc
leave
ret 4