Function at 0x409ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4532e0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x465b00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x20]
call fcn.0040b180
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040b180
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallRFW_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409f47
cmp dword [ebp - 0x10], 0
je 0x409f47
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push str.DisplayVersion
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e27
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0043ff28
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004401c0
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x409e27
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.DisplayVersion
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e15
cmp dword [ebp - 0x24], 0
jne 0x409de5
mov dword [ebp - 0x54], 0
jmp 0x409df4
mov eax, dword [ebp - 0x24]
push eax
call fcn.00440430
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x20]
call fcn.00405160
mov eax, dword [ebp - 0x20]
push eax
push str.OldVersion__s
call fcn.00407f90
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0044219d
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.InstallLocation
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409ee4
mov eax, dword [ebp - 0x14]
push eax
call fcn.0043ff28
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x28]
push eax
call fcn.004401c0
add esp, 0xc
cmp dword [ebp - 0x28], 0
je 0x409ee4
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push str.InstallLocation
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409ed2
cmp dword [ebp - 0x28], 0
jne 0x409ea7
mov dword [ebp - 0x58], 0
jmp 0x409eb6
mov edx, dword [ebp - 0x28]
push edx
call fcn.00440430
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00405160
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x74]
call fcn.0040a080
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0044219d
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x5c], ecx
xor edx, edx
cmp dword [ebp - 0x5c], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x409f47
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x60], edx
xor eax, eax
cmp dword [ebp - 0x60], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x409f47
mov dword [ebp - 0x3c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a90
mov eax, dword [ebp - 0x3c]
jmp 0x409f6c
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a90
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret