Function at 0x4f5cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d568
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x584f80]
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 edi, ecx
mov dword [ebp - 0x260], edi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x250], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.004634a0
add esp, 8
push 1
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
push 0x539de8
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
lea ecx, [ebp - 0x250]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x4f5d6b
push ebx
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 0x25c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x250], 1
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x25c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x254]
push eax
push 1
push 0
push dword [ebp - 0x248]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x4f5fb8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x248]
push eax
push esi
lea eax, [ebp - 0x250]
push eax
push esi
push 0x532ea0
push dword [ebp - 0x254]
call edi
test eax, eax
je 0x4f5e33
push esi
push esi
push str.Error_RegQueryValueEx_NULL
call fcn.004b9c60
add esp, 0xc
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 4
lea eax, [eax*2 + 0x400]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea ecx, [ebp - 0x248]
push ecx
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0x532ea0
push dword [ebp - 0x254]
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x24c]
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
je 0x4f5ea0
push 0
push 0
push str.Error_RegQueryValueEx__
call fcn.004b9c60
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
push 2
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
push 0x533140
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
lea eax, [ebp - 0x240]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x244]
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
call sub.mfc140u.dll_CFile::GetStatus
test eax, eax
je 0x4f5f2f
test byte [ebp - 0x220], 0x10
jne 0x4f5fa6
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
jne 0x4f5fa6
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x24c]
lea eax, [eax*2 + 0x400]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea ecx, [ebp - 0x248]
push ecx
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push str.path
push dword [ebp - 0x254]
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
push 0x532e9c
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_2]
push ebx
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_3]
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edi, dword [ebp - 0x260]
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x4f5fc9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x244]
cmp dword [eax - 0xc], 0
je 0x4f6078
push 2
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
push 0x533140
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
lea eax, [ebp - 0x240]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x244]
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
call sub.mfc140u.dll_CFile::GetStatus
test eax, eax
je 0x4f6078
test byte [ebp - 0x220], 0x10
jne 0x4f6061
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
je 0x4f6078
lea eax, [ebp - 0x244]
push eax
lea ecx, [edi + 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov esi, 1
jmp 0x4f607a
xor esi, esi
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x244]
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00506d06
mov esp, ebp
pop ebp
ret 4