Function at 0x401500
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4075f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push ebp
push esi
push edi
push 0x40a0d4
lea eax, [esp + 0x40]
xor edi, edi
push 0x40ab54
push eax
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x194]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov dword [esp + 0x18c], edi
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x180], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
call fcn.00406ed8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push 0x80000001
push ecx
mov byte [esp + 0x18c], 3
call fcn.00401a50
mov esi, eax
add esp, 0xc
cmp esi, edi
mov dword [esp + 0x1c], esi
je 0x4016a8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, edi
mov byte [esp + 0x180], 4
jle 0x401693
mov bl, 6
lea edx, [esp + 0x10]
push 0x40a0d4
lea eax, [esp + 0x38]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x180], 5
lea edx, [ecx + edi*4]
push edx
push eax
lea eax, [esp + 0x38]
push eax
call sub.MFC42.DLL_operator_2
push str.Profiles
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x180], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x180], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x180], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push 0x80000001
call ebp
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401684
push 1
push edi
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::RemoveAt
mov eax, dword [esp + 0x1c]
dec edi
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x4015bb
mov esi, eax
test esi, esi
jne 0x4016d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x180], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x180], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x401942
mov edi, 0x104
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], 1
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x180], 8
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x58]
mov byte [esp + 0x180], 9
call fcn.00406f14
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
mov byte [esp + 0x180], 0xa
jle 0x4018d5
mov ebx, dword [esp + 0x190]
jmp 0x401734
mov edi, 0x104
lea edx, [esp + 0x10]
push 0x40a0d4
lea eax, [esp + 0x34]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x180], 0xb
lea edx, [ecx + esi*4]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x180], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x180], 0xa
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call ebp
test eax, eax
jne 0x4018c8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x74]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0x40a0bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018a8
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
push str.AutoCAD
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Find
test eax, eax
mov dword [esp + 0x20], edi
mov ecx, 0x41
jne 0x4018b5
xor eax, eax
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x74]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push str.AcadLocation
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018a8
lea ecx, [esp + 0x74]
lea edx, [esp + 0x24]
push ecx
push str._s_acad.exe
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x58]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4018a8
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x188]
lea eax, [ecx + esi*4]
mov ecx, dword [edx + 8]
push eax
push ecx
mov ecx, edx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov ecx, dword [esp + 0x18c]
lea edx, [esp + 0x28]
push edx
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc dword [esp + 0x2c]
mov dword [esp + 0x20], 0x104
mov ecx, 0x41
mov edx, dword [esp + 0x14]
xor eax, eax
lea edi, [esp + 0x74]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x40172f
lea ecx, [esp + 0x58]
mov byte [esp + 0x180], 9
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x24]
mov byte [esp + 0x180], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x180], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x180], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x180], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret 0x10