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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a028
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5edd38]
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 str.SoftwareAdobeRepairAcrobat_ReaderDCIOD
xor bh, bh
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
call fcn.00408f30
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.00408f30
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 0x4e64a6
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 0x4e65e1
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0053f340
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 0x4e65d5
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 0x4e6520
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.00408f30
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 2
push 0
push eax
mov dword [ebp - 0x25c], 1
call fcn.0042ba20
add esp, 8
test al, al
jne 0x4e657a
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e657a
mov bl, 1
jmp 0x4e657c
xor bl, bl
mov eax, dword [ebp - 0x260]
mov dword [ebp - 4], 3
cmp eax, 8
jb 0x4e65a1
inc eax
lea ecx, [ebp - 0x274]
push eax
push dword [ebp - 0x274]
call fcn.0040a2e0
mov byte [ebp - 4], 1
test bl, bl
je 0x4e65d5
call fcn.00453b30
test al, al
je 0x4e65d5
lea eax, [ebp - 0x21c]
push eax
call fcn.00413f10
test eax, eax
je 0x4e65d5
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 0x4e6603
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040a2e0
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 0x4e6645
inc ecx
push ecx
push dword [ebp - 0x254]
lea ecx, [ebp - 0x254]
call fcn.0040a2e0
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.00401682
mov esp, ebp
pop ebp
ret