Function at 0x401ee0
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4127aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
push esi
mov dword [esp + 0x24], ecx
push edi
push str.Veqics
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
push str.2004
lea ecx, [esp + 0x1c]
mov dword [esp + 0x458], ebx
call sub.MFC42.DLL_CString::operator
push 0x415030
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x34c]
push eax
call fcn.00403e50
add esp, 4
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34c]
mov byte [esp + 0x454], 1
push ecx
lea ecx, [esp + 0x28]
call fcn.00412206
lea edx, [esp + 0x24]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x458], 2
call sub.MFC42.DLL_CString::CString_1
push str.Profiles
lea ecx, [esp + 0x20]
mov byte [esp + 0x458], 3
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x3c]
push ecx
push 0x20006
push ebx
push edx
push 0x80000001
call ebp
push str.Veqics
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
push str.2004
lea ecx, [esp + 0x24]
mov byte [esp + 0x458], 4
call sub.MFC42.DLL_CString::operator
push 0x415030
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x150]
push ecx
push 1
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34c]
mov byte [esp + 0x454], 5
push ecx
lea ecx, [esp + 0x18]
call fcn.00412206
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], ebx
je 0x402372
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push ecx
push 0x80000001
mov byte [esp + 0x468], 6
call ebp
cmp eax, ebx
je 0x40210f
push 0x415154
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
push str.AutoCAD_2002
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 7
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x28]
push ebx
push 0x415138
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x28]
mov byte [esp + 0x454], 6
call fcn.00412128
jmp 0x402361
push ebx
push ebx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x50]
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
je 0x402137
mov edx, dword [esp + 0x10]
push edx
jmp 0x40235f
cmp dword [esp + 0x38], 1
jae 0x4021c5
lea eax, [esp + 0x4c]
push eax
call fcn.00404180
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
call fcn.00403a60
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x460], 8
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x464], 9
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0x468], 0xa
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x464], 6
call fcn.00403380
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebx
jbe 0x402215
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24c]
push 0xff
push edx
push edi
push eax
call ebp
cmp eax, ebx
jne 0x40220c
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40233a
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
jb 0x4021d5
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x4c]
push ecx
call fcn.00404180
mov edx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00403a60
lea eax, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x460], 0xb
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0x464], 0xc
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x468], 0xd
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x464], 6
call fcn.00403380
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x454], 5
call fcn.00412128
lea ecx, [esp + 0x14]
mov byte [esp + 0x454], 4
call fcn.00412128
lea ecx, [esp + 0x20]
mov byte [esp + 0x454], 3
call fcn.00412128
lea ecx, [esp + 0x1c]
mov byte [esp + 0x454], 2
call fcn.00412128
lea ecx, [esp + 0x30]
mov byte [esp + 0x454], 1
call fcn.00412128
lea ecx, [esp + 0x24]
mov byte [esp + 0x454], bl
call fcn.00412128
lea ecx, [esp + 0x18]
mov dword [esp + 0x454], 0xffffffff
call fcn.00412128
mov al, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x448
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x24c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
je 0x4023e1
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x454], 5
call fcn.00412128
lea ecx, [esp + 0x14]
mov byte [esp + 0x454], 4
call fcn.00412128
lea ecx, [esp + 0x20]
mov byte [esp + 0x454], 3
call fcn.00412128
lea ecx, [esp + 0x1c]
mov byte [esp + 0x454], 2
call fcn.00412128
lea ecx, [esp + 0x30]
mov byte [esp + 0x454], 1
call fcn.00412128
lea ecx, [esp + 0x24]
mov byte [esp + 0x454], bl
call fcn.00412128
lea ecx, [esp + 0x18]
mov dword [esp + 0x454], 0xffffffff
call fcn.00412128
xor al, al
jmp 0x402321
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004030f0
mov edx, dword [esp + 0x34]
jmp 0x40229c