Function at 0x486870
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ad730
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov word [esp + 0x18], ax
xor ebx, ebx
push 0x2f
mov eax, str.CInternetExplorer::UpdateSearchProvider___start
lea esi, [esp + 0x18]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [esp + 0x8c], ebx
call fcn.00403780
add esp, 4
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x48690b
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
push ebx
push 0x4d41f0
push 0x4d4188
push ebx
push edi
call fcn.004abc04
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x486930
mov eax, 5
jmp 0x486e5a
xor eax, eax
mov word [esp + 0x60], ax
push 0x32
mov eax, str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
lea esi, [esp + 0x60]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
call fcn.00401f30
push ebx
lea ecx, [edi + 0x90]
push ecx
or eax, 0xffffffff
mov dword [esp + 0x90], 1
call fcn.00403510
xor edx, edx
push 0x3b
mov eax, str.CInternetExplorer::UpdateSearchProvider___try_to_open_key:
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
call fcn.00401f30
mov eax, esi
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 2
call fcn.004035d0
mov esi, 8
add esp, 4
cmp dword [esp + 0x2c], esi
jb 0x4869c0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00491101
add esp, 4
mov dword [esp + 0x30], ebx
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], esi
jae 0x4869da
lea eax, [esp + 0x60]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x486a77
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
xor eax, eax
mov word [esp + 0x18], ax
push 0x3d
mov eax, str.CInternetExplorer::UpdateSearchProvider___create_key_return:
lea esi, [esp + 0x18]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00401f30
mov ecx, esi
push 1
push ecx
mov byte [esp + 0x90], 7
call fcn.00403190
mov esi, 8
add esp, 8
mov byte [esp + 0x88], 3
cmp dword [esp + 0x2c], esi
jb 0x486a5d
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
cmp dword [edi + 0x18], ebx
jbe 0x486bde
cmp dword [edi + 0x1c], esi
jb 0x486bb0
mov esi, dword [edi + 8]
jmp 0x486bb3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
xor ecx, ecx
push 0x3e
mov eax, str.CInternetExplorer::UpdateSearchProvider___key_does_not_exist_
lea esi, [esp + 0x18]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
call fcn.00401f30
mov edx, esi
push edx
mov byte [esp + 0x8c], 4
call fcn.00403780
mov edi, 8
add esp, 4
mov byte [esp + 0x88], 3
cmp dword [esp + 0x2c], edi
jb 0x486ad8
mov eax, dword [esp + 0x18]
push eax
call fcn.00491101
add esp, 4
xor ecx, ecx
push 0x3d
mov eax, str.CInternetExplorer::UpdateSearchProvider___try_to_create_key:
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
call fcn.00401f30
mov edx, esi
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 5
call fcn.004035d0
add esp, 4
mov byte [esp + 0x88], 3
cmp dword [esp + 0x2c], edi
jb 0x486b2d
mov eax, dword [esp + 0x18]
push eax
call fcn.00491101
add esp, 4
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [esp + 0x3c]
mov edx, dword [edx + 0x18]
push eax
call edx
mov edi, eax
xor eax, eax
mov word [esp + 0x18], ax
push 0x45
mov eax, str.CInternetExplorer::UpdateSearchProvider___create_key_ended___return:
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00401f30
cmp edi, ebx
sete cl
movzx edx, cl
push edx
mov eax, esi
push eax
mov byte [esp + 0x90], 6
call fcn.00403190
mov esi, 8
add esp, 8
cmp dword [esp + 0x2c], esi
jb 0x486b96
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00491101
add esp, 4
cmp dword [esp + 0x74], esi
jb 0x486ba9
mov edx, dword [esp + 0x60]
push edx
call fcn.00491101
add esp, 4
mov eax, edi
jmp 0x486e5a
lea esi, [edi + 8]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x486bde
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push str.DisplayName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [edi + 0x34], ebx
jbe 0x486c1c
cmp dword [edi + 0x38], 8
jb 0x486bee
mov esi, dword [edi + 0x24]
jmp 0x486bf1
lea esi, [edi + 0x24]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x486c1c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push esi
push 1
push ebx
push 0x4bede8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [edi + 0x50], ebx
jbe 0x486c5a
cmp dword [edi + 0x54], 8
jb 0x486c2c
mov esi, dword [edi + 0x40]
jmp 0x486c2f
lea esi, [edi + 0x40]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x486c5a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push str.SuggestionsURL
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [edi + 0x6c], ebx
jbe 0x486c98
cmp dword [edi + 0x70], 8
jb 0x486c6a
mov esi, dword [edi + 0x5c]
jmp 0x486c6d
lea esi, [edi + 0x5c]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x486c98
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push str.SuggestionsURLFallback
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [edi + 0x88], ebx
jbe 0x486cdc
cmp dword [edi + 0x8c], 8
jb 0x486cae
mov esi, dword [edi + 0x78]
jmp 0x486cb1
lea esi, [edi + 0x78]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x486cdc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push esi
push 1
push ebx
push str.FaviconURLFallback
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [edi + 0xc0], ebx
jbe 0x486d26
cmp dword [edi + 0xc4], 8
jb 0x486cf5
mov esi, dword [edi + 0xb0]
jmp 0x486cfb
lea esi, [edi + 0xb0]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x486d26
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push 0x4b681c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [edi + 0xdc], ebx
jbe 0x486d72
cmp dword [edi + 0xe0], 8
jb 0x486d3f
mov edi, dword [edi + 0xcc]
jmp 0x486d45
add edi, 0xcc
xor eax, eax
cmp edi, ebx
setne al
cmp eax, ebx
je 0x486d72
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push str.FaviconPath
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x486d76
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp esi, ebx
je 0x486d90
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x30], edi
jmp 0x486d94
mov edi, dword [esp + 0x30]
xor ecx, ecx
push 0x3b
mov eax, str.CInternetExplorer::UpdateSearchProvider___function_return:
lea esi, [esp + 0x18]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
call fcn.00401f30
mov edx, esi
push 1
push edx
mov byte [esp + 0x90], 8
call fcn.00403190
add esp, 8
mov byte [esp + 0x88], 3
cmp dword [esp + 0x2c], 8
jb 0x486dec
mov eax, dword [esp + 0x18]
push eax
call fcn.00491101
add esp, 4
xor ecx, ecx
push 0x2d
mov eax, str.CInternetExplorer::UpdateSearchProvider___end
lea esi, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], cx
call fcn.00401f30
mov edx, esi
push edx
mov byte [esp + 0x8c], 9
call fcn.00403780
mov esi, 8
add esp, 4
cmp dword [esp + 0x58], esi
jb 0x486e3a
mov eax, dword [esp + 0x44]
push eax
call fcn.00491101
add esp, 4
cmp edi, ebx
je 0x486e45
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x74], esi
jb 0x486e58
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00491101
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0049110c
mov esp, ebp
pop ebp
ret 4