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

Disassembly:
mov eax, 0x414e64
call fcn.0040c1ac
mov eax, 0x41c4
call fcn.0040ccf0
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
mov byte [ebp - 0x2c], bl
call fcn.0040a6c0
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x28], esi
je 0x40b1ba
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push esi
call dword [eax + 0x14]
cmp eax, ebx
jl 0x40b1ba
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 0x40b1ba
cmp dword [ebp - 0x18], 2
jne 0x40b1ba
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 0x40b37c
push edi
push 1
lea eax, [ebp - 0xcc]
pop esi
push 0x94
push ebx
push eax
mov dword [ebp - 0x20], esi
call fcn.0040c1e0
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 0x40b36f
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.004012d5
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b220
call fcn.0040174e
jmp 0x40b222
xor eax, eax
push eax
call fcn.0040a5e6
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b237
call fcn.0040174e
jmp 0x40b239
xor eax, eax
push eax
call fcn.0040ab84
cmp eax, esi
pop ecx
jne 0x40b24d
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x20], esi
jmp 0x40b250
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b25e
call fcn.0040174e
jmp 0x40b260
xor eax, eax
push eax
call fcn.0040a8f8
pop ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b278
call fcn.0040174e
jmp 0x40b27a
xor eax, eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0040a935
add esp, 0xc
lea esi, [ebp - 0x41c8]
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40b29f
call fcn.0040174e
jmp 0x40b2a1
xor eax, eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xcc]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.0040a82e
add esp, 0x10
test eax, eax
je 0x40b2f4
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x38]
jb 0x40b2ef
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x34]
jb 0x40b2ef
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x30]
jb 0x40b2ed
cmp edi, 0x400
jae 0x40b2ed
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 0x40b291
cmp edi, ebx
jbe 0x40b36f
mov eax, dword [ebp - 0x1c]
dec eax
je 0x40b338
dec eax
jne 0x40b36f
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 0x40b36f
lea eax, [ebp - 0x20]
push 4
push eax
push 4
push ebx
push str.HideModesCheckboxStatus2
push dword [ebp - 0x10]
call esi
jmp 0x40b36f
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 0x40b36f
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 0x40b1c4
mov esi, dword [ebp - 0x28]
pop edi
cmp esi, ebx
je 0x40b386
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [ebp - 0x10], ebx
je 0x40b397
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x24], ebx
je 0x40b3a5
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.0040ac52
mov ecx, dword [ebp - 0x14]
pop esi
cmp ecx, ebx
pop ebx
je 0x40b3b8
call fcn.00401128
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret