Function at 0x420340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442200
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4543e4]
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.00432fb0
push 4
push str.v4.5
push edi
mov dword [ebp - 0x84], 4
mov byte [ebp - 0x7a], bl
call fcn.0042fca0
add esp, 0x18
test eax, eax
jne 0x42040a
push 2
mov eax, 0x44bfcc
lea esi, [ebp - 0x78]
mov byte [ebp - 0x7a], 1
call fcn.00403f50
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 0x4203f0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x78]
call fcn.00402b10
jmp 0x42042a
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420410
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x78]
call fcn.00403f50
push 0x2b
mov eax, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_
lea esi, [ebp - 0x5c]
call fcn.00403f50
mov eax, dword [ebp - 0x78]
mov edi, 8
cmp dword [ebp - 0x64], edi
jae 0x420449
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 0x420450
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00402b10
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], edi
jae 0x420473
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 0x4204d3
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 0x420545
cmp byte [ebp - 0x79], 0
je 0x420545
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x4204eb
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 0x42052c
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 0x44c030
push eax
call fcn.0042fca0
add esp, 0xc
test eax, eax
sete byte [ebp - 0x79]
mov esi, 8
cmp dword [ebp - 0x48], esi
jb 0x42055b
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0042e4d8
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 0x420580
mov eax, dword [ebp - 0x78]
push eax
call fcn.0042e4d8
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.0042e4c9
mov esp, ebp
pop ebp
ret