Function at 0x408b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f14f6
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x54b1b4]
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 str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
call fcn.00408440
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.00407350
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 0x408c17
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 0x408c85
push str.RegGetInstallInfo
call fcn.004085f0
add esp, 4
cmp dword [ebp - 0x418], esi
jb 0x408c54
mov eax, dword [ebp - 0x42c]
push eax
call fcn.004ba3a4
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 0x408c7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x408e8d
push 0x3ff
lea edx, [ebp - 0x40f]
push ebx
push edx
mov byte [ebp - 0x410], bl
call fcn.004c24e0
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 0x408d2b
cmp dword [ebp - 0x418], 8
jb 0x408cf6
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004ba3a4
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 0x408c7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x408e8d
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408d34
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00408440
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 0x408dd8
cmp dword [ebp - 0x418], 8
jb 0x408da3
mov edx, dword [ebp - 0x42c]
push edx
call fcn.004ba3a4
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 0x408c7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x408e8d
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408de1
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
push ecx
mov ecx, dword [ebp - 0x43c]
call fcn.00408440
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 0x408e49
mov eax, dword [ebp - 0x440]
push eax
lea edx, [ebp - 0x410]
call fcn.00408590
cmp dword [ebp - 0x418], 8
jb 0x408e61
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004ba3a4
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 0x408e8b
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.004ba3af
mov esp, ebp
pop ebp
ret