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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ca4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov dword [ebp - 0x24c], ecx
mov ecx, dword [ebp - 0x24c]
add ecx, 0x60
call fcn.00407020
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x424170
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404983
xor eax, eax
jmp 0x404c9d
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x128]
call fcn.00403870
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x12c]
add edx, 1
mov dword [ebp - 0x12c], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404c60
lea eax, [ebp - 0x113]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xf
jl 0x404a07
cmp dword [ebp - 0x118], 0x12
jle 0x404a09
jmp 0x40499f
lea ecx, [ebp - 0x130]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404a31
jmp 0x40499f
mov dword [ebp - 0x240], 0
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x240]
add edx, 1
mov dword [ebp - 0x240], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404c4e
lea eax, [ebp - 0x138]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404aa6
jmp 0x404a3b
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0x42418c
lea edx, [ebp - 0x124]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov dword [ebp - 0x134], 0x104
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::Empty
lea eax, [ebp - 0x134]
push eax
push 0x104
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0
push str.ProductName
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov dword [ebp - 0x134], 0x104
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::Empty
lea edx, [ebp - 0x134]
push edx
push 0x104
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0
push str.Language
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov dword [ebp - 0x134], 0x104
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::Empty
lea ecx, [ebp - 0x134]
push ecx
push 0x104
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0
push str.AcadLocation
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::TrimRight_1
push 0x5c
push 0x2f
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::Replace
push 0x5c
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push 0x4241bc
lea edx, [ebp - 0x11c]
push edx
push ecx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x258], eax
call fcn.004026f3
add esp, 4
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
jne 0x404c34
jmp 0x404a3b
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x24c]
add ecx, 0x60
call fcn.00407040
jmp 0x404a3b
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40499f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24c]
add ecx, 0x60
call fcn.00407000
xor ecx, ecx
test eax, eax
setg cl
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.00403760
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret