Function at 0x40ada7
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
call fcn.0040ad0a
mov esi, eax
xor ebx, ebx
push 0x58c240
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push ebx
xor eax, eax
cmp dword [edi], ebx
push 0x20006
setne al
push eax
push ebx
push ebx
push 0x58c240
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [edi + 0x65c]
mov dword [ebp - 0x10], ebx
push ebx
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.00405340
mov dword [ebp - 0xc], 1
test eax, eax
je 0x40ae55
mov esi, dword [ebp - 0x18]
mov edi, eax
push dword [edi + 4]
call fcn.00552a19
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [edi + 4]
push 1
push ebx
push dword [edi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
mov ecx, esi
inc eax
push eax
mov dword [ebp - 0x10], eax
call fcn.00405340
mov edi, eax
test edi, edi
jne 0x40ae18
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea eax, [edi + 4]
push eax
push 4
push ebx
push 0x58b82c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 8]
push eax
push 4
push ebx
push str.Position
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0xc]
push eax
push 4
push ebx
push str.Monitor
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x10]
push eax
push 4
push ebx
push str.TaskbarAdjust
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x14]
push eax
push 4
push ebx
push str.TextWidth2
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [edi + 0x43c]
push esi
call fcn.00552a19
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push str.OutputFile
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [edi + 0x230]
push esi
call fcn.00552a19
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [ebp - 4]
push 1
push ebx
push str.Database
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x438]
push eax
push 1
push ebx
push str.DatabaseMRU
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [edi + 0x18]
push esi
call fcn.00552a19
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [ebp - 4]
push 1
push ebx
push str.Wallpaper
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x220]
push eax
push 4
push ebx
push str.WallpaperPos
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x224]
push eax
push 4
push ebx
push str.WallpaperUser
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x228]
push eax
push 4
push ebx
push str.MaxColorBits
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x644]
push eax
push 4
push ebx
push str.ErrorNotify
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x648]
push eax
push 4
push ebx
push str.UserScreen
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x64c]
push eax
push 4
push ebx
push str.LogonScreen
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x650]
push eax
push 4
push ebx
push str.TerminalScreen
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0x22c]
push eax
push 4
push ebx
push str.OpaqueTextBox
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [edi + 0x658]
push dword [edi + 0x654]
push 1
push ebx
push 0x58c23c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40b075
push esi
mov ecx, edi
call fcn.0040a441
mov eax, dword [ebp - 0x1c]
cmp eax, 0x5aa
jne 0x40b05b
push str.Error_saving_settings_to_registry:_it_appears_this_OS_does_not_support_storing_large_enough_registry_values.
push 0x10
push dword [ebp + 8]
call fcn.0040fe1f
add esp, 0xc
jmp 0x40b06e
push str.Error_saving_settings_to_registry
push eax
push 0x10
push dword [ebp + 8]
call fcn.0040fe74
add esp, 0x10
xor al, al
jmp 0x40b115
cmp dword [edi], ebx
je 0x40b0cd
push dword [edi]
push esi
call fcn.004148b7
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test al, al
jne 0x40b0cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40b0b2
push eax
call fcn.0040db42
push eax
push dword [edi]
push str.Error_saving_settings_to__s:_n_s_n_nIf_the_file_is_intentionally_marked_read_only_you_can_use_the__i_option_to_import_it.
push 0x10
push dword [ebp + 8]
call fcn.0040fe1f
add esp, 0x18
jmp 0x40b0cd
push dword [edi]
push str.Error_saving_settings_to__s:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
push dword [ebp + 8]
call fcn.0040fe74
add esp, 0x14
push esi
mov ecx, edi
call fcn.0040a441
mov eax, dword [ebp - 0xc]
test al, al
je 0x40b115
push 0x25a4
call fcn.0041913d
mov dword [ebp + 8], eax
pop ecx
test eax, eax
je 0x40b0f8
push edi
mov ecx, eax
call fcn.0040a150
mov ebx, eax
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea ecx, [edi + 0x25a0]
call fcn.0040a1e4
lea ecx, [ebp + 8]
call fcn.0040a46b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4