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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov edi, dword [0x416ebc]
cmp edi, 0x416ebc
je 0x408fa6
movzx eax, byte [0x4150b0]
test al, 8
je 0x408c55
jmp 0x408f70
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call ebx
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov edx, dword [edi]
mov dword [eax], edx
mov dword [esp], edi
call ebx
mov edi, dword [0x416ebc]
cmp edi, 0x416ebc
je 0x408fa6
movzx eax, byte [0x4150b0]
mov edx, dword [edi + 0x14]
and eax, 8
test edx, edx
je 0x408dc0
test al, al
jne 0x408ea0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
mov ebx, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x409087
cmp word [ebx], 0
jne 0x408e30
mov eax, dword [ebp - 0x14]
mov esi, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
je 0x408ced
test edx, edx
je 0x408ced
cmp ecx, 1
je 0x408fb0
cmp ecx, 4
jne 0x408ced
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov esi, dword [ebp - 0x18]
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x10]
sub esp, 0x18
test eax, eax
je 0x408d02
cmp dword [ebp - 0x14], eax
je 0x408d02
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
jne 0x408d70
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40906a
test byte [0x4150b0], 8
je 0x408c10
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.destroying__p:__s_n
mov dword [esp + 8], str.free_setting
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov eax, dword [edi + 0xc]
jmp 0x408c10
test eax, eax
je 0x408d70
cmp dword [ebp - 0x14], eax
jne 0x408cf6
lea esi, [esi]
test byte [0x4150b0], 2
je 0x408d06
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_4
mov ebx, eax
mov eax, dword [ebp - 0x18]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_set_configuration_key__s_in_section__s__res_ld_n
mov dword [esp + 8], str.set_config_key
mov dword [esp + 4], 0x4150b0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_8
jmp 0x408d06
test al, al
jne 0x408fe8
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0x2000000
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov eax, dword [edi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x408d06
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x409030
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x408d06
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov esi, eax
sub esp, 0x24
mov eax, dword [ebp - 0x10]
test esi, esi
jne 0x408d60
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
jmp 0x408ca1
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0_4
mov esi, eax
mov eax, dword [edi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_4
mov ebx, eax
mov eax, dword [edi + 0xc]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Setting__s:_s_to__s_n
mov dword [esp + 8], str.process_setting
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 8]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov ebx, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
test byte [0x4150b0], 8
je 0x408c84
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
call sym._wine_dbgstr_wn.constprop.0_4
mov esi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.subkey_s:_name_s__value_p__type_ld_n
mov dword [esp + 8], str.set_config_key
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x408c84
mov dword [esp + 0xc], 0x4190f3
mov dword [esp + 8], str.apply
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov edi, dword [0x416ebc]
cmp edi, 0x416ebc
jne 0x408c4e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edx], 0
je 0x409060
mov ecx, edx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x408fc0
sub ecx, edx
add ecx, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
jmp 0x408ccd
mov eax, dword [edi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_4
mov ebx, eax
mov eax, dword [edi + 0xc]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Removing__s:_s_n
mov dword [esp + 8], str.process_setting
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x408dc8
mov dword [esp], edx
mov dword [esp + 4], 0
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov eax, dword [edi + 0xc]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
jmp 0x408e1b
mov ecx, 2
jmp 0x408fce
mov dword [esp + 8], 0xe1
mov dword [esp + 4], str..._src_wine_programs_winecfg_winecfg.c
mov dword [esp], str.setting__path
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [esp + 8], 0xa9
mov dword [esp + 4], str..._src_wine_programs_winecfg_winecfg.c
mov dword [esp], str.subkey___NULL
call dword [sym.imp.ucrtbase.dll__assert]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop