Function at 0x4330e0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450897
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x468744]
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 eax, dword [ebp + 8]
xor edi, edi
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
mov dword [ebp - 0x294], edi
push edx
mov dword [ebp - 0x29c], eax
mov word [ebp - 0x218], cx
call fcn.0043d3f0
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x25c], edi
mov word [ebp - 0x26c], cx
mov dword [ebp - 4], edi
xor edx, edx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], dx
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x278], edi
mov word [ebp - 0x288], cx
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
push 0x104
lea eax, [ebp - 0x218]
push edi
push eax
mov byte [ebp - 4], 4
call fcn.0043d3f0
mov eax, dword [ebp + 0xc]
add esp, 0x18
sub eax, edi
je 0x43320c
dec eax
je 0x4331fd
dec eax
jne 0x433251
mov dword [ebp - 0x294], 1
call fcn.00431270
test al, al
mov eax, str.Microsoft.NETFramework64_v2.0.50727_
jne 0x4331e5
mov eax, str.Microsoft.NETFramework_v2.0.50727_
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4331f0
jmp 0x433241
mov dword [ebp - 0x294], edi
push 0x24
mov eax, str.Microsoft.NETFramework_v2.0.50727_
jmp 0x433246
call fcn.00431270
xor ecx, ecx
test al, al
setne cl
mov dword [ebp - 0x294], ecx
call fcn.00431270
test al, al
mov eax, str.Microsoft.NETFramework64_v2.0.50727_
jne 0x433231
mov eax, str.Microsoft.NETFramework_v2.0.50727_
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x433236
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x250]
call fcn.00406580
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x433274
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x294]
lea ebx, [ebp - 0x28c]
mov dword [ebp - 0x290], edi
call fcn.0042d230
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4333b5
mov eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x290]
push ecx
or eax, 0x20019
push eax
push edi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, edi
jne 0x4333b5
mov ecx, dword [ebp - 0x290]
lea edx, [ebp - 0x294]
push edx
lea eax, [ebp - 0x298]
push eax
push edi
push edi
push str.Install
push ecx
mov dword [ebp - 0x294], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x234]
push edx
mov eax, str.TargetVersion
lea ecx, [ebp - 0x290]
call fcn.0042d4f0
cmp dword [ebp - 0x298], 1
jne 0x433345
mov eax, dword [ebp - 0x224]
push str.4.0.0
mov edi, 5
lea ecx, [ebp - 0x234]
call fcn.00404ab0
test eax, eax
jne 0x433343
lea eax, [ebp - 0x26c]
push eax
mov eax, str.InstallPath
lea ecx, [ebp - 0x290]
call fcn.0042d4f0
xor edi, edi
lea ecx, [ebp - 0x234]
push ecx
mov eax, str.Version
lea ecx, [ebp - 0x290]
call fcn.0042d4f0
cmp dword [ebp - 0x298], 1
jne 0x433399
mov edi, 3
push 0x45fa8c
mov eax, edi
lea ecx, [ebp - 0x234]
call fcn.00404ab0
test eax, eax
jne 0x433397
lea edx, [ebp - 0x26c]
push edx
mov eax, str.InstallPath
lea ecx, [ebp - 0x290]
call fcn.0042d4f0
xor edi, edi
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x4333aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x290], edi
jmp 0x433495
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x4333c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x294]
lea ebx, [ebp - 0x28c]
mov dword [ebp - 0x290], edi
call fcn.0042d230
cmp eax, edi
jne 0x433495
mov eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x290]
push ecx
or eax, 0xf003f
push eax
push edi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v2.0.50727
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, edi
jne 0x433495
mov ecx, dword [ebp - 0x290]
lea edx, [ebp - 0x294]
push edx
lea eax, [ebp - 0x298]
push eax
push edi
push edi
push str.Install
push ecx
mov dword [ebp - 0x294], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x43344a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x298], 1
mov dword [ebp - 0x290], edi
jne 0x433495
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x433462
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x26c]
call fcn.00406580
push edi
lea edx, [ebp - 0x250]
mov esi, eax
push edx
or eax, 0xffffffff
call fcn.00404080
push 0xf
mov eax, str.InstallUtil.exe
lea ecx, [ebp - 0x26c]
call fcn.00403640
mov eax, dword [ebp - 0x25c]
mov ecx, 0x104
cmp eax, ecx
jae 0x4334b8
mov ecx, eax
mov esi, dword [ebp - 0x258]
mov ebx, dword [ebp - 0x26c]
mov eax, ebx
cmp esi, 8
jae 0x4334d1
lea eax, [ebp - 0x26c]
add ecx, ecx
push ecx
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.0043e700
add esp, 0xc
mov eax, ebx
cmp esi, 8
jae 0x4334f1
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
je 0x43359e
mov eax, dword [ebp - 0x29c]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 7
lea edi, [ebp - 0x26c]
mov esi, eax
mov word [eax], cx
call fcn.00404010
mov ebx, 8
cmp dword [ebp - 0x220], ebx
jb 0x43353e
mov edx, dword [ebp - 0x234]
push edx
call fcn.00439b10
add esp, 4
xor eax, eax
xor edi, edi
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
cmp eax, edi
je 0x43356a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x290], edi
cmp dword [ebp - 0x23c], ebx
jb 0x433587
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00439b10
add esp, 4
xor edx, edx
cmp dword [ebp - 0x258], ebx
mov dword [ebp - 0x23c], 7
jmp 0x433628
mov esi, dword [ebp - 0x29c]
mov ebx, 7
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
push edi
mov eax, 0x456424
mov word [esi], cx
call fcn.00406580
cmp dword [ebp - 0x220], 8
jb 0x4335d5
mov edx, dword [ebp - 0x234]
push edx
call fcn.00439b10
add esp, 4
xor eax, eax
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], edi
cmp eax, edi
je 0x4335fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x23c], 8
mov dword [ebp - 0x290], edi
jb 0x433619
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00439b10
add esp, 4
xor edx, edx
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x250], dx
mov dword [ebp - 0x240], edi
jb 0x433646
mov eax, dword [ebp - 0x26c]
push eax
call fcn.00439b10
add esp, 4
mov eax, esi
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.00438786
mov esp, ebp
pop ebp
ret