Function at 0x4e520a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x58b442
call fcn.005589d4
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xa8]
test eax, eax
push edi
je 0x4e5426
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
and dword [ebp - 4], 0
push str.software
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
mov ebx, 0x597664
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0040ce10
push dword [esi + 0x54]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ce10
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.0040ce10
push dword [esi + 0x68]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040ce10
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x30
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, bl
je 0x4e532d
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x20], 0
push 0
mov ebx, str.Language
push ebx
push 0x5bf0d8
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x4e5332
mov ebx, str.Language
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
mov ecx, dword [esi + 0xa8]
call fcn.004e5108
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4e541a
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.Software_aheadShared
push SysReAllocString
call edi
test eax, eax
jne 0x4e53ef
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
call edi
test eax, eax
jne 0x4e53e0
push dword [ebp - 0x14]
call sub.MFC71.DLL_operator_new
pop ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
push 0
push ebx
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4e53d7
push dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push dword [ebp - 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
mov ecx, dword [esi + 0xa8]
call fcn.004e5108
mov dword [ebp - 0x10], eax
push dword [ebp - 0x28]
call sub.MFC71.DLL_operator_delete
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x4e541a
lea eax, [ebp + 8]
push eax
call fcn.004fb12e
pop ecx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.004e4e6e
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4e541a
push 0x5fdea0
mov ecx, esi
call fcn.004e4e6e
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4