Function at 0x456d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x476586
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, ecx
mov al, byte [edi + 0xe5]
lea esi, [edi + 0xe5]
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov byte [esp + 0x44], al
xor ebp, ebp
mov dword [esp + 0xa8], ebp
mov byte [esi], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
cmp ebx, ebp
je 0x45753c
push 1
push 4
lea ecx, [esp + 0x28]
push ecx
push str.DisableUpdate
push 0x482ce8
lea ecx, [esp + 0x78]
mov dword [esp + 0x34], ebp
call fcn.0044bce0
fldz
fld st(0)
mov byte [esp + 0xa8], 1
fld st(1)
fcomp qword [edi + 0x1d8]
fnstsw ax
test ah, 0x44
jnp 0x457132
fstp st(0)
fstp st(0)
call fcn.00402a50
fsubr qword [edi + 0x1d8]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jp 0x457130
mov esi, 8
fxch st(1)
mov dword [esp + 0x2c], esi
fcomp qword [0x490260]
mov dword [esp + 0x30], esi
fnstsw ax
test ah, 0x41
je 0x456e30
mov dword [esp + 0x30], ebp
fcomp qword [edi + 0x1f0]
mov dword [esp + 0x20], esi
fnstsw ax
test ah, 5
jnp 0x456e45
mov dword [esp + 0x20], ebp
movsx eax, byte [edi + 0x1c1]
neg eax
sbb eax, eax
and eax, esi
mov dword [esp + 0x38], eax
cmp dword [esp + 0x30], esi
jne 0x456e60
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x64]
call fcn.00449fd0
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, esi
lea ecx, [edi + 0x2ec]
mov dword [esp + 0x18], eax
call fcn.00449fd0
neg eax
sbb eax, eax
and eax, esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xb0], 2
call fcn.00403a20
add esp, 8
test eax, eax
jne 0x456ec9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._d._d
push eax
call fcn.00418c60
add esp, 0x10
xor ecx, ecx
cmp byte [0x4f1ba4], cl
setne cl
dec ecx
and ecx, 3
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
cmp byte [0x4f1ba4], 0
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov ebp, eax
jne 0x456f0b
push str.Expand_Color_Range
push 0x64
push 0
push ebp
call esi
push 0
push 0
push 0x800
push ebp
call esi
mov eax, dword [edi + 0xf8]
xor ecx, ecx
cmp eax, 0x4b0
setne cl
xor edx, edx
push str.1200k:_Ember
push 0x61
dec ecx
and ecx, 8
cmp eax, 0x76c
setne dl
dec edx
and edx, 8
mov dword [esp + 0x64], edx
xor edx, edx
cmp eax, 0x8fc
setne dl
dec edx
and edx, 8
mov dword [esp + 0x50], edx
xor edx, edx
cmp eax, 0xa8c
setne dl
dec edx
and edx, 8
mov dword [esp + 0x54], edx
xor edx, edx
cmp eax, 0xd48
setne dl
dec edx
and edx, 8
mov dword [esp + 0x5c], edx
xor edx, edx
cmp eax, 0x1068
setne dl
dec edx
and edx, 8
mov dword [esp + 0x58], edx
xor edx, edx
cmp eax, 0x1388
setne dl
or ecx, dword [esp + 0x2c]
push ecx
push ebp
dec edx
and edx, 8
mov dword [esp + 0x70], edx
call esi
mov eax, dword [esp + 0x5c]
or eax, dword [esp + 0x24]
push str.1900k:_Candle
push 0x62
push eax
push ebp
call esi
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x24]
push str.2300k:_Dim_Incandescent
push 0x63
push eax
push ebp
call esi
mov eax, dword [esp + 0x4c]
or eax, dword [esp + 0x24]
push str.2700k:_Incandescent
push 0x65
push eax
push ebp
call esi
mov eax, dword [esp + 0x54]
push str.3400k:_Halogen
push 0x66
push eax
push ebp
call esi
mov ecx, dword [esp + 0x50]
push str.4200k:_Fluorescent
push 0x67
push ecx
push ebp
call esi
mov edx, dword [esp + 0x60]
push str.5000k:_Sunlight
push 0x68
push edx
push ebp
call esi
cmp byte [esp + 0xb4], 0
jne 0x457021
push str.Settings...
push 2
push 0
push ebx
call esi
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push str.Extras...
push 7
push 0
push ebx
call esi
push 0
push 0
push 0x800
push ebx
call esi
mov eax, dword [esp + 0x58]
push str.Safe_Mode
push 8
push eax
push ebx
call esi
fld1
fcomp qword [edi + 0x1f8]
fnstsw ax
test ah, 0x44
jnp 0x457063
push str.Return_to_Full_Brightness
push 0xd
push 0
push ebx
call esi
push 0
push 0
push 0x800
push ebx
call esi
mov ecx, dword [esp + 0x20]
push str.Movie_Mode
push 0xa
push ecx
push ebx
call esi
cmp byte [0x4f1ba4], 0
je 0x457096
mov edx, dword [esp + 0x38]
push str.Darkroom_Mode
push 0xc
push edx
push ebx
call esi
push 0
push 0
push 0x800
push ebx
call esi
push str.Lighting_at_night
push ebp
push 0x10
push ebx
call esi
mov eax, dword [esp + 0x2c]
push str.Disable_for_an_hour
push 4
push eax
push ebx
call esi
mov ecx, dword [esp + 0x30]
push str.Disable_until_sunrise
push 9
push ecx
push ebx
call esi
xor ebp, ebp
push ebp
push ebp
push 0x800
push ebx
call esi
mov edx, dword [esp + 0x18]
push str.Install_updates_automatically
push 5
push edx
push ebx
call esi
push ebp
push ebp
push 0x800
push ebx
call esi
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
mov byte [esp + 0xa8], 3
cmp eax, ebp
je 0x45710b
add eax, 4
cmp eax, ebp
jne 0x457110
mov eax, 0x48ca18
push eax
lea eax, [esp + 0x20]
push str.Exit_f.lux__v_s_
push eax
call fcn.00418c60
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebp
je 0x457140
add eax, 4
jmp 0x457142
fxch st(1)
mov dword [esp + 0x2c], ebp
mov esi, 8
jmp 0x456e1b
xor eax, eax
push eax
push 6
push ebp
push ebx
call esi
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov esi, dword [eax + 0x58]
test esi, esi
je 0x457186
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0
push esi
push ecx
push edx
push 0x12a
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
push ebx
mov ebp, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [edi + 0xf8]
dec ebp
mov dword [esp + 0x38], eax
cmp ebp, 0x67
ja case.0x4571a1.14
movzx ecx, byte [ebp + 0x4575b8]
jmp dword [ecx*4 + 0x457560]
mov edx, dword [str.http:__justgetflux.com_]
push 1
push edx
call fcn.00403d20
add esp, 8
jmp case.0x4571a1.14
mov ecx, edi
call fcn.00455c10
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0xa8], 2
call fcn.00401080
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8], 1
call fcn.00401080
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
call fcn.0044a0c0
mov al, byte [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov byte [ecx], al
mov eax, esi
jmp 0x457544
mov ecx, edi
call fcn.00451dc0
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0xa8], 2
call fcn.00401080
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8], 1
call fcn.00401080
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
call fcn.0044a0c0
mov eax, dword [esp + 0x34]
mov dl, byte [esp + 0x44]
mov byte [eax], dl
mov eax, esi
jmp 0x457544
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
push 1
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
or esi, 0xffffffff
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
call eax
mov ecx, eax
call fcn.00404ee0
mov ecx, edi
call fcn.00452cd0
jmp case.0x4571a1.14
fld qword [0x490260]
sub esp, 8
fstp qword [esp]
push 0
mov ecx, edi
call fcn.00451f80
jmp case.0x4571a1.14
fld qword [0x490218]
sub esp, 8
fstp qword [esp]
push 0
mov ecx, edi
call fcn.00451f80
jmp case.0x4571a1.14
mov ecx, edi
call fcn.00451eb0
jmp case.0x4571a1.14
mov ecx, edi
call fcn.00451e30
jmp case.0x4571a1.14
fld1
fstp qword [edi + 0x1f8]
fldz
fstp qword [edi + 0x1e0]
jmp case.0x4571a1.14
lea ecx, [esp + 0x64]
call fcn.00449fd0
test eax, eax
je 0x457338
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], 0
call fcn.00449f10
jmp case.0x4571a1.14
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], 1
call fcn.00449f10
jmp case.0x4571a1.14
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push 0
mov ecx, edi
call edx
mov ecx, eax
call fcn.00404c90
jmp case.0x4571a1.14
mov ecx, edi
call fcn.00452b80
jmp case.0x4571a1.14
lea esi, [edi + 0x2ec]
mov ecx, esi
call fcn.00449fd0
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00449f10
mov ecx, esi
call fcn.00449fd0
mov ecx, dword [edi + 0x2e4]
mov byte [ecx + 0x28], al
mov ecx, esi
call fcn.00449fd0
test eax, eax
sete cl
movzx edx, cl
push edx
mov ecx, edi
call fcn.0041cd70
mov ebx, dword [edi]
fldz
or esi, 0xffffffff
mov ecx, esi
push ecx
mov edx, esi
fstp dword [esp]
push 1
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
or ecx, esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x4c]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
push 1
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x90]
push ecx
mov ecx, edi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
call eax
mov ecx, eax
call fcn.00404ee0
jmp case.0x4571a1.14
call fcn.0044b520
jmp case.0x4571a1.14
push 0x4b0
jmp 0x45746b
push 0x76c
jmp 0x45746b
push 0x8fc
jmp 0x45746b
push 0xa8c
jmp 0x45746b
push 0xd48
jmp 0x45746b
push 0x1068
jmp 0x45746b
push 0x1388
mov ecx, edi
call fcn.00452c20
mov ecx, dword [esp + 0x38]
cmp ecx, dword [edi + 0xf8]
je 0x4574a3
fld qword [edi + 0x108]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
cmp edx, dword [edi + 0xf4]
jne 0x4574a3
mov ecx, edi
call fcn.00451e60
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0xa8], 2
test ecx, ecx
je 0x4574e8
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x4574d3
push ecx
call esi
mov ecx, dword [esp + 0x1c]
and eax, 0xff
test eax, eax
jne 0x4574e0
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xa8], 1
test ecx, ecx
je 0x457527
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x457512
push ecx
call esi
mov ecx, dword [esp + 0x14]
and eax, 0xff
test eax, eax
jne 0x45751f
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
call fcn.0044a0c0
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x44]
mov byte [esi], al
xor eax, eax
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8