Function at 0x4afae0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5093a8
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x284], ebx
push 0x2d
mov edi, ecx
xor eax, eax
mov esi, 7
push str.SoftwareAdobeRepairAcrobat_Reader11.0IOD
lea ecx, [ebp - 0x254]
mov byte [ebp - 0x271], bl
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], ax
call fcn.00406300
xor ecx, ecx
push 0x30
mov word [ebp - 0x238], cx
push str.SoftwareAdobeAcrobat_Reader11.0InstallerIOD
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
call fcn.00406300
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
mov byte [ebp - 4], 1
jae 0x4afb93
lea eax, [ebp - 0x254]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x278]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call esi
test eax, eax
je 0x4afbe4
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x4afbc7
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x278]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call esi
test eax, eax
jne 0x4afd24
push 0x20a
lea edx, [ebp - 0x21c]
push ebx
push edx
call fcn.004e15a0
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x27c]
push edx
push ebx
push str.Library
push eax
mov dword [ebp - 0x280], 0x20a
mov dword [ebp - 0x27c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4afd17
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], ebx
mov word [ebp - 0x270], cx
lea edx, [eax + 2]
jmp 0x4afc60
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4afc60
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x270]
call fcn.00406300
lea eax, [ebp - 0x270]
push ebx
mov esi, 1
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x284], esi
call fcn.00416c50
add esp, 8
test al, al
jne 0x4afcbd
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x272], 1
test eax, eax
jne 0x4afcc3
mov byte [ebp - 0x272], bl
cmp dword [ebp - 0x25c], 8
mov dword [ebp - 4], esi
jb 0x4afcde
mov edx, dword [ebp - 0x270]
push edx
call fcn.00406ec9
add esp, 4
cmp byte [ebp - 0x272], bl
je 0x4afd17
call fcn.00438da0
test al, al
je 0x4afd17
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x4afd17
push str.MaintenanceRepair
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [edi], eax
setne byte [ebp - 0x271]
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x4afd40
mov edx, dword [ebp - 0x238]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
cmp dword [ebp - 0x240], esi
jb 0x4afd70
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00406ec9
add esp, 4
mov al, byte [ebp - 0x271]
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.00401316
mov esp, ebp
pop ebp
ret