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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ce0e
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.004070d0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x424178
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404a30
xor eax, eax
jmp 0x404d4a
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x128]
call fcn.00403850
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 0x404d0d
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 0x404ab4
cmp dword [ebp - 0x118], 0x13
jle 0x404ab6
jmp 0x404a4c
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 0x404ade
jmp 0x404a4c
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 0x404cfb
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 0x404b53
jmp 0x404ae8
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0x424194
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 0x4241c4
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 0x404ce1
jmp 0x404ae8
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x24c]
add ecx, 0x60
call fcn.004070f0
jmp 0x404ae8
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404a4c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24c]
add ecx, 0x60
call fcn.004070b0
xor ecx, ecx
test eax, eax
setg cl
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.00403740
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret