Function at 0x41921c
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4452ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5b8
mov dword [ebp - 0x5ac], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [str.Applications]
push ecx
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp - 0x5ac]
call fcn.004198d4
mov ecx, dword [str.shell]
push ecx
lea ecx, [ebp - 0x55c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
lea edx, [ebp - 0x55c]
push edx
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp - 0x5ac]
call fcn.004198d4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x55c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x454]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x340]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x419301
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString
jmp 0x4198c4
mov dword [ebp - 0x22c], 0x104
mov dword [ebp - 0x118], 1
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x558]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0
mov eax, dword [str.FriendlyCache]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x419372
mov edx, dword [ebp - 0x454]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString
jmp 0x4198c4
lea eax, [ebp - 0x558]
push eax
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov dword [ebp - 0x114], 0x103
mov dword [ebp - 0x228], 0x103
push 0x104
push 0
lea ecx, [ebp - 0x450]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x33c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
mov dword [ebp - 0x34c], 0
jmp 0x4193f5
mov eax, dword [ebp - 0x34c]
add eax, 1
mov dword [ebp - 0x34c], eax
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x33c]
push eax
push 0
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x34c]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4194c6
lea edx, [ebp - 0x450]
push edx
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [str.command]
push eax
lea ecx, [ebp - 0x560]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x560]
push ecx
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp - 0x5ac]
call fcn.004198d4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x560]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x454]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4194ad
jmp 0x4194c6
mov dword [ebp - 0x114], 0x103
mov dword [ebp - 0x228], 0x103
jmp 0x4193e6
mov eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x454], 0
cmp dword [ebp - 0x220], 0
jne 0x41950c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString
jmp 0x4198c4
mov dword [ebp - 0x118], 3
mov dword [ebp - 0x22c], 0x104
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x41957b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString
jmp 0x4198c4
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x588], ecx
push 0x104
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4195c1
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x234]
call fcn.004423ba
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::MakeLower
push str..exe
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
jne 0x419633
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString
jmp 0x4198c4
mov eax, dword [ebp - 0x230]
add eax, 4
push eax
lea ecx, [ebp - 0x564]
push ecx
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x5b0], eax
mov edx, dword [ebp - 0x5b0]
mov dword [ebp - 0x5b4], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5b4]
push eax
lea ecx, [ebp - 0x234]
call fcn.004423b4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x564]
call sub.MFC42.DLL_CString::CString
push 1
push 0x22
lea ecx, [ebp - 0x56c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
push 1
lea ecx, [ebp - 0x570]
push ecx
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x594], eax
mov edx, dword [ebp - 0x56c]
mov dword [ebp - 0x590], edx
mov eax, dword [ebp - 0x594]
mov ecx, dword [eax]
mov dword [ebp - 0x58c], ecx
mov edx, dword [ebp - 0x590]
push edx
mov eax, dword [ebp - 0x58c]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x568], al
lea ecx, [ebp - 0x570]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x56c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x568]
and ecx, 0xff
test ecx, ecx
je 0x41977b
mov edx, dword [ebp - 0x234]
mov eax, dword [edx - 8]
mov dword [ebp - 0x598], eax
mov ecx, dword [ebp - 0x598]
sub ecx, 1
push ecx
lea edx, [ebp - 0x574]
push edx
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebp - 0x5b8]
mov dword [ebp - 0x5bc], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x5bc]
push ecx
lea ecx, [ebp - 0x234]
call fcn.004423b4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x574]
call sub.MFC42.DLL_CString::CString
push 1
push 0x22
lea ecx, [ebp - 0x57c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 8
push 1
lea edx, [ebp - 0x580]
push edx
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x5a4], eax
mov eax, dword [ebp - 0x57c]
mov dword [ebp - 0x5a0], eax
mov ecx, dword [ebp - 0x5a4]
mov edx, dword [ecx]
mov dword [ebp - 0x59c], edx
mov eax, dword [ebp - 0x5a0]
push eax
mov ecx, dword [ebp - 0x59c]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x578], al
lea ecx, [ebp - 0x580]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x57c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x578]
and edx, 0xff
test edx, edx
je 0x419870
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x5a8], ecx
mov edx, dword [ebp - 0x5a8]
sub edx, 1
push edx
lea eax, [ebp - 0x584]
push eax
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x5c0], eax
mov ecx, dword [ebp - 0x5c0]
mov dword [ebp - 0x5c4], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x5c4]
push edx
lea ecx, [ebp - 0x234]
call fcn.004423b4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x584]
call sub.MFC42.DLL_CString::CString
push 1
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10