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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4507c7
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x469738]
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.004440d0
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.004440d0
mov eax, dword [ebp + 0xc]
add esp, 0x18
sub eax, edi
je 0x43343c
dec eax
je 0x43342d
dec eax
jne 0x433481
mov dword [ebp - 0x294], 1
call fcn.00431430
test al, al
mov eax, str.Microsoft.NETFramework64_v2.0.50727_
jne 0x433415
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 0x433420
jmp 0x433471
mov dword [ebp - 0x294], edi
push 0x24
mov eax, str.Microsoft.NETFramework_v2.0.50727_
jmp 0x433476
call fcn.00431430
xor ecx, ecx
test al, al
setne cl
mov dword [ebp - 0x294], ecx
call fcn.00431430
test al, al
mov eax, str.Microsoft.NETFramework64_v2.0.50727_
jne 0x433461
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 0x433466
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x250]
call fcn.004065b0
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x4334a4
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 0x4335e5
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 0x4335e5
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 0x433575
mov eax, dword [ebp - 0x224]
push str.4.0.0
mov edi, 5
lea ecx, [ebp - 0x234]
call fcn.00404ab0
test eax, eax
jne 0x433573
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 0x4335c9
mov edi, 3
push 0x46084c
mov eax, edi
lea ecx, [ebp - 0x234]
call fcn.00404ab0
test eax, eax
jne 0x4335c7
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 0x4335da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x290], edi
jmp 0x4336c5
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x4335f6
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 0x4336c5
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 0x4336c5
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 0x43367a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x298], 1
mov dword [ebp - 0x290], edi
jne 0x4336c5
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x433692
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x26c]
call fcn.004065b0
push edi
lea edx, [ebp - 0x250]
mov esi, eax
push edx
or eax, 0xffffffff
call fcn.004040d0
push 0xf
mov eax, str.InstallUtil.exe
lea ecx, [ebp - 0x26c]
call fcn.00403690
mov eax, dword [ebp - 0x25c]
mov ecx, 0x104
cmp eax, ecx
jae 0x4336e8
mov ecx, eax
mov esi, dword [ebp - 0x258]
mov ebx, dword [ebp - 0x26c]
mov eax, ebx
cmp esi, 8
jae 0x433701
lea eax, [ebp - 0x26c]
add ecx, ecx
push ecx
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.0043e000
add esp, 0xc
mov eax, ebx
cmp esi, 8
jae 0x433721
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
je 0x4337ce
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.00404060
mov ebx, 8
cmp dword [ebp - 0x220], ebx
jb 0x43376e
mov edx, dword [ebp - 0x234]
push edx
call fcn.004396db
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 0x43379a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x290], edi
cmp dword [ebp - 0x23c], ebx
jb 0x4337b7
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004396db
add esp, 4
xor edx, edx
cmp dword [ebp - 0x258], ebx
mov dword [ebp - 0x23c], 7
jmp 0x433858
mov esi, dword [ebp - 0x29c]
mov ebx, 7
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
push edi
mov eax, 0x4574a4
mov word [esi], cx
call fcn.004065b0
cmp dword [ebp - 0x220], 8
jb 0x433805
mov edx, dword [ebp - 0x234]
push edx
call fcn.004396db
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 0x43382b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x23c], 8
mov dword [ebp - 0x290], edi
jb 0x433849
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004396db
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 0x433876
mov eax, dword [ebp - 0x26c]
push eax
call fcn.004396db
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.00438351
mov esp, ebp
pop ebp
ret