Function at 0x4151a0
Capabilities:
Get number of processors
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b76bd
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x57aa54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov byte [ebp - 0x11], 0
push 0x4c1178
lea ecx, [ebp - 0x64]
call fcn.004038f0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
call fcn.00403990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00403970
mov edx, dword [ebp - 0x68]
mov byte [edx + 0x2a], 0
lea eax, [ebp - 0x10]
push eax
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41528e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4c11e8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415284
cmp dword [ebp - 0x20], 1
jne 0x415284
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x68]
mov byte [edx + 0x2a], 1
push str.NET_Framework_4
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
call fcn.004039b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x41529d
mov al, 1
jmp 0x415655
lea edx, [ebp - 0x10]
push edx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.5
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41536a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push 0x4c1278
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415360
cmp dword [ebp - 0x2c], 1
jne 0x415360
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x68]
mov byte [ecx + 0x2a], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 4
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x4c1288
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415350
mov eax, dword [ebp - 0x30]
push eax
push str.NET_Framework_3.5_Service_Pack__d
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
push ecx
call fcn.004044a0
add esp, 0xc
jmp 0x415360
push str.NET_Framework_3.5
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
call fcn.004039b0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x415379
mov al, 1
jmp 0x415655
lea ecx, [ebp - 0x10]
push ecx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x415446
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 4
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x4c1358
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41543c
cmp dword [ebp - 0x3c], 1
jne 0x41543c
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x2a], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 4
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x34]
push eax
push 0
push 0x4c1368
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41542c
mov edx, dword [ebp - 0x40]
push edx
push str.NET_Framework_3.0_Service_Pack__d
mov eax, dword [ebp - 0x68]
add eax, 0x30
push eax
call fcn.004044a0
add esp, 0xc
jmp 0x41543c
push str.NET_Framework_3.0
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
call fcn.004039b0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx edx, byte [ebp - 0x11]
test edx, edx
je 0x415455
mov al, 1
jmp 0x415655
lea eax, [ebp - 0x10]
push eax
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v2.0.50727
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x415522
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x48], 4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push 0x4c1444
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415518
cmp dword [ebp - 0x4c], 1
jne 0x415518
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x68]
mov byte [edx + 0x2a], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0
push 0x4c1454
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415508
mov ecx, dword [ebp - 0x50]
push ecx
push str.NET_Framework_2.0_Service_Pack__d
mov edx, dword [ebp - 0x68]
add edx, 0x30
push edx
call fcn.004044a0
add esp, 0xc
jmp 0x415518
push str.NET_Framework_2.0
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
call fcn.004039b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x415531
mov al, 1
jmp 0x415655
lea edx, [ebp - 0x10]
push edx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v1.1.4322
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4155fe
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x58], 4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push str.Install
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4155f4
cmp dword [ebp - 0x5c], 1
jne 0x4155f4
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x68]
mov byte [ecx + 0x2a], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 4
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0x4c1544
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4155e4
mov eax, dword [ebp - 0x60]
push eax
push str.NET_Framework_1.1_Service_Pack__d
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
push ecx
call fcn.004044a0
add esp, 0xc
jmp 0x4155f4
push str.NET_Framework_1.1
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
call fcn.004039b0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x41560a
mov al, 1
jmp 0x415655
lea ecx, [ebp - 0x10]
push ecx
push str.SoftwareMicrosoft.NET_FrameworkPolicy_v1.0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x415647
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x68]
mov byte [edx + 0x2a], 0
push str.NET_Framework_1.0
mov ecx, dword [ebp - 0x68]
add ecx, 0x30
call fcn.004039b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x415653
mov al, 1
jmp 0x415655
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret