Function at 0x401d20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d1120
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
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.00401a60
add esp, 0xc
test al, al
je 0x401f2b
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x401ed9
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x6c]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x68], 1
call fcn.00401cf0
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 0x401e15
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 0x401e6a
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 0x401ec1
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 0x401f6d
cmp dword [esp + 0x7c], ebx
jne 0x401f72
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CString::CString
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
mov eax, dword [esp + 0x7c]
push ebx
push ebx
push eax
call sub.MFC42.DLL_AfxMessageBox
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x7c]
jmp 0x401f6d
cmp dword [esp + 0x7c], ebx
jne 0x401f72
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CString::CString
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
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x7c]
call fcn.004d0c74
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0xffffffff
call fcn.004d0c74
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