Function at 0x432d20
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450a30
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
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 ecx, 7
xor eax, eax
xor edx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov word [ebp - 0x48], dx
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], eax
mov word [ebp - 0x64], dx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 3
cmp byte [0x46c06c], dl
jne 0x4331f3
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process
push str.kernel32
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x432dcd
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x74], 0
setne al
test al, al
je 0x432dcd
mov dword [ebp - 0x74], 1
jmp 0x432e0a
push str.IsWow64Process
push str.kernel32
call edi
push eax
call ebx
mov esi, eax
test esi, esi
je 0x432dfa
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x74], 0
setne al
test al, al
jne 0x432e03
mov dword [ebp - 0x74], 0
jmp 0x432e0a
mov dword [ebp - 0x74], 2
push 0x104
push 0x46c070
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x432e28
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
lea ebx, [ebp - 0x68]
mov dword [ebp - 0x6c], 0
call fcn.0042d360
xor edi, edi
cmp eax, edi
jne 0x432f0b
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x6c]
push ecx
or eax, 0xf003f
push eax
push edi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v2.0.50727
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x432f0b
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push str.Install
push ecx
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x6c]
cmp eax, edi
je 0x432e98
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], edi
jne 0x432f19
call fcn.004313c0
test al, al
mov eax, 0x46c070
lea edx, [eax + 2]
je 0x432ee0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x432eb2
sub eax, edx
sar eax, 1
push eax
mov eax, 0x46c070
lea esi, [ebp - 0x48]
call fcn.00406550
mov ecx, eax
push 0x25
mov eax, str.Microsoft.NETFramework64_v2.0.50727
jmp 0x432f06
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x432ee0
sub eax, edx
sar eax, 1
push eax
mov eax, 0x46c070
lea esi, [ebp - 0x48]
call fcn.00406550
mov ecx, eax
push 0x23
mov eax, str.Microsoft.NETFramework_v2.0.50727
call fcn.00403640
mov eax, dword [ebp - 0x6c]
cmp eax, edi
je 0x432f19
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
lea ebx, [ebp - 0x68]
mov dword [ebp - 0x6c], edi
call fcn.0042d360
xor esi, esi
cmp eax, esi
jne 0x432f97
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x6c]
push edx
or eax, 0xf003f
push eax
push esi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.5
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x432f97
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x70]
push ecx
push esi
push esi
push str.Install
push edx
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x6c]
cmp eax, esi
je 0x432f7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], esi
jne 0x432fa5
lea eax, [ebp - 0x48]
push eax
mov eax, str.InstallPath
lea ecx, [ebp - 0x6c]
call fcn.0042d620
mov eax, dword [ebp - 0x6c]
cmp eax, esi
je 0x432fa5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
lea ebx, [ebp - 0x68]
mov dword [ebp - 0x6c], esi
call fcn.0042d360
test eax, eax
jne 0x433085
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x6c]
push ecx
or eax, 0x20019
push eax
push 0
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x433085
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push str.Install
push ecx
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x2c]
push edx
mov eax, str.TargetVersion
lea ecx, [ebp - 0x6c]
call fcn.0042d620
cmp dword [ebp - 0x70], 1
jne 0x433045
mov eax, dword [ebp - 0x1c]
push str.4.0.0
mov edi, 5
lea ecx, [ebp - 0x2c]
call fcn.00404a60
test eax, eax
jne 0x433045
lea eax, [ebp - 0x48]
push eax
mov eax, str.InstallPath
lea ecx, [ebp - 0x6c]
call fcn.0042d620
lea ecx, [ebp - 0x2c]
push ecx
mov eax, str.Version
lea ecx, [ebp - 0x6c]
call fcn.0042d620
cmp dword [ebp - 0x70], 1
jne 0x433085
mov edi, 3
push 0x460b0c
mov eax, edi
lea ecx, [ebp - 0x2c]
call fcn.00404a60
test eax, eax
jne 0x433085
lea edx, [ebp - 0x48]
push edx
mov eax, str.InstallPath
lea ecx, [ebp - 0x6c]
call fcn.0042d620
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x433093
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
lea ebx, [ebp - 0x68]
mov dword [ebp - 0x6c], esi
call fcn.0042d360
xor esi, esi
cmp eax, esi
jne 0x433181
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x6c]
push ecx
or eax, 0x20019
push eax
push esi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x433181
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push str.Install
push ecx
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x2c]
push edx
mov eax, str.TargetVersion
lea ecx, [ebp - 0x6c]
call fcn.0042d620
cmp dword [ebp - 0x70], 1
jne 0x433130
mov eax, dword [ebp - 0x1c]
push str.4.0.0
lea edi, [esi + 5]
lea ecx, [ebp - 0x2c]
call fcn.00404a60
test eax, eax
jne 0x433130
lea eax, [ebp - 0x48]
push eax
mov eax, str.InstallPath
lea ecx, [ebp - 0x6c]
call fcn.0042d620
lea ecx, [ebp - 0x2c]
push ecx
mov eax, str.Version
lea ecx, [ebp - 0x6c]
call fcn.0042d620
cmp dword [ebp - 0x70], 1
jne 0x433170
mov edi, 3
push 0x460b0c
mov eax, edi
lea ecx, [ebp - 0x2c]
call fcn.00404a60
test eax, eax
jne 0x433170
lea edx, [ebp - 0x48]
push edx
mov eax, str.InstallPath
lea ecx, [ebp - 0x6c]
call fcn.0042d620
mov eax, dword [ebp - 0x6c]
cmp eax, esi
je 0x43317e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x6c], esi
mov eax, dword [ebp - 0x38]
mov ecx, 0x104
cmp eax, ecx
jae 0x43318f
mov ecx, eax
mov eax, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x43319f
lea eax, [ebp - 0x48]
add ecx, ecx
push ecx
push eax
push 0x46c070
call fcn.0043e800
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x4331c1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00439c00
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
cmp eax, esi
je 0x4331df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x6c], esi
cmp dword [ebp - 0x34], edi
jb 0x4331f3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00439c00
add esp, 4
mov eax, 0x46c070
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