Function at 0x40a4f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424fe7
mov eax, dword fs:[0]
push eax
mov eax, 0x2820
call fcn.00422fc9
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x2828], eax
mov ebx, 0x25f8
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x282c], eax
push ecx
mov dword [eax], ecx
lea eax, [ebp - 0x281c]
push eax
mov dword [ebp - 0x2824], ecx
call fcn.004130e9
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2814]
mov dword [ebp - 0x281c], ebx
push 0x80
push eax
mov dword [ebp - 0x2818], 0x2f
call fcn.00414d54
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x2820]
add esp, 0x1c
mov dword [ebp - 0x2820], 0x208
push eax
lea eax, [ebp - 0x2714]
push eax
push 0
push 0
push str.RelativeCachePath
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
jne 0x40a5d9
push 0x208
lea eax, [ebp - 0x2714]
push 0
push eax
call fcn.004130e9
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a8b4
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x2820], 0x1048
push eax
lea eax, [ebp - 0x250c]
push eax
push 0
push 0
push str.RelativeSourcePath
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
jne 0x40a634
push 0x1048
lea eax, [ebp - 0x250c]
push 0
push eax
call fcn.004130e9
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a8b4
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x2820], 4
push eax
lea eax, [ebp - 0x14b4]
push eax
push 0
push 0
push str.Priority
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
jne 0x40a681
xor eax, eax
inc eax
mov dword [ebp - 0x14b4], eax
mov esi, eax
test esi, esi
js 0x40a8b4
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x2820], 4
push eax
lea eax, [ebp - 0x14c4]
push eax
push 0
push 0
push str.Signed
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
jne 0x40a6cd
and dword [ebp - 0x14c4], 0
xor esi, esi
inc esi
test esi, esi
js 0x40a8b4
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x2820], 4
push eax
lea eax, [ebp - 0x14c0]
push eax
push 0
push 0
push str.HashType
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
jne 0x40a71c
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14c0], eax
inc esi
jmp 0x40a722
mov eax, dword [ebp - 0x14c0]
test esi, esi
js 0x40a8b4
cmp eax, 0x8003
je 0x40a738
cmp eax, 0x8004
jne 0x40a7a3
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x2820], 0x14
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push str.Hash
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x40a789
or dword [ebp - 0x2818], 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14b8], eax
mov eax, dword [ebp - 0x2820]
mov dword [ebp - 0x14bc], eax
jmp 0x40a7a3
cmp esi, 0x80070002
jne 0x40a79b
and dword [ebp - 0x14b8], 0
xor esi, esi
inc esi
test esi, esi
js 0x40a8b4
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x2820], 0x100
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push str.PreferredSource
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
jne 0x40a7f6
push 0x100
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.004130e9
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a8b4
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x2820], 0x100
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0
push str.ContainerResource
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
jne 0x40a851
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.004130e9
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a8b4
mov ecx, dword [ebp - 0x2828]
lea eax, [ebp - 0x2824]
push eax
push 0
lea edx, [ebp - 0x281c]
call fcn.0040a463
mov edi, dword [ebp - 0x2824]
mov esi, eax
test esi, esi
js 0x40a89f
mov eax, dword [edi]
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x224]
push ecx
push edi
call dword [eax + 0x78]
mov esi, eax
test esi, esi
js 0x40a89f
mov eax, dword [ebp - 0x282c]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x40a8b4
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 4
add eax, edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041195e
mov esp, ebp
pop ebp
ret 8