Function at 0x418050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4414a0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4553d4]
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 edi, ecx
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov byte [ebp - 0x79], 0
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 - 0x80], ebx
mov dword [ebp - 0x88], ebx
mov word [ebp - 0x40], ax
call fcn.00435c00
push 4
push str.v4.5
push edi
mov dword [ebp - 0x84], 4
mov byte [ebp - 0x7a], bl
call fcn.0042ded4
add esp, 0x18
test eax, eax
jne 0x41811a
push 2
mov eax, 0x44b910
lea esi, [ebp - 0x78]
mov byte [ebp - 0x7a], 1
call fcn.00404910
lea eax, [edi + 8]
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x418100
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040f490
jmp 0x41813a
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418120
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x78]
call fcn.00404910
push 0x2b
mov eax, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_
lea esi, [ebp - 0x5c]
call fcn.00404910
mov eax, dword [ebp - 0x78]
mov edi, 8
cmp dword [ebp - 0x64], edi
jae 0x418159
lea eax, [ebp - 0x78]
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x418160
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0040f490
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], edi
jae 0x418183
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x80]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4181e3
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push str.Install
push edx
mov dword [ebp - 0x84], 4
call edi
mov eax, dword [ebp - 0x80]
push eax
call ebx
cmp dword [ebp - 0x88], 1
sete byte [ebp - 0x79]
cmp byte [ebp - 0x7a], 0
je 0x418255
cmp byte [ebp - 0x79], 0
je 0x418255
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x4181fb
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x80]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41823c
mov ecx, dword [ebp - 0x80]
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push str.Version
push ecx
mov dword [ebp - 0x84], 0x30
call edi
mov edx, dword [ebp - 0x80]
push edx
call ebx
push 3
lea eax, [ebp - 0x40]
push 0x44b970
push eax
call fcn.0042ded4
add esp, 0xc
test eax, eax
sete byte [ebp - 0x79]
mov esi, 8
cmp dword [ebp - 0x48], esi
jb 0x41826b
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0042c691
add esp, 4
xor edx, edx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], dx
cmp dword [ebp - 0x64], esi
jb 0x418290
mov eax, dword [ebp - 0x78]
push eax
call fcn.0042c691
add esp, 4
mov al, byte [ebp - 0x79]
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.0042c682
mov esp, ebp
pop ebp
ret