Function at 0x418580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4410a6
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 7
xor ecx, ecx
mov byte [ebp - 0xb1], bl
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x78], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], dx
push 0x2e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xc0], ebx
mov word [ebp - 0x40], ax
call fcn.00430c00
add esp, 0xc
push str.Checking_.NET_version...
push 0x4549c8
mov ecx, 0x4462a0
mov dword [ebp - 0xbc], 4
mov byte [ebp - 0xb2], bl
call fcn.00406230
push edi
push str.Expected_version:__ls
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0x14
push 3
push 0x44a1a4
push edi
call fcn.0042d79d
add esp, 0xc
test eax, eax
jne 0x41869a
push 1
lea edx, [edi + 6]
push 0x44a1ac
push edx
call fcn.0042d79d
add esp, 0xc
test eax, eax
js 0x41869a
push 2
mov eax, 0x44a1b0
lea esi, [ebp - 0x78]
mov byte [ebp - 0xb2], 1
call fcn.00402c20
lea eax, [edi + 8]
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x418680
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x78]
call fcn.004057c0
jmp 0x4186ba
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4186a0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x78]
call fcn.00402c20
push 0x2b
mov eax, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_
lea esi, [ebp - 0x5c]
call fcn.00402c20
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x4186d5
lea eax, [ebp - 0x78]
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4186e0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004057c0
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x418704
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0xb8]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x418771
mov ecx, dword [ebp - 0xb8]
lea edx, [ebp - 0xbc]
push edx
lea eax, [ebp - 0xc0]
push eax
push ebx
push ebx
push str.Install
push ecx
mov dword [ebp - 0xbc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc0], 1
push str.Found_registry_key_for_the_expected_.NET_version.
sete byte [ebp - 0xb1]
jmp 0x418776
push str.Couldnt_open_or_find_registry_key_for_the_expected_.NET_version
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
cmp byte [ebp - 0xb2], bl
je 0x4188fa
cmp byte [ebp - 0xb1], bl
je 0x4188fa
push str.Looking_for_.NET_version_4.5_or_above
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov eax, dword [ebp - 0x5c]
add esp, 8
cmp dword [ebp - 0x48], 8
jae 0x4187c3
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0xb8]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, ebx
jne 0x418812
mov ecx, dword [ebp - 0xb8]
lea edx, [ebp - 0xbc]
push edx
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push str.Version
push ecx
mov dword [ebp - 0xbc], 0x30
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [ebp - 0x94], ax
mov eax, edi
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418830
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x94]
call fcn.00402c20
push 3
mov ecx, 1
lea esi, [ebp - 0xb0]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.004052c0
mov esi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x80], esi
jb 0x418886
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0042c048
add esp, 4
lea eax, [ebp - 0x40]
push eax
xor edx, edx
push str.Found_version:__ls
push 0x4549c8
mov ecx, 0x4462a0
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], ebx
mov word [ebp - 0x94], dx
call fcn.00406230
mov eax, dword [ebp - 0xb0]
add esp, 0xc
cmp dword [ebp - 0x9c], esi
jae 0x4188cb
lea eax, [ebp - 0xb0]
push 3
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0042d79d
add esp, 0xc
test eax, eax
setns byte [ebp - 0xb1]
cmp dword [ebp - 0x9c], esi
jb 0x4188fa
mov edx, dword [ebp - 0xb0]
push edx
call fcn.0042c048
add esp, 4
mov esi, 8
cmp dword [ebp - 0x48], esi
jb 0x418910
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0042c048
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], cx
cmp dword [ebp - 0x64], esi
jb 0x418931
mov edx, dword [ebp - 0x78]
push edx
call fcn.0042c048
add esp, 4
mov al, byte [ebp - 0xb1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret