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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4509e7
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x469744]
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.0043d4f0
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.0043d4f0
mov eax, dword [ebp + 0xc]
add esp, 0x18
sub eax, edi
je 0x43334c
dec eax
je 0x43333d
dec eax
jne 0x433391
mov dword [ebp - 0x294], 1
call fcn.004313c0
test al, al
mov eax, str.Microsoft.NETFramework64_v2.0.50727_
jne 0x433325
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 0x433330
jmp 0x433381
mov dword [ebp - 0x294], edi
push 0x24
mov eax, str.Microsoft.NETFramework_v2.0.50727_
jmp 0x433386
call fcn.004313c0
xor ecx, ecx
test al, al
setne cl
mov dword [ebp - 0x294], ecx
call fcn.004313c0
test al, al
mov eax, str.Microsoft.NETFramework64_v2.0.50727_
jne 0x433371
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 0x433376
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x250]
call fcn.00406550
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x4333b4
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.0042d360
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4334f5
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 0x4334f5
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.0042d620
cmp dword [ebp - 0x298], 1
jne 0x433485
mov eax, dword [ebp - 0x224]
push str.4.0.0
mov edi, 5
lea ecx, [ebp - 0x234]
call fcn.00404a60
test eax, eax
jne 0x433483
lea eax, [ebp - 0x26c]
push eax
mov eax, str.InstallPath
lea ecx, [ebp - 0x290]
call fcn.0042d620
xor edi, edi
lea ecx, [ebp - 0x234]
push ecx
mov eax, str.Version
lea ecx, [ebp - 0x290]
call fcn.0042d620
cmp dword [ebp - 0x298], 1
jne 0x4334d9
mov edi, 3
push 0x460b0c
mov eax, edi
lea ecx, [ebp - 0x234]
call fcn.00404a60
test eax, eax
jne 0x4334d7
lea edx, [ebp - 0x26c]
push edx
mov eax, str.InstallPath
lea ecx, [ebp - 0x290]
call fcn.0042d620
xor edi, edi
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x4334ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x290], edi
jmp 0x4335d5
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x433506
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.0042d360
cmp eax, edi
jne 0x4335d5
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 0x4335d5
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 0x43358a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x298], 1
mov dword [ebp - 0x290], edi
jne 0x4335d5
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4335a2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x26c]
call fcn.00406550
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 0x4335f8
mov ecx, eax
mov esi, dword [ebp - 0x258]
mov ebx, dword [ebp - 0x26c]
mov eax, ebx
cmp esi, 8
jae 0x433611
lea eax, [ebp - 0x26c]
add ecx, ecx
push ecx
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.0043e800
add esp, 0xc
mov eax, ebx
cmp esi, 8
jae 0x433631
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
je 0x4336de
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 0x43367e
mov edx, dword [ebp - 0x234]
push edx
call fcn.00439c00
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 0x4336aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x290], edi
cmp dword [ebp - 0x23c], ebx
jb 0x4336c7
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00439c00
add esp, 4
xor edx, edx
cmp dword [ebp - 0x258], ebx
mov dword [ebp - 0x23c], 7
jmp 0x433768
mov esi, dword [ebp - 0x29c]
mov ebx, 7
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
push edi
mov eax, 0x457424
mov word [esi], cx
call fcn.00406550
cmp dword [ebp - 0x220], 8
jb 0x433715
mov edx, dword [ebp - 0x234]
push edx
call fcn.00439c00
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 0x43373b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x23c], 8
mov dword [ebp - 0x290], edi
jb 0x433759
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00439c00
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 0x433786
mov eax, dword [ebp - 0x26c]
push eax
call fcn.00439c00
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.00438876
mov esp, ebp
pop ebp
ret