Function at 0x4066a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x54a910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x13], bl
call sub.MFC42.DLL_CString::CString_4
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
lea eax, [esp + 0x20]
mov dword [esp + 0x60], ebx
push eax
push edi
push ebp
call fcn.00406430
add esp, 0xc
test al, al
je 0x4068ab
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x406859
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x6c]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x68], 1
call fcn.00406670
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebx
push edx
push eax
mov dword [esp + 0x2c], 0x32
mov dword [esp + 0x30], 1
call ebp
test eax, eax
jne 0x406795
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov byte [esp + 0x36], bl
mov byte [esp + 0x13], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push str.Name
push eax
mov dword [esp + 0x2c], 0x32
mov dword [esp + 0x30], 1
call ebp
test eax, eax
jne 0x4067ea
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov byte [esp + 0x48], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push str.Company
push eax
mov dword [esp + 0x2c], 0x32
mov dword [esp + 0x30], 1
call ebp
cmp eax, ebx
jne 0x406841
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x48], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x6c]
jmp 0x4068ed
cmp dword [esp + 0x7c], ebx
jne 0x4068f2
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CString::CString_4
push edi
lea ecx, [esp + 0x80]
push str.Error_in_ReadFromRegistry:_n_nCan_not_query_data_from_registry__code_ld_._nMust_be_able_to_query_data_from:_n_n
push ecx
mov byte [esp + 0x6c], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x7c]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x7c]
push ebx
push ebx
push eax
call sub.MFC42.DLL_AfxMessageBox_1
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x7c]
jmp 0x4068ed
cmp dword [esp + 0x7c], ebx
jne 0x4068f2
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CString::CString_4
push edi
push ebp
lea ecx, [esp + 0x84]
push str.Error_in_ReadFromRegistry:_n_nCan_not_get_registry_string._nprogram_d___version_d
push ecx
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x8c]
add esp, 0x10
push ebx
push ebx
push edx
call sub.MFC42.DLL_AfxMessageBox_1
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x58]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0x18