Function at 0x4a2110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce87c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4f4fa0]
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.0047e1f0
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 0x4d85ec
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 0x4a21a5
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 0x4a2322
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 0x4d5da0
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4a2246
push esi
push esi
push str.Error_RegQueryValueEx_NULL
call fcn.00493f20
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 0x4d5da0
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 0x4a229e
push 0
push 0
push str.Error_RegQueryValueEx__
call fcn.00493f20
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.00476c40
add esp, 8
test eax, eax
jne 0x4a2316
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 0x4d6bf0
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 0x4a2330
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 0x4a236c
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00476c40
add esp, 8
test eax, eax
je 0x4a236c
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 0x4a236e
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