Function at 0x40d970
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x41392c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace
push 0x80000002
mov dword [esp + 0x150], ebx
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40db25
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esp + 0x14], ebx
xor edi, edi
cmp edi, ebx
je 0x40d9ea
cmp edi, 0xea
jne 0x40db1a
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call ebp
mov edi, eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
push 0x41879c
push ecx
mov dword [esp + 0x2c], 0x104
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push str.1f4de370_d627_11d1_ba4f_00a0c91eedba
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40db11
push str.450D8FBA_AD25_11D0_98A8_0800361B1103
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40db11
push str.645FF040_5081_101B_9F08_00AA002F954E
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40db11
push str.e17d4fc0_5564_11d1_83f2_00a0c90dc849
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40db11
push ecx
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x28], esp
push eax
push str.MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace_
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
call fcn.00402b00
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040dc20
push ecx
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x28], esp
push eax
push str.MACHINESOFTWAREClassesCLSID_
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push str.SOFTWAREClassesCLSID_
push edx
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_operator_2
mov ecx, eax
mov byte [esp + 0x140], 3
call fcn.00402b00
push eax
push 0x80000002
mov ecx, esi
call fcn.0040dc20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
inc dword [esp + 0x14]
jmp 0x40d9da
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov ecx, esi
call fcn.0040cad0
push 0x41a6e8
push 0x41a6e8
push str.SOFTWAREClassesCLSID871C5380_42A0_1069_A2EA_08002B30309D
push 0x80000002
mov ecx, esi
call fcn.0040fd00
push str.OpenHomePage
push 0x41a6e8
push str.SOFTWAREClassesCLSID871C5380_42A0_1069_A2EA_08002B30309D_shell
push 0x80000002
mov ecx, esi
call fcn.0040fd00
push 0x419550
push 0x41a6e8
push str.SOFTWAREClassesCLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePage
push 0x80000002
mov ecx, esi
call fcn.0040fd00
cmp dword [esp + 0x144], ebx
je 0x40dba4
push str.C:Program_FilesInternet_Exploreriexplore.exe
push 0x41a6e8
push str.SOFTWAREClassesCLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push 0x80000002
mov ecx, esi
call fcn.0040fd00
jmp 0x40dbe8
lea ecx, [esi + 0x44]
lea edx, [esp + 0x1c]
push ecx
push 0x4198e8
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, esi
push eax
push 0x41a6e8
push str.SOFTWAREClassesCLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push 0x80000002
mov byte [esp + 0x14c], 4
call fcn.0040fd00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 4