Function at 0x403e50
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412a61
push eax
mov dword fs:[0], esp
sub esp, 0x314
mov ecx, 6
xor eax, eax
push ebx
push ebp
push esi
push edi
mov esi, str.SoftwareAutodeskAutoCAD_
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x3a
lea edi, [esp + 0x3f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.R15.0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebp, ebp
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x2c]
push ebp
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
je 0x403f31
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push str.AutoCAD_2002
lea edx, [esp + 0x1c]
push 0x4155dc
push edx
mov dword [esp + 0x338], ebp
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebp
push 0x415138
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
mov dword [esp + 0x32c], 0xffffffff
call fcn.00412128
jmp 0x40415a
push ebp
push ebp
mov edx, dword [esp + 0x18]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x34]
push ebp
push ecx
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x403f5f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40415a
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x334]
cmp eax, ebp
jbe 0x4040da
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x228]
push 0xfa
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4040cf
or ecx, 0xffffffff
lea edi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x415494
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
lea edi, [esp + 0x228]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4155d0
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [esp + 0x33c], 1
mov ecx, esp
mov dword [esp + 0x30], esp
push ebx
call sub.MFC42.DLL_CString::CString_2
or esi, 0xffffffff
mov dword [esp + 0x33c], esi
call fcn.00403d70
lea edi, [esp + 0x138]
mov ecx, esi
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4040cf
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push str.AutoCAD_2002
lea ecx, [esp + 0x18]
mov dword [esp + 0x330], 2
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x4040a1
lea ecx, [esp + 0x14]
inc ebp
mov dword [esp + 0x32c], esi
call fcn.00412128
jmp 0x4040d0
lea edx, [esp + 0x128]
push str.Unknown
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
mov dword [esp + 0x32c], esi
test eax, eax
lea ecx, [esp + 0x14]
jne 0x404173
call fcn.00412128
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x403f72
or esi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x24]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x415494
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
lea edi, [esp + 0x228]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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, dword [esp + 0x324]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x320
ret
call fcn.00412128
jmp 0x4040dd