Function at 0x409050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7936
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x53f1e4]
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.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.00403e00
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 0x409107
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 0x409175
push str.RegGetInstallInfo
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x418], esi
jb 0x409144
mov eax, dword [ebp - 0x42c]
push eax
call fcn.004b1c22
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 0x40916e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40937d
push 0x3ff
lea edx, [ebp - 0x40f]
push ebx
push edx
mov byte [ebp - 0x410], bl
call fcn.004b9c60
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 0x40921b
cmp dword [ebp - 0x418], 8
jb 0x4091e6
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004b1c22
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 0x40916e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40937d
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409224
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00404960
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 0x4092c8
cmp dword [ebp - 0x418], 8
jb 0x409293
mov edx, dword [ebp - 0x42c]
push edx
call fcn.004b1c22
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 0x40916e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40937d
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4092d1
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
push ecx
mov ecx, dword [ebp - 0x43c]
call fcn.00404960
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 0x409339
mov eax, dword [ebp - 0x440]
push eax
lea edx, [ebp - 0x410]
call fcn.00404090
cmp dword [ebp - 0x418], 8
jb 0x409351
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004b1c22
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 0x40937b
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.004b1c2d
mov esp, ebp
pop ebp
ret