Function at 0x40cc40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a452
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 4], 0
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x98]
call fcn.00404260
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov eax, dword [ebp - 0x98]
mov ecx, str.opt_switch
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cce6
test dx, dx
je 0x40cce2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cce6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ccc0
xor eax, eax
jmp 0x40cceb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x40cd52
mov esi, dword [esi + 0x108]
test esi, esi
je 0x40cec6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc0]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x43cfe0]
lea edi, [eax + ecx*8]
mov ecx, esi
mov al, byte [edi + 5]
test al, al
je 0x40cd3c
call dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const]
movzx eax, al
mov ecx, edi
push eax
call fcn.004116a0
jmp 0x40cec6
call dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const]
movzx eax, al
mov ecx, edi
push eax
call fcn.00411270
jmp 0x40cec6
mov eax, dword [ebp - 0x98]
mov ecx, str.opt_file
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cd86
test dx, dx
je 0x40cd82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cd86
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cd60
xor eax, eax
jmp 0x40cd8b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x40cdb7
mov ecx, dword [edi + 0x708]
mov esi, dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int__bool_]
push 1
push 0
call esi
mov ecx, dword [edi + 0x70c]
push 1
push 0
call esi
jmp 0x40cec6
mov edx, str.opt_desk
lea ecx, [ebp - 0x98]
call fcn.004038b0
test al, al
je 0x40cdee
mov ecx, dword [edi + 0x708]
mov esi, dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int__bool_]
push 1
push 1
call esi
mov ecx, dword [edi + 0x70c]
push 1
push 1
call esi
jmp 0x40cec6
mov edx, str.opt_ie
lea ecx, [ebp - 0x98]
call fcn.004038b0
test al, al
je 0x40ce25
mov ecx, dword [edi + 0x708]
mov esi, dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int__bool_]
push 1
push 2
call esi
mov ecx, dword [edi + 0x70c]
push 1
push 2
call esi
jmp 0x40cec6
mov edx, str.opt_hide
lea ecx, [ebp - 0x98]
call fcn.004038b0
test al, al
je 0x40cec6
push 0
push 0x43c200
push 0x43bbf0
push 0
push dword [esi + 0x108]
call fcn.004298cc
add esp, 0x14
test eax, eax
je 0x40cec6
mov ecx, eax
call dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const]
mov bl, al
lea ecx, [ebp - 0xac]
mov byte [ebp - 0xa0], bl
mov byte [0x43cf64], bl
call fcn.0040c040
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xac]
test ecx, ecx
je 0x40ceae
push 4
movzx eax, bl
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
push 4
push 0
push str.hidenClosed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa0]
mov ecx, edi
call fcn.0040c980
lea ecx, [ebp - 0xac]
call fcn.00403550
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ceeb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416148
mov esp, ebp
pop ebp
ret 4