Function at 0x40e340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [ebp - 0x3c], eax
test byte [0x415080], 8
jne 0x40e7d0
xor esi, esi
lea edi, [ebp - 0x32]
mov dword [esp + 8], esi
mov dword [esp + 4], str.ColorTable_02d
mov dword [esp], edi
call sym._wsprintfW
mov eax, dword [ebx + esi*4]
add esi, 1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp esi, 0x10
jne 0x40e360
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorSize
mov esi, dword [ebp - 0x3c]
mov dword [esp], esi
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x4c]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorVisible
mov dword [esp], esi
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x80]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.EditionMode
mov dword [esp], esi
call sym._RegSetValueExW_24
lea edx, [ebx + 0x8c]
sub esp, 0x18
cmp word [ebx + 0x8c], 0
je 0x40e804
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40e480
sub eax, edx
add eax, 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov edi, dword [ebp - 0x3c]
mov dword [esp], edi
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x84]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontPitchFamily
mov dword [ebp - 0x3c], edi
mov dword [esp], edi
call sym._RegSetValueExW_24
sub esp, 0x18
call sym._GetDpiForSystem_0
mov dword [esp + 4], 0x60
mov edi, dword [sym.imp.kernel32.dll_MulDiv]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call edi
sub esp, 0xc
mov esi, eax
call sym._GetDpiForSystem_0
mov dword [esp + 4], 0x60
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call edi
movzx edi, si
shl eax, 0x10
sub esp, 0xc
or edi, eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontSize
mov edi, dword [ebp - 0x3c]
mov dword [esp], edi
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x88]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontWeight
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x58]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryBufferSize
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x5c]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryNoDup
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x60]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x416eca
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x64]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MenuMask
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x54]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PopupColors
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x68]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.QuickEdit
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x70]
movzx edx, word [ebx + 0x6c]
sub esp, 0x18
shl eax, 0x10
or eax, edx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenBufferSize
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x50]
sub esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenColors
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x78]
movzx edx, word [ebx + 0x74]
sub esp, 0x18
shl eax, 0x10
or eax, edx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.WindowSize
call sym._RegSetValueExW_24
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
call sym._debugstr_config
mov dword [esp + 0xc], 0x416ec6
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.save_registry_key
mov dword [esp + 4], 0x415080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40e35b
mov eax, 2
jmp 0x40e48e