Function at 0x404e30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x338
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
mov eax, 0x100
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push 0x411954
push eax
mov dword [esp + 0x28], esi
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 1
push esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 1
push 0x4277e4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x40]
push ecx
push 0xf003f
push esi
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x80000000
call ebp
test eax, eax
jne 0x40535d
mov ebx, dword [esp + 0x34c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x48]
push 0x100
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x405352
mov ecx, dword [esp + 0x34]
mov al, byte [esp + 0x48]
inc ecx
cmp al, 0x2e
mov dword [esp + 0x34], ecx
jne 0x404eea
lea edx, [esp + 0x48]
push str..cer
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
mov eax, dword [0x4277a8]
add esp, 8
xor esi, esi
test eax, eax
jne 0x4051b5
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x48]
lea ecx, [esp + 0x28]
push eax
call fcn.0040c9dc
lea ecx, [esp + 0x38]
push ecx
push 0xf003f
push esi
push esi
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call ebp
test eax, eax
jne 0x4051b5
lea edx, [esp + 0x1c]
lea eax, [esp + 0x148]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
push str.Progid
push edx
mov dword [esp + 0x34], 0x100
call edi
test eax, eax
jne 0x4050d7
lea eax, [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
push str._shellopencommand
lea ecx, [esp + 0x1c]
call fcn.0040c9dc
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push esi
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000000
call ebp
test eax, eax
jne 0x4050d7
lea edx, [esp + 0x2c]
lea eax, [esp + 0x248]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
push 0x4277e4
push edx
mov dword [esp + 0x44], 0x100
call edi
test eax, eax
jne 0x4050cc
lea eax, [esp + 0x248]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push str.__1_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
test eax, eax
je 0x4050c7
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x4050c7
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4118c0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
mov dword [esp + 0x30], esi
test ebx, ebx
je 0x4050cc
lea eax, [esp + 0x10]
push 0x4118b0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 4
push esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
jmp 0x4050cc
mov esi, 1
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x148]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push str.Application
push edx
mov dword [esp + 0x34], 0x100
call edi
test eax, eax
jne 0x4051a2
lea eax, [esp + 0x148]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x40519d
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x411878
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x4051a2
lea eax, [esp + 0x10]
push 0x4118b0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
jmp 0x4051a2
mov esi, 1
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x404eea
lea edx, [esp + 0x48]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000000
call ebp
test eax, eax
jne 0x404eea
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x148]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push edx
push eax
push 0
mov esi, 0x100
push 0x4277e4
push ecx
mov dword [esp + 0x34], esi
call edi
test eax, eax
jne 0x405342
lea edx, [esp + 0x148]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
push str._shellopencommand
lea ecx, [esp + 0x1c]
call fcn.0040c9dc
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
push eax
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000000
call ebp
test eax, eax
jne 0x405342
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push 0x4277e4
push ecx
mov dword [esp + 0x44], esi
call edi
test eax, eax
jne 0x405337
lea edx, [esp + 0x248]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
push str.__1_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
test eax, eax
je 0x405337
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x405337
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x411854
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x405337
lea ecx, [esp + 0x10]
push 0x4118b0
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404eea
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x405371
lea edx, [esp + 0x10]
push 0x411834
push edx
jmp 0x40537b
lea eax, [esp + 0x10]
push 0x411820
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 1
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x338
ret