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

Disassembly:
push 0xffffffffffffffff
push 0x456740
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, 7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
mov dword [esp + 0x88], ebx
cmp byte [0x470dd8], bl
jne 0x437c84
push 0x104
push 0x470de0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
lea eax, [esp + 0x18]
push eax
push 0xf003f
push ebx
mov byte [esp + 0x94], 3
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v2.0.50727
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call ebp
cmp eax, ebx
jne 0x437981
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push str.Install
push eax
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x437940
push eax
call edi
cmp dword [esp + 0x20], 1
mov dword [esp + 0x18], ebx
jne 0x437992
mov eax, 0x470de0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x437953
sub eax, edx
sar eax, 1
push eax
push 0x470de0
lea esi, [esp + 0x4c]
call fcn.00404170
push 0x23
push str.Microsoft.NETFramework_v2.0.50727
mov ecx, eax
call fcn.00403ff0
jmp 0x437987
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x437992
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.5
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call ebp
cmp eax, ebx
jne 0x437a09
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push str.Install
push ecx
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4379e4
push eax
call edi
mov esi, 1
cmp dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
jne 0x437a19
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, str.InstallPath
call fcn.00431c50
jmp 0x437a0e
mov esi, 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x437a19
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call ebp
cmp eax, ebx
jne 0x437af4
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push str.Install
push ecx
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, str.TargetVersion
call fcn.00431c50
cmp dword [esp + 0x20], esi
jne 0x437ab3
mov eax, dword [esp + 0x3c]
push str.4.0.0
mov edi, 5
lea ecx, [esp + 0x2c]
call fcn.004052d0
test eax, eax
jne 0x437aad
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, str.InstallPath
call fcn.00431c50
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov eax, str.Version
call fcn.00431c50
mov esi, 1
cmp dword [esp + 0x20], esi
jne 0x437af4
lea edx, [esp + 0x28]
push edx
call fcn.00437cb0
test eax, eax
jne 0x437af4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov eax, str.InstallPath
call fcn.00431c50
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x437aff
push eax
call edi
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call ebp
cmp eax, ebx
jne 0x437be5
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push str.Install
push edx
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov eax, str.TargetVersion
call fcn.00431c50
cmp dword [esp + 0x20], esi
jne 0x437b99
mov eax, dword [esp + 0x3c]
push str.4.0.0
mov edi, 5
lea ecx, [esp + 0x2c]
call fcn.004052d0
test eax, eax
jne 0x437b93
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, str.InstallPath
call fcn.00431c50
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, str.Version
call fcn.00431c50
cmp dword [esp + 0x20], 1
jne 0x437bd6
lea eax, [esp + 0x28]
push eax
call fcn.00437cb0
test eax, eax
jne 0x437bd6
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, str.InstallPath
call fcn.00431c50
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x437be1
push eax
call edi
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x58]
mov eax, 0x104
cmp ecx, eax
jae 0x437bf4
mov eax, ecx
mov ecx, dword [esp + 0x48]
mov esi, 8
cmp dword [esp + 0x5c], esi
jae 0x437c07
lea ecx, [esp + 0x48]
add eax, eax
push eax
push ecx
push 0x208
push 0x470de0
call fcn.0043eaa8
add esp, 0x10
cmp dword [esp + 0x40], esi
jb 0x437c30
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0043e965
add esp, 4
cmp dword [esp + 0x78], esi
mov ebp, 7
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
jb 0x437c55
mov edx, dword [esp + 0x64]
push edx
call fcn.0043e965
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
je 0x437c6d
push eax
call edi
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x18], ebx
jb 0x437c84
mov eax, dword [esp + 0x48]
push eax
call fcn.0043e965
add esp, 4
mov eax, 0x470de0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0043d02a
add esp, 0x78
ret