Function at 0x4012a0
Capabilities:
Get common file path
Load windows common language runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ec51
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x416008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x428], 7
push eax
push 0x413d18
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov word [ebp - 0x43c], ax
call fcn.004019b0
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x413d18
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x458], 7
mov dword [ebp - 0x45c], 0
mov word [ebp - 0x46c], ax
call fcn.004019b0
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x413d18
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x440], 7
mov dword [ebp - 0x444], 0
mov word [ebp - 0x454], ax
call fcn.004019b0
push 0x208
mov byte [ebp - 4], 2
lea eax, [ebp - 0x21c]
push 0
lea esi, [edi + 8]
mov dword [edi + 4], 0
lea ebx, [edi + 0x10]
mov dword [esi], 0
push eax
mov dword [ebx], 0
mov dword [edi + 0xc], 0
call fcn.00404970
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x413d1c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x401615
push str.CLRCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push 0x413e20
push 0x413e10
call eax
test eax, eax
js 0x401615
mov eax, dword [esi]
lea edx, [edi + 0xc]
push edx
push 0x413e00
push 0x413e50
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x401615
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0
push eax
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
js 0x401615
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00404970
add esp, 0xc
mov dword [ebp - 0x470], 0x104
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x401615
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x490]
call fcn.004017f0
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401770
lea ecx, [ebp - 0x490]
call fcn.00401730
push 1
sub esp, 8
lea ecx, [ebp - 0x43c]
call fcn.004018c0
mov esi, eax
cmp esi, 0xffffffff
je 0x401615
push esi
push 0
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x43c]
call fcn.004016f0
push eax
lea ecx, [ebp - 0x46c]
call fcn.00401770
lea ecx, [ebp - 0x490]
call fcn.00401730
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x43c]
sub eax, esi
dec eax
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.004016f0
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401770
lea ecx, [ebp - 0x490]
call fcn.00401730
push 1
sub esp, 8
lea ecx, [ebp - 0x43c]
call fcn.004018c0
cmp eax, 0xffffffff
je 0x401615
push eax
push 0
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x43c]
call fcn.004016f0
push eax
lea ecx, [ebp - 0x454]
call fcn.00401770
lea ecx, [ebp - 0x490]
call fcn.00401730
cmp dword [ebp - 0x458], 8
lea eax, [ebp - 0x46c]
cmovae eax, dword [ebp - 0x46c]
push eax
call fcn.00405e34
cmp dword [ebp - 0x440], 8
lea ecx, [ebp - 0x454]
mov esi, eax
mov dword [ebp - 0x478], edx
cmovae ecx, dword [ebp - 0x454]
push ecx
call fcn.00405e34
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x478]
test eax, eax
jl 0x401615
jg 0x4015d6
cmp esi, 4
jb 0x401615
cmp esi, 4
jne 0x4015ea
test eax, eax
jne 0x4015ea
test edx, edx
jl 0x401615
jg 0x4015ea
cmp ecx, 6
jb 0x401615
mov eax, dword [edi + 0xc]
push ebx
push 0x413e30
push 0x413e40
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
js 0x401615
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [edi + 4], 1
mov bl, 1
jmp 0x401617
xor bl, bl
mov eax, dword [ebp - 0x440]
cmp eax, 8
jb 0x40162f
inc eax
push eax
push dword [ebp - 0x454]
call fcn.00401ae0
xor eax, eax
mov dword [ebp - 0x440], 7
mov word [ebp - 0x454], ax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x444], 0
cmp eax, 8
jb 0x401664
inc eax
push eax
push dword [ebp - 0x46c]
call fcn.00401ae0
mov ecx, dword [ebp - 0x428]
xor eax, eax
mov dword [ebp - 0x458], 7
mov dword [ebp - 0x45c], 0
mov word [ebp - 0x46c], ax
cmp ecx, 8
jb 0x401699
inc ecx
push ecx
push dword [ebp - 0x43c]
call fcn.00401ae0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret 4