Function at 0x41057d
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x41c938
call fcn.00411e88
mov eax, 0x41bc
call fcn.00412b10
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040fcc4
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x28], esi
je 0x410620
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [eax + 0x14]
cmp eax, ebx
jl 0x410620
lea eax, [ebp - 0x1c8]
push 0x104
push eax
call sub.hccutils.DLL_GetCommonRegKey
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push PostQuitMessage
push ebx
push ebx
lea eax, [ebp - 0x1c8]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410620
cmp dword [ebp - 0x14], 2
jne 0x410620
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.CUIModesCacheDisplay1
push dword [ebp - 0x10]
call esi
push str.CUIModesCacheDisplay2
push dword [ebp - 0x10]
call esi
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0x18], ebx
jbe 0x4107c5
push edi
push 1
lea eax, [ebp - 0xc4]
pop esi
push 0x94
push ebx
push eax
mov dword [ebp - 0x24], esi
call fcn.004126a0
mov eax, dword [ebp - 0x28]
add esp, 0xc
lea edx, [ebp - 0x20]
xor edi, edi
push edx
mov edx, dword [ebp - 0x18]
dec edx
mov word [ebp - 0xa0], 0x94
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4107b8
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00404bc9
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x410686
call fcn.00401342
jmp 0x410688
xor eax, eax
push eax
call fcn.0040fbd1
pop ecx
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x41069d
call fcn.00401342
jmp 0x41069f
xor eax, eax
push eax
call fcn.004102fa
cmp eax, esi
pop ecx
jne 0x4106b3
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x24], esi
jmp 0x4106b6
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x4106c4
call fcn.00401342
jmp 0x4106c6
xor eax, eax
push eax
call fcn.0040fffd
pop ecx
mov dword [ebp - 0x30], eax
lea esi, [ebp - 0x41c0]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x4106e4
call fcn.00401342
jmp 0x4106e6
xor eax, eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xc4]
push ecx
push dword [ebp - 0x14]
push eax
call fcn.0040fe87
add esp, 0x10
test eax, eax
je 0x41073d
mov edx, dword [ebp - 0x58]
cmp edx, 0x280
jb 0x410738
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x1e0
jb 0x410738
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x30]
jb 0x410738
cmp edi, 0x400
jae 0x410738
mov dword [esi - 4], edx
mov dword [esi], ecx
mov dword [esi - 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 4], eax
inc edi
add esi, 0x10
inc dword [ebp - 0x14]
jmp 0x4106d6
cmp edi, ebx
jbe 0x4107b8
mov eax, dword [ebp - 0x18]
dec eax
je 0x410781
dec eax
jne 0x4107b8
shl edi, 4
lea eax, [ebp - 0x41c8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
push eax
push 3
push ebx
push str.CUIModesCacheDisplay2
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x4107b8
lea eax, [ebp - 0x24]
push 4
push eax
push 4
push ebx
push str.HideModesCheckboxStatus2
push dword [ebp - 0x10]
call esi
jmp 0x4107b8
shl edi, 4
lea eax, [ebp - 0x41c8]
push edi
push eax
push 3
push ebx
push str.CUIModesCacheDisplay1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4107b8
lea eax, [ebp - 0x24]
push 4
push eax
push 4
push ebx
push str.HideModesCheckboxStatus1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
dec dword [ebp - 0x18]
jne 0x41062a
mov esi, dword [ebp - 0x28]
pop edi
cmp esi, ebx
je 0x4107cf
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [ebp - 0x10], ebx
je 0x4107e0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x20], ebx
je 0x4107ee
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.004104d6
mov ecx, dword [ebp - 0x1c]
pop esi
cmp ecx, ebx
pop ebx
je 0x410801
call fcn.00401045
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret