Function at 0x401f90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x403e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x354
push edi
mov edi, ecx
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x60]
mov dword [esp + 0x38], edi
call fcn.00403330
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push str.software_autodesk_autocad
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401ff6
xor eax, eax
pop edi
mov ecx, dword [esp + 0x354]
mov dword fs:[0], ecx
add esp, 0x360
ret
push ebx
push ebp
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x36c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x36c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x36c], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebp, 0x104
lea ecx, [esp + 0x44]
push ebp
push ecx
push 0
push edx
mov dword [esp + 0x37c], 3
mov dword [esp + 0x44], 1
call ebx
test eax, eax
jne 0x4022f5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x45]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0xf
mov dword [esp + 0x24], eax
jl 0x4022d4
cmp eax, 0x11
jg 0x4022d4
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
lea edx, [esp + 0x4c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022d4
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x148]
push ebp
push ecx
push eax
push edx
mov dword [esp + 0x48], 1
call ebx
test eax, eax
jne 0x4022c9
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push 0x20019
lea ecx, [esp + 0x150]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40229f
lea eax, [esp + 0x148]
lea ecx, [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebp
call sub.MFC42.DLL_CString::Empty
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ebp
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x34]
push eax
push 0
push 0
push str.ProductName
push ecx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], ebp
call sub.MFC42.DLL_CString::Empty
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
push ebp
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x38]
push 0
push 0
push str.Language
push eax
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x10]
push ecx
push ebp
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x34]
push eax
push 0
push 0
push str.AcadLocation
push edx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::TrimRight_1
push 0x5c
push 0x2f
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Replace
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
push str._acad.exe
push ecx
lea edx, [esp + 0x48]
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x24c]
push ecx
push eax
mov byte [esp + 0x374], 4
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x36c], 3
sete bl
call fcn.00403646
test bl, bl
jne 0x40229f
mov ebx, dword [edi + 0x68]
add edi, 0x60
push 0xffffffffffffffff
mov ecx, edi
lea edx, [ebx + 1]
push edx
call fcn.00403330
mov ecx, dword [edi + 4]
lea eax, [ebx + ebx*4]
lea edx, [esp + 0x14]
lea edi, [ecx + eax*4]
push edx
mov ecx, edi
call fcn.004037f0
lea eax, [esp + 0x18]
lea ecx, [edi + 4]
push eax
call fcn.004037f0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + 8]
call fcn.004037f0
lea edx, [esp + 0x20]
lea ecx, [edi + 0xc]
push edx
call fcn.004037f0
mov eax, dword [esp + 0x24]
mov dword [edi + 0x10], eax
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov eax, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc ecx
push ebp
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x14c]
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x4020dc
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, ecx
inc ecx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x44]
push ebp
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x402073
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi + 0x68]
xor ecx, ecx
test edi, edi
setg cl
mov esi, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x36c], 7
call fcn.00403646
lea ecx, [esp + 0x1c]
mov byte [esp + 0x36c], 6
call fcn.00403646
lea ecx, [esp + 0x18]
mov byte [esp + 0x36c], 5
call fcn.00403646
lea ecx, [esp + 0x14]
mov dword [esp + 0x36c], 0xffffffff
call fcn.00403646
mov ecx, dword [esp + 0x364]
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x360
ret