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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x254]
push 0x2b
xor eax, eax
mov dword [ebp - 0x258], 0
push 0x5e9fa8
xor bh, bh
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
call fcn.00409db0
push 0x2e
xor eax, eax
mov dword [ebp - 4], 0
push str.SoftwareAdobeAcrobat_ReaderDCInstallerIOD
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00409db0
cmp dword [ebp - 0x240], 8
lea ecx, [ebp - 0x258]
push ecx
push 0x20019
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x254]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4fb586
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x258]
push ecx
push 0x20019
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4fb6c1
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
mov dword [ebp - 0x238], 0x20a
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push str.Library
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4fb6b5
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], 7
lea edx, [ecx + 2]
mov word [ebp - 0x274], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fb600
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.00409db0
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 2
push 0
push eax
mov dword [ebp - 0x25c], 1
call fcn.004303e0
add esp, 8
test al, al
jne 0x4fb65a
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4fb65a
mov bl, 1
jmp 0x4fb65c
xor bl, bl
mov eax, dword [ebp - 0x260]
mov dword [ebp - 4], 3
cmp eax, 8
jb 0x4fb681
inc eax
lea ecx, [ebp - 0x274]
push eax
push dword [ebp - 0x274]
call fcn.0040a5e0
mov byte [ebp - 4], 1
test bl, bl
je 0x4fb6b5
call fcn.0045bbf0
test al, al
je 0x4fb6b5
lea eax, [ebp - 0x21c]
push eax
call fcn.00415060
test eax, eax
je 0x4fb6b5
push str.MaintenanceRepair
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi], eax
setne bh
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x4fb6e3
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 4], 5
cmp ecx, 8
jb 0x4fb725
inc ecx
push ecx
push dword [ebp - 0x254]
lea ecx, [ebp - 0x254]
call fcn.0040a5e0
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret