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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455027
push eax
mov eax, 0x169c
mov dword fs:[0], esp
call fcn.004240f0
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x2c], ebp
call fcn.004057e0
mov dword [ebp], 0x457f9c
mov al, byte [0x469166]
xor ebx, ebx
test al, al
mov dword [esp + 0x16ac], ebx
jne 0x418807
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], bl
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x30]
mov byte [esp + 0x16b4], 1
push eax
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio7.0
call fcn.00407390
add esp, 8
test al, al
je 0x4183e4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push str.InstallDir
push ecx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4183e4
lea edx, [esp + 0x4c]
push str.Common7
push edx
call fcn.00423a55
add esp, 8
cmp eax, ebx
je 0x4183b6
mov byte [eax], bl
mov edi, str.vc7_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x513
xor eax, eax
lea edi, [esp + 0x25d]
mov byte [esp + 0x25c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x48], 0x1450
push eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x41855d
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x418547
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x154]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x418534
mov edi, str.MicrosoftVisualStudio7.0VCComponents.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4661ac
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x158]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004233dd
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x418530
push ebp
lea ecx, [esp + 0x260]
push 0x1450
push ecx
call fcn.0042357a
add esp, 0xc
test eax, eax
je 0x41851f
mov edi, str.Include_Dirs
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x25c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
push esi
push str.Include_Dirs
push edx
call fcn.00423ffe
add esp, 0xc
test eax, eax
je 0x418753
push ebp
lea eax, [esp + 0x260]
push 0x1450
push eax
call fcn.0042357a
add esp, 0xc
test eax, eax
jne 0x4184d6
mov byte [esp + 0x25c], 0
push ebp
call fcn.004233f0
add esp, 4
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], ebx
test al, al
jne 0x4185d2
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
mov byte [esp + 0x16b4], 2
push edx
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio7.0VCVC_OBJECTS_PLATFORM_INFOWin32Directories
call fcn.00407390
add esp, 8
test al, al
je 0x4185af
lea eax, [esp + 0x48]
lea ecx, [esp + 0x25c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push 0x4665c0
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4185af
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
mov byte [esp + 0x16b4], 1
cmp eax, ebx
je 0x4185c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
test al, al
je 0x4187ef
push 0x468fe0
lea ecx, [esp + 0x260]
push 0x466198
push ecx
call fcn.00406e20
add esp, 0xc
mov dword [esp + 0x14], ebx
xor esi, esi
mov eax, dword [0x468fe4]
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x4187ef
mov edx, dword [0x468fe8]
mov ecx, dword [esp + 0x14]
sub edx, eax
sar edx, 4
cmp ecx, edx
jae 0x4187ef
add esi, eax
push ebx
lea ecx, [esp + 0x3c]
mov al, byte [esi]
mov byte [esp + 0x3c], al
call fcn.00401470
mov ecx, dword [0x4571cc]
push ecx
push ebx
push esi
lea ecx, [esp + 0x44]
call fcn.00403000
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x16b4], 3
cmp eax, ebx
jne 0x418653
mov eax, 0x457138
push str.__VCInstallDir_
push eax
call fcn.00423a55
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4187a2
mov edi, str.__VCInstallDir_
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x4c]
add esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x4c]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00403730
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x16b4], 4
mov ebp, ecx
mov ecx, dword [0x4571cc]
sub ecx, edx
cmp ecx, ebp
ja 0x4186d6
call fcn.0042f70c
cmp ebp, ebx
jbe 0x41871a
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x24]
lea ebx, [edx + ebp]
push ebx
call fcn.004037f0
test al, al
je 0x418718
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edi, [ecx + eax]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov byte [eax + ebx], 0
xor ebx, ebx
mov ecx, dword [0x4571cc]
mov eax, dword [0x468fe4]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ebx
push edx
add ecx, eax
call fcn.00403000
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x418792
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x418789
cmp al, 0xff
je 0x418789
dec al
mov byte [ecx], al
jmp 0x418792
lea edi, [esp + 0x25c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x25c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x13], 1
sub ecx, esi
push ecx
lea ecx, [esp + esi + 0x260]
push ecx
push edx
call fcn.00422cb0
add esp, 0xc
jmp 0x418527
push ecx
call fcn.0043cf65
add esp, 4
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x16b4], 1
cmp ecx, ebx
je 0x4187ce
mov al, byte [ecx - 1]
test al, al
je 0x4187c4
cmp al, 0xff
je 0x4187c4
dec al
mov byte [ecx - 1], al
jmp 0x4187ce
dec ecx
push ecx
call fcn.0043cf65
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ecx
add esi, 0x10
jmp 0x4185f2
mov eax, dword [esp + 0x30]
pop edi
cmp eax, ebx
mov byte [0x469166], 1
pop esi
je 0x418807
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x16a4]
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x16a8
ret