Function at 0x1000a640
Capabilities:
Download url
Receive data
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2ac
mov edi, dword [ebp + 8]
mov eax, dword [0x1006800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
cmp edi, 1
je 0x1000a684
test edi, edi
jne 0x1000a6a8
lea esi, [ebp - 0x218]
push esi
call fcn.1000ee5c
jmp 0x1000a690
lea esi, [ebp - 0x218]
push esi
call fcn.1000f367
add esp, 4
mov eax, dword [esi + 8]
mov dword [ebp - 0x220], eax
movsd xmm0, qword [esi]
movsd qword [ebp - 0x228], xmm0
movzx ebx, byte [ebp - 0x21d]
test bl, bl
js 0x1000a6ba
mov eax, ebx
and eax, 0x7f
jmp 0x1000a6c0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1000a7ca
lea edi, [ebp - 0x22c]
mov dword [edi], 0xffffffff
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.1000aa45
add esp, 8
xor esi, esi
lea eax, [ebp - 0x218]
push 0x208
push esi
push eax
call fcn.1002ef60
add esp, 0xc
mov eax, dword [edi]
test bl, bl
js 0x1000a706
lea ecx, [ebp - 0x228]
jmp 0x1000a70c
mov ecx, dword [ebp - 0x228]
mov edi, dword [ebp + 8]
push eax
push esi
push 0x104
lea eax, [ebp - 0x218]
push eax
push ecx
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x1000a90b
test edi, edi
je 0x1000a968
lea eax, [ebp - 0x21c]
mov dword [eax], 0
push eax
push edi
call fcn.1000b90c
add esp, 8
test eax, eax
js 0x1000a853
mov ecx, dword [ebp - 0x21c]
cmp byte [ebp - 0x21d], 0
js 0x1000a769
lea eax, [ebp - 0x228]
jmp 0x1000a76f
mov eax, dword [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
call 0x1000c640
test eax, eax
js 0x1000a81d
push 0
call fcn.1000f952
add esp, 4
test al, al
je 0x1000a89f
lea esi, [ebp - 0x2b8]
mov ecx, esi
push 0
push 0x50
push 0x1005eb00
call fcn.1000f99c
mov ecx, esi
call fcn.10002820
push 0x23
push str.SiteListDownloader_update_succeeded
push eax
call fcn.100065e4
add esp, 0xc
mov ecx, esi
jmp 0x1000a89a
push 2
call fcn.1000f952
add esp, 4
test al, al
je 0x1000a8e4
lea esi, [ebp - 0x218]
mov ecx, esi
push 2
push 0x2a
push 0x1005eb00
call fcn.1000f99c
mov ecx, esi
call fcn.10002820
push 0x25
push str.Failed_to_get_sitelist_URL_for_type:
push eax
call fcn.100065e4
add esp, 0xc
mov ecx, eax
push edi
call fcn.10001bb0
mov ecx, esi
call fcn.1000fcf8
jmp 0x1000a8e4
mov esi, eax
push 2
call fcn.1000f952
add esp, 4
test al, al
je 0x1000a89f
lea edi, [ebp - 0x2b8]
mov ecx, edi
push 2
push 0x52
push 0x1005eb00
call fcn.1000f99c
mov ecx, edi
call fcn.10002820
push 0x28
push str.SiteListDownloader_list_parsing_failed:
jmp 0x1000a887
mov esi, eax
push 2
call fcn.1000f952
add esp, 4
test al, al
je 0x1000a89f
lea edi, [ebp - 0x2b8]
mov ecx, edi
push 2
push 0x55
push 0x1005eb00
call fcn.1000f99c
mov ecx, edi
call fcn.10002820
push 0x2b
push str.SiteListDownloader_filter_creation_failed:
push eax
call fcn.100065e4
add esp, 0xc
mov ecx, eax
push esi
call fcn.10001bb0
mov ecx, edi
call fcn.1000fcf8
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
test eax, eax
je 0x1000a8bc
push eax
call fcn.1002b2c4
add esp, 4
mov esi, dword [ebp - 0x22c]
test esi, esi
je 0x1000a8de
mov dword [ebp - 0x22c], 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push esi
call ecx
mov bl, byte [ebp - 0x21d]
test bl, bl
jns 0x1000a8f6
push dword [ebp - 0x228]
call fcn.1002b2c4
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002bd4a
add esp, 0x2ac
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
mov ecx, dword [ebp + 0xc]
call fcn.1000900a
test al, al
je 0x1000a8bc
push 2
call fcn.1000f952
add esp, 4
test al, al
je 0x1000a8bc
lea edi, [ebp - 0x2b8]
mov ecx, edi
push 2
push 0x58
push 0x1005eb00
call fcn.1000f99c
mov ecx, edi
call fcn.10002820
push 0x24
push str.SiteListDownloader_download_failed:
push eax
call fcn.100065e4
add esp, 0xc
mov ecx, eax
push esi
call fcn.10001bb0
mov ecx, edi
call fcn.1000fcf8
jmp 0x1000a8bc
lea ebx, [ebp - 0x2b8]
mov dword [ebx], 0xffffffff
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [eax], ecx
sub esp, 0x24
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x1005eab0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], str.SoftwareAppDataLowSoftwareMicrosoftEdgeIEToEdge
mov dword [esp], SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000a734
xor ecx, ecx
mov esi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x22c]
movzx eax, byte [eax + 0x14]
mov dword [ebp - 0x2b8], eax
mov eax, 4
push eax
push ebx
push eax
push ecx
push str.DisableUpsellEdge
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x22c]
movzx eax, byte [eax + 0x15]
mov dword [ebp - 0x2b8], eax
mov eax, 4
push eax
push ebx
push eax
xor eax, eax
push eax
push str.DisableCampaignRedirect
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x22c]
movzx eax, byte [eax + 0x16]
mov dword [ebp - 0x2b8], eax
mov eax, 4
push eax
push ebx
push eax
xor eax, eax
push eax
push str.DisableNeedEdgeForEnterprise
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x1000a734
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000a734