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

Disassembly:
mov eax, 0x415730
call fcn.0040ca3c
mov eax, 0x41c4
call fcn.0040d630
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.0040ad92
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x28], esi
je 0x40b899
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push esi
call dword [eax + 0x14]
cmp eax, ebx
jl 0x40b899
lea eax, [ebp - 0x1d0]
push 0x104
push eax
call sub.hccutils.DLL_GetCommonRegKey
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x2001f
push ebx
push ebx
lea eax, [ebp - 0x1d0]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b899
cmp dword [ebp - 0x18], 2
jne 0x40b899
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 - 0x1c], ebx
jbe 0x40ba5e
push edi
push 1
lea eax, [ebp - 0xcc]
pop esi
push 0x94
push ebx
push eax
mov dword [ebp - 0x20], esi
call fcn.0040ca70
mov eax, dword [ebp - 0x28]
add esp, 0xc
lea edx, [ebp - 0x24]
xor edi, edi
push edx
mov edx, dword [ebp - 0x1c]
dec edx
mov word [ebp - 0xa8], 0x94
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40ba51
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.004012d5
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b8ff
call fcn.0040174e
jmp 0x40b901
xor eax, eax
push eax
call fcn.0040acb8
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b916
call fcn.0040174e
jmp 0x40b918
xor eax, eax
push eax
call fcn.0040b266
cmp eax, esi
pop ecx
jne 0x40b92c
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x20], esi
jmp 0x40b932
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b940
call fcn.0040174e
jmp 0x40b942
xor eax, eax
push eax
call fcn.0040afda
pop ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b95a
call fcn.0040174e
jmp 0x40b95c
xor eax, eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0040b017
add esp, 0xc
lea esi, [ebp - 0x41c8]
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b981
call fcn.0040174e
jmp 0x40b983
xor eax, eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xcc]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.0040af10
add esp, 0x10
test eax, eax
je 0x40b9d6
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x38]
jb 0x40b9d1
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x34]
jb 0x40b9d1
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x30]
jb 0x40b9cf
cmp edi, 0x400
jae 0x40b9cf
mov dword [esi - 4], edx
mov dword [esi], ecx
mov dword [esi - 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 4], eax
inc edi
add esi, 0x10
xor ebx, ebx
inc dword [ebp - 0x18]
jmp 0x40b973
cmp edi, ebx
jbe 0x40ba51
mov eax, dword [ebp - 0x1c]
dec eax
je 0x40ba1a
dec eax
jne 0x40ba51
shl edi, 4
lea eax, [ebp - 0x41d0]
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 0x40ba51
lea eax, [ebp - 0x20]
push 4
push eax
push 4
push ebx
push str.HideModesCheckboxStatus2
push dword [ebp - 0x10]
call esi
jmp 0x40ba51
shl edi, 4
lea eax, [ebp - 0x41d0]
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 0x40ba51
lea eax, [ebp - 0x20]
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 - 0x1c]
jne 0x40b8a3
mov esi, dword [ebp - 0x28]
pop edi
cmp esi, ebx
je 0x40ba68
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [ebp - 0x10], ebx
je 0x40ba79
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x24], ebx
je 0x40ba87
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.0040b334
mov ecx, dword [ebp - 0x14]
pop esi
cmp ecx, ebx
pop ebx
je 0x40ba9a
call fcn.0040112d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret