Function at 0x4a1c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d324c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4fafc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 4], 0
call fcn.0047e260
add esp, 8
push 1
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push 0x4dd63c
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x4a1cb5
push ebx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], 1
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp + 8]
push ecx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push dword [ebp + 8]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x4a1e32
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push 0x4dae00
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4a1d56
push esi
push esi
push str.Error_RegQueryValueEx_NULL
call fcn.00493e50
add esp, 0xc
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
lea eax, [eax*2 + 0x400]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x4dae00
push dword [ebp - 0x18]
call edi
push 0xffffffffffffffff
lea ecx, [ebp + 8]
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
je 0x4a1dae
push 0
push 0
push str.Error_RegQueryValueEx__
call fcn.00493e50
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00477000
add esp, 8
test eax, eax
jne 0x4a1e26
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
lea eax, [eax*2 + 0x400]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.path
push dword [ebp - 0x18]
call edi
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
push 0x4dbc48
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_2]
push ebx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_3]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a1e40
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4a1e7c
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00477000
add esp, 8
test eax, eax
je 0x4a1e7c
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
mov esi, 1
jmp 0x4a1e7e
xor esi, esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4