Function at 0x407ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eccf6
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5441b4]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
push 0x34
xor edx, edx
push 0x50bae0
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
call fcn.004073c0
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.004064e0
movzx eax, byte [ebp + 0x10]
mov ecx, dword [ebp - 0x42c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0x20019
cmp dword [ebp - 0x418], esi
jae 0x407b67
lea ecx, [ebp - 0x42c]
lea edx, [ebp - 0x430]
push edx
push eax
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407bd5
push str.RegGetInstallInfo
call fcn.00407570
add esp, 4
cmp dword [ebp - 0x418], esi
jb 0x407ba4
mov eax, dword [ebp - 0x42c]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x430]
xor ecx, ecx
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], cx
cmp eax, ebx
je 0x407bce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x407ddd
push 0x3ff
lea edx, [ebp - 0x40f]
push ebx
push edx
mov byte [ebp - 0x410], bl
call fcn.004be120
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x434]
push edx
push ebx
push str.InstallLocation
push eax
mov dword [ebp - 0x438], 0x400
mov dword [ebp - 0x434], ebx
call esi
test eax, eax
je 0x407c7b
cmp dword [ebp - 0x418], 8
jb 0x407c46
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x430]
xor edx, edx
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
cmp eax, ebx
je 0x407bce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x407ddd
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407c84
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004073c0
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp - 0x430]
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x434]
push eax
push ebx
push str.DisplayVersion
mov edi, 0x400
push ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x438], edi
call esi
test eax, eax
je 0x407d28
cmp dword [ebp - 0x418], 8
jb 0x407cf3
mov edx, dword [ebp - 0x42c]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov word [ebp - 0x42c], ax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
je 0x407bce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x407ddd
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407d31
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
push ecx
mov ecx, dword [ebp - 0x43c]
call fcn.004073c0
lea edx, [ebp - 0x438]
push edx
mov edx, dword [ebp - 0x430]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x434]
push ecx
push ebx
push str.UpdateExeVersion
push edx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x438], edi
call esi
test eax, eax
jne 0x407d99
mov eax, dword [ebp - 0x440]
push eax
lea edx, [ebp - 0x410]
call fcn.00407510
cmp dword [ebp - 0x418], 8
jb 0x407db1
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x430]
xor edx, edx
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
cmp eax, ebx
je 0x407ddb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.004b6111
mov esp, ebp
pop ebp
ret