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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e12f8
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], ecx
mov ecx, dword [0x528178]
mov eax, str.SoftwarePoliciesAdobeAcrobat_Reader11.0FeatureLockDown
cmp byte [ecx + 0x49], bl
je 0x41f37a
mov eax, str.SoftwarePoliciesAdobeAdobe_Acrobat11.0FeatureLockDown
lea edx, [ebp - 0x4c]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f546
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x41f546
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push str.bUseWhitelistConfigFile
mov esi, 4
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x5c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f53c
cmp dword [ebp - 0x54], esi
jne 0x41f53c
cmp dword [ebp - 0x50], ebx
je 0x41f53c
push str.ReaderProtectedModeWhitelistConfig.txt
lea ecx, [ebp - 0x48]
call fcn.00408770
mov edx, dword [0x528178]
mov dword [ebp - 4], ebx
cmp byte [edx + 0x49], bl
je 0x41f40f
push str.AcrobatProtectedModeWhitelistConfig.txt
lea ecx, [ebp - 0x48]
call fcn.004321e0
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x41f41f
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00414970
add esp, 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x41f43b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f4c4
call fcn.0040e770
test eax, eax
jg 0x41f497
push ebx
push 0x791
push str.policy_configurator.cpp
lea ecx, [ebp - 0x110]
call fcn.00450680
mov ecx, dword [ebp - 0x2c]
mov ebx, 1
mov byte [ebp - 4], 2
mov dword [ebp - 0x58], ebx
cmp dword [ebp - 0x18], esi
jae 0x41f47c
lea ecx, [ebp - 0x2c]
push ecx
add eax, 8
push str.Found_custom_policy_file:
push eax
call fcn.00441d30
add esp, 8
push eax
call fcn.00450710
add esp, 8
mov dword [ebp - 4], 1
test bl, 1
je 0x41f4ae
lea ecx, [ebp - 0x110]
call fcn.00450a20
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x41f4b9
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x60]
push eax
call fcn.0047fd40
jmp 0x41f52c
call fcn.0040e770
test eax, eax
jg 0x41f515
push ebx
push 0x796
push str.policy_configurator.cpp
lea ecx, [ebp - 0x110]
call fcn.00450680
mov ecx, dword [ebp - 0x2c]
mov ebx, 2
mov byte [ebp - 4], 3
mov dword [ebp - 0x58], ebx
cmp dword [ebp - 0x18], esi
jae 0x41f4fa
lea ecx, [ebp - 0x2c]
push ecx
add eax, 8
push str.Custom_policy_file_NOT_found:
push eax
call fcn.00441d30
add esp, 8
push eax
call fcn.00450710
add esp, 8
mov dword [ebp - 4], 1
test bl, 2
je 0x41f52c
lea ecx, [ebp - 0x110]
call fcn.00450a20
lea ecx, [ebp - 0x2c]
call fcn.00409fe0
lea ecx, [ebp - 0x48]
call fcn.00409fe0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.00401306
mov esp, ebp
pop ebp
ret