Function at 0x408f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f26a6
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x54c1b4]
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 0x512188
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
call fcn.00408810
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.00407720
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 0x408fe7
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 0x409055
push str.RegGetInstallInfo
call fcn.004089c0
add esp, 4
cmp dword [ebp - 0x418], esi
jb 0x409024
mov eax, dword [ebp - 0x42c]
push eax
call fcn.004bb4d8
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 0x40904e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40925d
push 0x3ff
lea edx, [ebp - 0x40f]
push ebx
push edx
mov byte [ebp - 0x410], bl
call fcn.004c3610
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 0x4090fb
cmp dword [ebp - 0x418], 8
jb 0x4090c6
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004bb4d8
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 0x40904e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40925d
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409104
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00408810
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 0x4091a8
cmp dword [ebp - 0x418], 8
jb 0x409173
mov edx, dword [ebp - 0x42c]
push edx
call fcn.004bb4d8
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 0x40904e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40925d
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4091b1
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
push ecx
mov ecx, dword [ebp - 0x43c]
call fcn.00408810
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 0x409219
mov eax, dword [ebp - 0x440]
push eax
lea edx, [ebp - 0x410]
call fcn.00408960
cmp dword [ebp - 0x418], 8
jb 0x409231
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004bb4d8
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 0x40925b
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.004bb4e3
mov esp, ebp
pop ebp
ret