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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [0x415860]
cmp edi, 0x415860
je 0x41147e
movzx eax, byte [0x415868]
test al, 8
je 0x4110cf
jmp 0x411448
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
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 dword [sym.imp.ucrtbase.dll_free]
mov edi, dword [0x415860]
cmp edi, 0x415860
je 0x41147e
movzx eax, byte [0x415868]
mov ebx, dword [edi + 0x14]
and eax, 8
test ebx, ebx
je 0x4112d8
test al, al
jne 0x411350
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
test esi, esi
je 0x41141b
cmp word [esi], 0
jne 0x4111e8
mov dword [ebp - 0x1c], ecx
mov eax, ecx
mov edx, 1
cmp dword [ebp - 0x30], 0
je 0x41116e
test ebx, ebx
je 0x41116e
cmp dword [ebp - 0x2c], 1
je 0x411490
cmp dword [ebp - 0x2c], 4
jne 0x41116e
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
je 0x411188
cmp ecx, eax
je 0x411188
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2c]
sub esp, 4
test edx, edx
jne 0x411250
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4112b0
test byte [0x415868], 8
je 0x411080
call fcn.0040ffa0
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], 0x415868
mov dword [esp], 3
call fcn.00410270
mov eax, dword [edi + 0xc]
jmp 0x411080
lea eax, [ebp - 0x1c]
mov dword [esp], ecx
mov dword [ebp - 0x34], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
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], esi
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x34]
mov edx, eax
sub esp, 0x24
mov eax, dword [ebp - 0x1c]
test edx, edx
je 0x41111a
test eax, eax
je 0x411250
cmp ecx, eax
jne 0x411176
nop
test byte [0x415868], 2
je 0x411190
mov eax, esi
mov dword [ebp - 0x2c], edx
call fcn.0040ffa0
mov ebx, eax
mov eax, dword [ebp - 0x30]
call fcn.0040ffa0
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
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], 0x415868
mov dword [esp], 1
call fcn.00410270
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x41119b
nop
mov dword [esp + 8], 0xe2
mov dword [esp + 4], str..._ValveSoftware_winegit_programs_winecfg_winecfg.c
mov dword [esp], str.setting__path
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [edi + 0xc]
jmp 0x41119b
test al, al
jne 0x4114d8
lea eax, [ebp - 0x1c]
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 0x411190
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x1c]
test eax, eax
je 0x411520
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x411190
mov eax, ebx
call fcn.0040ffa0
mov esi, eax
mov eax, dword [edi + 0x10]
call fcn.0040ffa0
mov ebx, eax
mov eax, dword [edi + 0xc]
call fcn.0040ffa0
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], 0x415868
mov dword [esp], 3
call fcn.00410270
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x14]
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
test byte [0x415868], 8
je 0x4110fe
mov dword [ebp - 0x38], ecx
call fcn.0040ffa0
mov dword [ebp - 0x34], eax
mov eax, esi
call fcn.0040ffa0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 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], 0x415868
mov dword [esp], 3
call fcn.00410270
mov ecx, dword [ebp - 0x38]
test esi, esi
jne 0x411106
mov dword [ebp - 0x34], ecx
mov dword [esp + 8], 0xaa
mov dword [esp + 4], str..._ValveSoftware_winegit_programs_winecfg_winecfg.c
mov dword [esp], str.subkey___NULL
call dword [sym.imp.ucrtbase.dll__assert]
mov ecx, dword [ebp - 0x34]
jmp 0x411106
mov dword [esp + 0xc], 0x419903
mov dword [esp + 8], str.apply
mov dword [esp + 4], 0x415868
mov dword [esp], 3
call fcn.00410270
mov edi, dword [0x415860]
cmp edi, 0x415860
jne 0x4110c8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebx], 0
je 0x411550
mov edx, ebx
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4114a0
sub edx, ebx
add edx, 2
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
jmp 0x41115a
mov eax, dword [edi + 0x10]
call fcn.0040ffa0
mov ebx, eax
mov eax, dword [edi + 0xc]
call fcn.0040ffa0
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], 0x415868
mov dword [esp], 3
call fcn.00410270
jmp 0x4112e0
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 0x411333
mov edx, 2
jmp 0x4114ae