Function at 0x40e700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x13c
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ecx
test byte [0x413080], 8
jne 0x40f0f8
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x40f0e0
xor edi, edi
lea esi, [ebp - 0xfe]
lea esi, [esi]
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x40e756
mov eax, dword [ebp + edi*4 - 0xe4]
cmp dword [ebx + edi*4], eax
je 0x40e7ac
mov dword [esp + 8], edi
mov dword [esp + 4], str.ColorTable_02d
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebx + edi*4]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
inc edi
cmp edi, 0x10
jne 0x40e740
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebx + 0x48]
test ecx, ecx
jne 0x40efd0
cmp dword [ebp - 0x9c], eax
je 0x40e80d
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorSize
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebp - 0x98]
je 0x40e85a
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorVisible
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x80]
cmp eax, dword [ebp - 0x64]
je 0x40e8a7
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.EditionMode
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
lea edx, [ebx + 0x8c]
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x114], edx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40ecd6
mov eax, dword [ebx + 0x84]
cmp eax, dword [ebp - 0x60]
je 0x40e91b
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontFamily
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xa0]
lea esi, [ebp - 0x104]
cmp dword [ebx + 0x44], eax
je 0x40f1f8
mov edx, dword [sym.imp.user32.dll_GetDpiForSystem]
mov dword [ebp - 0x11c], edx
call edx
mov ecx, dword [sym.imp.kernel32.dll_MulDiv]
mov dword [esp + 4], 0x60
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x118], ecx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x11c]
sub esp, 0xc
mov dword [ebp - 0x114], eax
call edx
mov ecx, dword [ebp - 0x118]
mov dword [esp + 4], 0x60
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call ecx
mov edx, eax
movzx eax, word [ebp - 0x114]
sub esp, 0xc
shl edx, 0x10
mov dword [esp + 0x14], 4
or eax, edx
mov dword [esp + 0x10], esi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontSize
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x110]
sub esp, 0x18
test eax, eax
jne 0x40ed90
mov eax, dword [ebx + 0x88]
cmp eax, dword [ebp - 0x5c]
je 0x40f140
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontWeight
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x58]
sub esp, 0x18
cmp eax, dword [ebp - 0x8c]
je 0x40f14f
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryBufferSize
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebp - 0x88]
je 0x40f15e
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryNoDup
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebp - 0x84]
je 0x40f16d
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.InsertMode
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x64]
cmp eax, dword [ebp - 0x80]
je 0x40f179
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MenuMask
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebp - 0x90]
je 0x40f188
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PopupColors
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebp - 0x7c]
je 0x40ebcd
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.QuickEdit
mov dword [esp], eax
call edi
sub esp, 0x18
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
cmp edx, dword [ebp - 0x78]
je 0x40f1e5
movzx edx, dx
shl eax, 0x10
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
or eax, edx
mov dword [esp + 0x10], esi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenBufferSize
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x50]
cmp eax, dword [ebp - 0x94]
je 0x40ec73
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenColors
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
lea esi, [ebp - 0x104]
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
cmp edx, dword [ebp - 0x70]
je 0x40f130
movzx edx, dx
shl eax, 0x10
mov dword [esp + 0x10], esi
or eax, edx
mov dword [esp + 0x14], 4
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.WindowSize
mov dword [esp], eax
call edi
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebx + 0x8c], 0
mov edx, dword [ebp - 0x114]
je 0x40f379
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40ecf8
sub eax, edx
mov dword [esp + 0x10], edx
lea esi, [ebp - 0x104]
add eax, 2
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x110]
sub esp, 0x18
test edx, edx
je 0x40e8ce
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontFamily
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x40e936
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 4
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontWeight
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x58]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryBufferSize
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x5c]
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryNoDup
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x60]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.InsertMode
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x64]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MenuMask
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x54]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PopupColors
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x68]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.QuickEdit
mov dword [esp], eax
call edi
mov edx, dword [ebx + 0x70]
movzx eax, word [ebx + 0x6c]
sub esp, 0x18
shl edx, 0x10
mov dword [esp + 0x14], 4
or eax, edx
mov dword [esp + 0x10], esi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenBufferSize
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x50]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenColors
mov dword [esp], eax
call edi
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
sub esp, 0x18
jmp 0x40ec8e
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorSize
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x4c]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorVisible
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x80]
sub esp, 0x18
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.EditionMode
mov dword [esp], eax
call edi
lea edx, [ebx + 0x8c]
sub esp, 0x18
cmp word [ebx + 0x8c], 0
jne 0x40ecf0
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x40ed48
lea edx, [ebp - 0xe4]
xor eax, eax
call sym._load_config
jmp 0x40e735
mov eax, edx
call sym._debugstr_config
mov dword [esp + 0xc], 0x414ecc
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.save_registry_key
mov dword [esp + 4], 0x413080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40e727
cmp dword [ebp - 0x6c], eax
jne 0x40ec8e
jmp 0x40ecce
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebp - 0x8c]
jne 0x40f20c
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebp - 0x88]
jne 0x40f255
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebp - 0x84]
jne 0x40f29e
mov eax, dword [ebx + 0x64]
cmp eax, dword [ebp - 0x80]
jne 0x40f2e7
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebp - 0x90]
jne 0x40f330
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebp - 0x7c]
je 0x40ebcd
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.QuickEdit
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
sub esp, 0x18
cmp edx, dword [ebp - 0x78]
jne 0x40ebdc
cmp dword [ebp - 0x74], eax
jne 0x40ebdc
jmp 0x40ec26
mov eax, dword [ebp - 0xa4]
cmp dword [ebx + 0x40], eax
jne 0x40e936
jmp 0x40e9e6
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryBufferSize
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x40ea74
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryNoDup
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x40eabb
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.InsertMode
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x40eb02
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MenuMask
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x40eb46
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PopupColors
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x40eb8d
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
jmp 0x40e8ce