Function at 0x412260
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41bcd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x40]
xor ebx, ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebx
call fcn.0041aa22
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString_1
call fcn.004124c0
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x40]
cmp dword [eax - 8], ebx
je 0x412473
push str.microsoft
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x412414
push str.rising
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x412414
push 0x4249d8
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x412414
mov esi, str.SoftwareRisingRAV
mov dword [esp + 0x28], str.SoftwareRisingRFW
mov ecx, esi
mov dword [esp + 0x24], esi
test ecx, ecx
mov dword [esp + 0x2c], ebx
lea edi, [esp + 0x24]
je 0x4123fd
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x18]
mov byte [esp + 0x38], 3
push edx
push esi
push 0x80000002
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x4123e1
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
push str.InstallPath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4123d6
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Find
test eax, eax
je 0x412458
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [edi + 4]
add edi, 4
cmp esi, ebx
jne 0x41234b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x412473
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
jmp 0x412414
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret