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

Disassembly:
jmp 0x40e540
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push esi
push edi
lea eax, [esp + 0x14]
push eax
push str.SoftwareAdobeAcrobat_DistillerAdobePDFSettings
push SysFreeString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e672
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
push eax
call esi
mov ecx, dword [esp + 0x10]
add ecx, 0x104
push ecx
call fcn.00445920
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e72a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push 0x496f10
push SysFreeString
call ebp
test eax, eax
jne 0x40e65e
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x24]
push str.JobOptionsFolder
push eax
call esi
mov ecx, dword [esp + 0x10]
add ecx, 0x104
push ecx
call fcn.00445920
mov edi, eax
add esp, 4
test edi, edi
je 0x40e721
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x20]
push eax
push 0
push str.JobOptionsFolder
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call fcn.00444d27
add esp, 8
test eax, eax
je 0x40e655
mov dword [esp + 0x1c], 1
push edi
call fcn.00443a88
add esp, 4
push ebx
call fcn.00443a88
add esp, 4
cmp dword [esp + 0x1c], 0
jne 0x40e7a3
lea eax, [esp + 0x14]
push eax
push str.SoftwareAdobeAcrobat_Distiller10.0InstallPath
push SysFreeString
call ebp
test eax, eax
jne 0x40e7a3
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
push eax
push eax
mov eax, dword [esp + 0x28]
push eax
call esi
mov ecx, dword [esp + 0x10]
add ecx, 0x104
push ecx
call fcn.00445920
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e72a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ecx
call esi
lea edx, [esp + 0x20]
push edx
push str.SoftwareAdobeAcrobat_Distiller10.0InstallPath
push SysFreeString
call ebp
test eax, eax
jne 0x40e783
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push edx
call esi
mov eax, dword [esp + 0x10]
add eax, 0x104
push eax
call fcn.00445920
mov edi, eax
add esp, 4
test edi, edi
jne 0x40e734
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00443a88
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call fcn.00444d27
add esp, 8
test eax, eax
je 0x40e77a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push edi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.00443a88
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00443a88
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
add esp, 0x14
ret