Function at 0x40f2e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 8]
push esi
push edi
push eax
push str.SoftwareAdobeAcrobat_DistillerAdobePDFSettings
push SysReAllocString
mov dword [ebp - 4], 0
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f40d
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
add eax, 0x104
push eax
call fcn.00527345
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f3b1
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0x5554a6
push 0x555600
call fcn.00403e20
add esp, 8
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40f3f6
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push 0x555624
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
add eax, 0x104
push eax
call fcn.00527345
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40f3ba
push ebx
call fcn.00527a45
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.JobOptionsFolder
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x14]
call fcn.005280c6
push dword [ebp - 0x14]
test eax, eax
mov ecx, 1
cmovne edi, ecx
call fcn.00527a45
add esp, 0xc
push ebx
call fcn.00527a45
add esp, 4
test edi, edi
jne 0x40f54a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 8]
push eax
push 0x55566c
push 0x55567c
call fcn.00403e20
add esp, 8
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x40f54a
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
add eax, 0x104
push eax
call fcn.00527345
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f3b1
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x10]
push eax
push str.InstallPath
push str.SoftwareAdobeAcrobat_Distiller_
call fcn.00403e20
add esp, 8
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40f52c
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
add eax, 0x104
push eax
call fcn.00527345
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40f4e2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
push esi
call fcn.00527a45
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
push esi
push ebx
call fcn.005280c6
add esp, 8
test eax, eax
je 0x40f521
push dword [ebp - 4]
push ebx
push 1
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call fcn.00527a45
add esp, 4
jmp 0x40f52f
mov esi, dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00527a45
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret