Function at 0x40a493
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425c90
mov eax, dword fs:[0]
push eax
mov eax, 0x2820
call fcn.00423c98
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.00412d6c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2814]
mov dword [ebp - 0x281c], ebx
push 0x80
push eax
mov dword [ebp - 0x2818], 0x2f
call fcn.00414a70
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 0x40a578
push 0x208
lea eax, [ebp - 0x2714]
push 0
push eax
call fcn.00412d6c
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a853
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 0x40a5d3
push 0x1048
lea eax, [ebp - 0x250c]
push 0
push eax
call fcn.00412d6c
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a853
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 0x40a620
xor eax, eax
inc eax
mov dword [ebp - 0x14b4], eax
mov esi, eax
test esi, esi
js 0x40a853
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 0x40a66c
and dword [ebp - 0x14c4], 0
xor esi, esi
inc esi
test esi, esi
js 0x40a853
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 0x40a6bb
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14c0], eax
inc esi
jmp 0x40a6c1
mov eax, dword [ebp - 0x14c0]
test esi, esi
js 0x40a853
cmp eax, 0x8003
je 0x40a6d7
cmp eax, 0x8004
jne 0x40a742
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 0x40a728
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 0x40a742
cmp esi, 0x80070002
jne 0x40a73a
and dword [ebp - 0x14b8], 0
xor esi, esi
inc esi
test esi, esi
js 0x40a853
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 0x40a795
push 0x100
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00412d6c
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a853
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 0x40a7f0
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00412d6c
xor esi, esi
add esp, 0xc
inc esi
test esi, esi
js 0x40a853
mov ecx, dword [ebp - 0x2828]
lea eax, [ebp - 0x2824]
push eax
push 0
lea edx, [ebp - 0x281c]
call fcn.0040a3fc
mov edi, dword [ebp - 0x2824]
mov esi, eax
test esi, esi
js 0x40a83e
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 0x40a83e
mov eax, dword [ebp - 0x282c]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x40a853
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.004116a3
mov esp, ebp
pop ebp
ret 8