Function at 0x403790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4353d4]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push eax
push 0x20019
xor ebp, ebp
push ebp
xor bl, bl
push str.SoftwareIntelDisplayigfxcuiigfxsrvcDesktopGammaDefault
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x28], ebp
mov byte [esp + 0x27], 0
mov byte [esp + 0x23], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x24], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4039d6
push edi
push 0x104
lea ecx, [esp + 0x28]
push ebp
push ecx
call fcn.00413940
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.BrightnessDefault
push edx
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x34], 1
call edi
test eax, eax
jne 0x403858
lea eax, [esp + 0x24]
push eax
call fcn.0041412c
push 0x104
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esi + 0xc], eax
call fcn.00413940
add esp, 0x10
mov byte [esp + 0x17], 1
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.ContrastDefault
push edx
call edi
test eax, eax
jne 0x40389a
lea eax, [esp + 0x24]
push eax
call fcn.0041412c
push 0x104
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esi + 0x10], eax
call fcn.00413940
add esp, 0x10
mov bl, 1
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.GammaDefault
push edx
call edi
test eax, eax
jne 0x4038ea
lea eax, [esp + 0x24]
push eax
call fcn.00414103
fmul qword [0x427480]
call fcn.00413f30
push 0x104
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esi + 0x14], eax
call fcn.00413940
add esp, 0x10
mov byte [esp + 0x13], 1
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.HueDefault
push edx
call edi
test eax, eax
jne 0x40392f
lea eax, [esp + 0x24]
push eax
call fcn.0041412c
push 0x104
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esi + 0x18], eax
call fcn.00413940
add esp, 0x10
mov byte [esp + 0x16], 1
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.SaturationDefault
push edx
call edi
test eax, eax
jne 0x403974
lea eax, [esp + 0x24]
push eax
call fcn.0041412c
push 0x104
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esi + 0x1c], eax
call fcn.00413940
add esp, 0x10
mov byte [esp + 0x15], 1
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.DarknessControlDefault
push edx
call edi
pop edi
test eax, eax
jne 0x4039ba
lea eax, [esp + 0x20]
push eax
call fcn.0041412c
push 0x104
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esi + 0x20], eax
call fcn.00413940
add esp, 0x10
mov byte [esp + 0x10], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x13], 0
jne 0x4039e7
test bl, bl
jne 0x4039f4
cmp byte [esp + 0xf], bl
jne 0x4039f4
mov ecx, esi
call fcn.00403500
test eax, eax
jl 0x4039f4
mov bl, 1
mov byte [esp + 0xf], bl
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffc4
jl 0x4039f4
cmp eax, 0x64
jle 0x4039f7
mov dword [esi + 0xc], ebp
mov ecx, 0x32
test bl, bl
je 0x403a0d
mov eax, dword [esi + 0x10]
cmp eax, 0x28
jl 0x403a0d
cmp eax, 0x64
jle 0x403a10
mov dword [esi + 0x10], ecx
cmp byte [esp + 0xf], 0
je 0x403a26
mov eax, dword [esi + 0x14]
cmp eax, 0x28
jl 0x403a26
cmp eax, 0x1f4
jle 0x403a2d
mov dword [esi + 0x14], 0x64
cmp byte [esp + 0x12], 0
je 0x403a42
mov eax, dword [esi + 0x18]
cmp eax, ebp
jl 0x403a42
cmp eax, 0x168
jle 0x403a45
mov dword [esi + 0x18], ebp
cmp byte [esp + 0x11], 0
je 0x403a59
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffff9c
jl 0x403a59
cmp eax, 0x64
jle 0x403a5c
mov dword [esi + 0x1c], ebp
cmp byte [esp + 0x10], 0
je 0x403a6f
mov eax, dword [esi + 0x20]
cmp eax, ebp
jl 0x403a6f
cmp eax, 0x64
jle 0x403a72
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413930
add esp, 0x11c
ret