Function at 0x4035ee
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x1bc
and dword [ebp + 0x64], 0
push ebx
push esi
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
call fcn.0040354c
add esp, 0xc
cmp dword [ebp + 0x78], 0x10000
jne 0x403646
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0x6c]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v1.0
mov edi, closesocket
jmp 0x4036fc
push 0xb
pop ecx
push 0x15
mov esi, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0x6c]
push eax
mov ebx, 0x20019
push ebx
push 0
lea eax, [ebp - 0x48]
push eax
mov edi, closesocket
push edi
call esi
test eax, eax
je 0x403707
and dword [ebp + 0x68], 0
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax + 0x38]
lea ecx, [ebp + 0x38]
cmp eax, ecx
je 0x4038ba
cmp dword [ebp + 0x68], 0
jne 0x4036d9
cmp byte [eax], 0x2e
jne 0x4036c7
mov dword [ebp + 0x68], eax
jmp 0x4036c8
dec eax
lea ecx, [ebp + 0x38]
cmp eax, ecx
jne 0x4036b7
cmp dword [ebp + 0x68], 0
je 0x4038ba
mov eax, dword [ebp + 0x68]
mov byte [eax], 0
lea eax, [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x60]
lea eax, [ebp + eax - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x6c]
push eax
push ebx
push 0
lea eax, [ebp - 0x48]
push eax
push edi
call esi
test eax, eax
jne 0x4038ba
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x6c]
push eax
push ebx
push 0
push str.SOFTWAREMicrosoft.NETFramework
push edi
call esi
test eax, eax
jne 0x4037ef
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp + 0x5c]
push eax
push 0
push str.InstallRoot
push dword [ebp + 0x6c]
mov dword [ebp + 0x60], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4037dc
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x14c]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x403781
push 0x40879c
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.mscorlib.dll
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4037dc
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.00402e45
mov eax, dword [ebp + 0x7c]
add esp, 0xc
cmp dword [ebp + 0x68], eax
jae 0x4037dc
mov dword [ebp + 0x64], 1
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x64], 0
jne 0x4038aa
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Setup
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x6c]
push eax
push ebx
push 0
lea eax, [ebp - 0x14c]
push eax
push edi
call esi
test eax, eax
jne 0x4038aa
lea ecx, [ebp + 0x5c]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp + 0x58]
push ecx
push eax
push str.Version
push dword [ebp + 0x6c]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4038a1
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.00403573
push dword [ebp + 0x7c]
mov esi, dword [ebp + 0x68]
push dword [ebp + 0x78]
push esi
push dword [ebp + 0x60]
call fcn.00402973
add esp, 0x1c
test eax, eax
jne 0x4038a1
cmp esi, dword [ebp + 0x7c]
jae 0x4038a1
mov dword [ebp + 0x64], 1
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp + 0x64], eax
pop edi
pop esi
sete al
pop ebx
add ebp, 0x70
leave
ret
mov dword [ebp + 0x64], 1
jmp 0x4038aa