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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47359b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4ae44c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x240], esi
call dword [0x4824e8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.00420ad0
mov byte [ebp - 4], 1
push 0x482e5c
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x4229e6
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 2
push 0x2001f
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x238]
call fcn.0040c5f0
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
mov esi, eax
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov edi, dword [ebp - 0x238]
cmp esi, ebx
jne 0x4229b4
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
push ebx
lea edx, [ecx + ecx]
lea ecx, [ebp - 0x22c]
push ecx
push ebx
push str.Installed
push edi
mov dword [ebp - 0x220], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x4229b4
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x4228b0
cmp eax, 2
jne 0x4229b4
mov esi, dword [ebp - 0x220]
shr esi, 1
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], esi
call dword [0x4824e8]
mov byte [ebp - 4], 3
lea edx, [ebp - 0x224]
push edx
push esi
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
push str.Installed
lea ecx, [ebp - 0x238]
call fcn.0040c6a0
push 0xffffffffffffffff
lea ecx, [ebp - 0x23c]
mov esi, eax
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
cmp esi, ebx
jne 0x4229a4
push 0x489694
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x4229a4
xor esi, esi
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x21c]
push edx
push esi
push edi
mov dword [ebp - 0x22c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4229a4
cmp eax, ebx
jne 0x4229a1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call dword [0x4824d0]
mov byte [ebp - 4], 4
push 0x482e5c
push ebx
push ebx
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc100u.dll_]
mov ecx, dword [ebp - 0x240]
push eax
call fcn.004633b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
inc esi
jmp 0x422926
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x4229c9
push edi
call esi
xor edi, edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], ebx
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x4229e0
push edi
call esi
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret 4