Function at 0x40a385
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d24
mov eax, dword fs:[0]
push eax
mov eax, 0x2820
call fcn.0042399d
mov eax, dword [0x42e05c]
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 ebx, ebx
mov dword [ebp - 0x2828], eax
mov eax, dword [ebp + 0xc]
push 0x25f0
mov dword [ebp - 0x282c], eax
push ebx
mov dword [eax], ebx
lea eax, [ebp - 0x2814]
push eax
mov dword [ebp - 0x2824], ebx
call fcn.00412599
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2814]
mov dword [ebp - 0x281c], 0x25f8
push 0x80
push eax
mov dword [ebp - 0x2818], 0x2f
call fcn.00414840
add esp, 0x1c
mov dword [ebp - 0x2820], 0x208
lea eax, [ebp - 0x2820]
push eax
lea eax, [ebp - 0x2714]
push eax
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.RelativeCachePath
push edi
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
jne 0x40a46b
push 0x208
lea eax, [ebp - 0x2714]
push 0
push eax
call fcn.00412599
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a746
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 0x40a4c6
push 0x1048
lea eax, [ebp - 0x250c]
push 0
push eax
call fcn.00412599
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a746
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 0x40a513
xor eax, eax
inc eax
mov dword [ebp - 0x14b4], eax
mov esi, eax
test esi, esi
js 0x40a746
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 0x40a55f
and dword [ebp - 0x14c4], 0
xor esi, esi
inc esi
test esi, esi
js 0x40a746
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 0x40a5ae
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14c0], eax
inc esi
jmp 0x40a5b4
mov eax, dword [ebp - 0x14c0]
test esi, esi
js 0x40a746
cmp eax, 0x8003
je 0x40a5ca
cmp eax, 0x8004
jne 0x40a635
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 0x40a61b
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 0x40a635
cmp esi, 0x80070002
jne 0x40a62d
and dword [ebp - 0x14b8], 0
xor esi, esi
inc esi
test esi, esi
js 0x40a746
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 0x40a688
push 0x100
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00412599
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a746
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 0x40a6e3
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00412599
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a746
mov ecx, dword [ebp - 0x2828]
lea eax, [ebp - 0x2824]
push eax
push 0
lea edx, [ebp - 0x281c]
call fcn.0040a2f3
mov edi, dword [ebp - 0x2824]
mov esi, eax
test esi, esi
js 0x40a731
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 0x40a731
mov eax, dword [ebp - 0x282c]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x40a746
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.00411433
leave
ret 8