Function at 0x409d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4a0c]
mov eax, 0x4a0c
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51ea90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x4a08], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x4a14]
mov dword [ebp - 0x20], eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x409dd2
mov dword [eax], edi
push 0x200
push edi
lea eax, [ebp + 0x4808]
push eax
call fcn.004fd670
add esp, 0xc
lea edx, [ebx + 0xa00]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409df2
sub eax, esi
push 0xff
sar eax, 1
jne 0x409e1b
push str.VC_REDIST
push pe_nt_image_headers32
lea ecx, [ebp + 0x4808]
push ecx
jmp 0x409e28
push edx
push pe_nt_image_headers32
lea edx, [ebp + 0x4808]
push edx
call fcn.004fa71b
add esp, 0x10
push 0x800
push edi
lea eax, [ebp + 0x3208]
push eax
call fcn.004fd670
push 0x200
push edi
lea ecx, [ebp + 0x4408]
push ecx
call fcn.004fd670
push 0x200
push edi
lea edx, [ebp + 0x4608]
push edx
call fcn.004fd670
add esp, 0x24
call fcn.004290d0
test eax, eax
je 0x409fb1
call fcn.004290d0
mov edx, 1
mov ecx, eax
call fcn.0047f9f0
mov esi, eax
cmp esi, edi
je 0x409fb1
push 0x800
push edi
lea eax, [ebp + 0x3a08]
push eax
call fcn.004fd670
push str.PATH
lea ecx, [ebp + 0x4808]
push ecx
push 0x538448
lea edx, [ebp + 0x3a08]
call fcn.00404380
add esp, 0x18
push edi
push 0x400
lea ebx, [ebp + 0x3208]
lea edx, [ebp + 0x3a08]
mov ecx, esi
call fcn.00487e80
test eax, eax
je 0x409ef0
push 0x800
push edi
mov edx, ebx
push edx
call fcn.004fd670
add esp, 0xc
push 0x800
push edi
lea eax, [ebp + 0x3a08]
push eax
call fcn.004fd670
push 0x53844c
lea ecx, [ebp + 0x4808]
push ecx
push 0x538448
lea edx, [ebp + 0x3a08]
call fcn.00404380
add esp, 0x18
push edi
push pe_nt_image_headers32
lea ebx, [ebp + 0x4408]
lea edx, [ebp + 0x3a08]
mov ecx, esi
call fcn.00487e80
test eax, eax
je 0x409f4f
push 0x200
push edi
mov edx, ebx
push edx
call fcn.004fd670
add esp, 0xc
push 0x800
push edi
lea eax, [ebp + 0x3a08]
push eax
call fcn.004fd670
push str.VERSION
lea ecx, [ebp + 0x4808]
push ecx
push 0x538448
lea edx, [ebp + 0x3a08]
call fcn.00404380
add esp, 0x18
push edi
push pe_nt_image_headers32
lea ebx, [ebp + 0x4608]
lea edx, [ebp + 0x3a08]
mov ecx, esi
call fcn.00487e80
test eax, eax
je 0x409fae
push 0x200
push edi
mov edx, ebx
push edx
call fcn.004fd670
add esp, 0xc
mov ebx, dword [ebp - 0x14]
lea eax, [ebp + 0x3208]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409fc0
sub eax, edx
sar eax, 1
jne 0x409fef
push 0x3ff
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x400
lea eax, [ebp + 0x3208]
push eax
call fcn.004fa71b
add esp, 0x10
lea eax, [ebp + 0x4408]
lea edx, [eax + 2]
jmp 0x40a000
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a000
sub eax, edx
sar eax, 1
jne 0x40a02f
push 0xff
push str.9BE518E6_ECC6_35A9_88E4_87755C07200F
push pe_nt_image_headers32
lea ecx, [ebp + 0x4408]
push ecx
call fcn.004fa71b
add esp, 0x10
lea eax, [ebp + 0x4608]
lea edx, [eax + 2]
jmp 0x40a040
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a040
sub eax, edx
sar eax, 1
jne 0x40a06f
push 0xff
push str.9.0.30729.6161
push pe_nt_image_headers32
lea edx, [ebp + 0x4608]
push edx
call fcn.004fa71b
add esp, 0x10
push 0x3ff
lea eax, [ebp + 0x4408]
push eax
push 0x400
lea ecx, [ebp + 0x3208]
push ecx
call fcn.004fa558
add esp, 0x10
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push edi
lea eax, [ebp + 0x3208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a187
push 0x200
push edi
lea ecx, [ebp + 0x4208]
push ecx
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x18], pe_nt_image_headers32
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp + 0x4208]
push eax
lea ecx, [ebp - 0x28]
push ecx
push edi
push str.DisplayVersion
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a187
lea eax, [ebp + 0x4208]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a100
sub eax, edx
sar eax, 1
je 0x40a187
lea eax, [ebp + 0x4608]
push eax
lea ecx, [ebp + 0x4208]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x40a187
lea esi, [ebp]
call fcn.00407ef0
push 0xff
push str.add_reg
push pe_nt_image_headers32
mov edx, esi
push edx
call fcn.004fa71b
push 0x3ff
lea eax, [ebx + 0x200]
push eax
push 0x400
lea ecx, [ebp + 0x200]
push ecx
call fcn.004fa71b
add esp, 0x20
lea edx, [ebp - 0x24]
push edx
mov eax, esi
push eax
mov ecx, ebx
call fcn.004087b0
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x40a199
mov dword [eax], 1
jmp 0x40a199
push str.VC2008_Redistributable_is_NOT_installed_____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4a08]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x4a0c
mov esp, ebp
pop ebp
ret 4