Function at 0x100016e0
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001192d
mov eax, dword fs:[0]
push eax
sub esp, 0x970
mov eax, dword [0x10017040]
xor eax, esp
mov dword [esp + 0x968], eax
push ebx
push esi
push edi
mov eax, dword [0x10017040]
xor eax, esp
push eax
lea eax, [esp + 0x980]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
lea edx, [esp + 0x30]
push edx
push 0x10015070
push 0x17
push ebx
push 0x1001225c
mov dword [esp + 0x99c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x10001a2b
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
push 0x1001226c
push 1
push 0
push 0x10015060
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x10001a07
mov dword [esp + 0x14], eax
push str.__xml_version_1.0__encoding_UTF_8____n_OpenSearchDescription_xmlns_http:__a9.com___spec_opensearch_1.1___xmlns:ie_http:__schemas.microsoft.com_Search_2008____n_ShortName_
mov byte [esp + 0x98c], 2
call ebx
push eax
push str.__xml_version_1.0__encoding_UTF_8____n_OpenSearchDescription_xmlns_http:__a9.com___spec_opensearch_1.1___xmlns:ie_http:__schemas.microsoft.com_Search_2008____n_ShortName_
lea ecx, [esp + 0x1c]
push ecx
call fcn.100047c0
push edi
call ebx
push eax
push edi
lea edx, [esp + 0x1c]
push edx
call fcn.100047c0
push str.__ShortName__n
call ebx
push eax
push str.__ShortName__n
lea eax, [esp + 0x1c]
push eax
call fcn.100047c0
test esi, esi
je 0x1000182d
push str._Image_height_16__width_16__type_image_icon__
call ebx
push eax
push str._Image_height_16__width_16__type_image_icon__
lea ecx, [esp + 0x1c]
push ecx
call fcn.100047c0
push esi
call ebx
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.100047c0
push str.__Image__n
call ebx
push eax
push str.__Image__n
lea eax, [esp + 0x1c]
push eax
call fcn.100047c0
push str._Url_type_text_html__template_
call ebx
push eax
push str._Url_type_text_html__template_
lea ecx, [esp + 0x1c]
push ecx
call fcn.100047c0
mov esi, dword [esp + 0x24]
push esi
call ebx
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.100047c0
push str.____n__OpenSearchDescription__n
call ebx
push eax
push str.____n__OpenSearchDescription__n
lea eax, [esp + 0x1c]
push eax
call fcn.100047c0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x104]
call eax
lea ecx, [esp + 0x154]
push ecx
push 0x410
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [esp + 0x154]
call fcn.10001010
mov edx, esi
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100018c1
push 0x8007000e
call fcn.100046f0
lea edi, [esp + 0x18]
lea esi, [esp + 0x44]
mov byte [esp + 0x988], 3
call fcn.10004660
mov byte [esp + 0x988], 4
mov edi, dword [eax]
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x108]
push edx
call ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x988], 5
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x100019d7
mov dword [esp + 0x28], edi
lea edx, [esp + 0x28]
mov byte [esp + 0x988], 6
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [esp + 0x28]
push 0x10014bf0
push ecx
call fcn.1000616b
mov esi, eax
add esp, 8
cmp esi, edi
je 0x100019c4
add esi, 4
mov edx, 0x7b
push str.iertutil.dll
mov word [esi], dx
mov dword [esi + 0x4a], 0x7d
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x100019c4
push 0x28e
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100019bd
push 0x4e
push esi
push 2
push 2
push 0x100147a0
call eax
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call esi
mov eax, dword [esp + 0x2c]
jmp 0x100019dd
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x988], 3
test eax, eax
je 0x100019f1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x988], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10001a1f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10001b5f
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x80
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10001b5b
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push edx
push eax
push 0x20006
push eax
push eax
push eax
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10001b50
push edi
call ebx
mov edx, dword [esp + 0x14]
lea eax, [eax + eax + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.DisplayName
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
push 0x10014c94
push edx
call edi
test esi, esi
je 0x10001afb
push esi
call ebx
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push 0
push str.FaviconURL
push eax
call edi
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10001b1c
push esi
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.SuggestionsURL
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x54]
push eax
call ebx
mov edx, dword [esp + 0x18]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x58]
push ecx
push 1
push 0
push str.DefaultScope
push edx
call edi
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
lea esi, [eax - 0x7fffbffb]
mov dword [esp + 0x988], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10001b89
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x980]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x968]
xor ecx, esp
call fcn.100056e3
mov esp, ebp
pop ebp
ret 0x10