Function at 0x412410
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
push SysReAllocStringLen
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x412489
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.1601
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], ebx
je 0x412489
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push str.1601
push edx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsUrl_History
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4124ef
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push str.DaysToKeep
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], ebx
je 0x4124ef
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push str.DaysToKeep
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0x2001f
push ebx
push str.SoftwareMicrosoftInternet_Connection_Wizard
push SysReAllocStringLen
call esi
test eax, eax
jne 0x412554
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push ebx
push str.Completed
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, 1
cmp dword [ebp - 8], eax
je 0x412554
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push str.Completed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call edi
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call esi
mov ecx, dword [ebp - 4]
push str.SyncMode5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call edi
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call esi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push ebx
push str.SyncMode5
push edx
mov dword [ebp - 8], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call edi
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones1
push SysReAllocStringLen
call esi
test eax, eax
jne 0x41261a
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push str.1400
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], ebx
je 0x41261a
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push str.1400
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones1
push SysReAllocStringLen
call esi
test eax, eax
jne 0x41267a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push ebx
push str.1601
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], ebx
je 0x41267a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push ebx
push str.1601
push ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call edi
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones2
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4126da
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.1400
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], ebx
je 0x4126da
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push str.1400
push edx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call edi
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones2
push SysReAllocStringLen
call esi
test eax, eax
jne 0x41273a
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push str.1601
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], ebx
je 0x41273a
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push str.1601
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
push SysReAllocStringLen
call esi
test eax, eax
jne 0x41279a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push ebx
push str.1400
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], ebx
je 0x41279a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push ebx
push str.1400
push ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret