; Listing generated by Microsoft (R) Optimizing Compiler Version 15.00.21022.08 

	TITLE	c:\Develop\DScaler423a\DScaler\OverlaySettings.cpp
	.686P
	.XMM
	include listing.inc
	.model	flat

INCLUDELIB OLDNAMES

_NbMonitors DD	01H DUP (?)
_hCurrentMon DD	01H DUP (?)
PUBLIC	?OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z	; OverlaySettingProc
;	COMDAT ?TSharpness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
; File c:\develop\dscaler423a\dscaler\overlaysettings.cpp
_BSS	SEGMENT
?TSharpness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA DD 01H DUP (?) ; `OverlaySettingProc'::`2'::TSharpness
_BSS	ENDS
;	COMDAT ?TGamma@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
_BSS	SEGMENT
?TGamma@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA DD 01H DUP (?) ; `OverlaySettingProc'::`2'::TGamma
_BSS	ENDS
;	COMDAT ?TSaturation@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
_BSS	SEGMENT
?TSaturation@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA DD 01H DUP (?) ; `OverlaySettingProc'::`2'::TSaturation
_BSS	ENDS
;	COMDAT ?THue@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
_BSS	SEGMENT
?THue@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA DD 01H DUP (?) ; `OverlaySettingProc'::`2'::THue
_BSS	ENDS
;	COMDAT ?TContrast@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
_BSS	SEGMENT
?TContrast@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA DD 01H DUP (?) ; `OverlaySettingProc'::`2'::TContrast
_BSS	ENDS
;	COMDAT ?TBrightness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
_BSS	SEGMENT
?TBrightness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA DD 01H DUP (?) ; `OverlaySettingProc'::`2'::TBrightness
_BSS	ENDS
;	COMDAT ?TUseOverlayControls@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4HA
_BSS	SEGMENT
?TUseOverlayControls@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4HA DD 01H DUP (?) ; `OverlaySettingProc'::`2'::TUseOverlayControls
; Function compile flags: /Odtp
_BSS	ENDS
;	COMDAT ?OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z
_TEXT	SEGMENT
tv221 = -16						; size = 4
tv64 = -12						; size = 4
_bEnable$142126 = -8					; size = 4
_bEnable$142112 = -4					; size = 4
_hDlg$ = 8						; size = 4
_message$ = 12						; size = 4
_wParam$ = 16						; size = 4
_lParam$ = 20						; size = 4
?OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z PROC		; OverlaySettingProc, COMDAT

; 31   : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	83 ec 10	 sub	 esp, 16			; 00000010H

; 32   :     static long THue;
; 33   :     static long TBrightness;
; 34   :     static long TContrast;
; 35   :     static long TSaturation;
; 36   :     static long TGamma;
; 37   :     static long TSharpness;
; 38   :     static BOOL TUseOverlayControls;
; 39   : 
; 40   :     switch (message)

  00006	8b 45 0c	 mov	 eax, DWORD PTR _message$[ebp]
  00009	89 45 f4	 mov	 DWORD PTR tv64[ebp], eax
  0000c	8b 4d f4	 mov	 ecx, DWORD PTR tv64[ebp]
  0000f	81 e9 10 01 00
	00		 sub	 ecx, 272		; 00000110H
  00015	89 4d f4	 mov	 DWORD PTR tv64[ebp], ecx
  00018	83 7d f4 05	 cmp	 DWORD PTR tv64[ebp], 5
  0001c	0f 87 88 08 00
	00		 ja	 $LN23@OverlaySet
  00022	8b 55 f4	 mov	 edx, DWORD PTR tv64[ebp]
  00025	ff 24 95 00 00
	00 00		 jmp	 DWORD PTR $LN28@OverlaySet[edx*4]
$LN22@OverlaySet:

; 41   :     {
; 42   :     case WM_INITDIALOG:
; 43   :         {
; 44   :             TUseOverlayControls = Setting_GetValue(WM_OTHER_GETVALUE, USEOVERLAYCONTROLS);

  0002c	6a 02		 push	 2
  0002e	68 05 80 00 00	 push	 32773			; 00008005H
  00033	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00038	83 c4 08	 add	 esp, 8
  0003b	a3 00 00 00 00	 mov	 DWORD PTR ?TUseOverlayControls@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4HA, eax

; 45   :             TBrightness = Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYBRIGHTNESS);

  00040	6a 03		 push	 3
  00042	68 05 80 00 00	 push	 32773			; 00008005H
  00047	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  0004c	83 c4 08	 add	 esp, 8
  0004f	a3 00 00 00 00	 mov	 DWORD PTR ?TBrightness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA, eax

; 46   :             TContrast = Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYCONTRAST);

  00054	6a 04		 push	 4
  00056	68 05 80 00 00	 push	 32773			; 00008005H
  0005b	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00060	83 c4 08	 add	 esp, 8
  00063	a3 00 00 00 00	 mov	 DWORD PTR ?TContrast@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA, eax

; 47   :             THue = Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYHUE);

  00068	6a 05		 push	 5
  0006a	68 05 80 00 00	 push	 32773			; 00008005H
  0006f	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00074	83 c4 08	 add	 esp, 8
  00077	a3 00 00 00 00	 mov	 DWORD PTR ?THue@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA, eax

; 48   :             TSaturation = Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYSATURATION);

  0007c	6a 06		 push	 6
  0007e	68 05 80 00 00	 push	 32773			; 00008005H
  00083	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00088	83 c4 08	 add	 esp, 8
  0008b	a3 00 00 00 00	 mov	 DWORD PTR ?TSaturation@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA, eax

; 49   :             TGamma = Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYGAMMA);

  00090	6a 07		 push	 7
  00092	68 05 80 00 00	 push	 32773			; 00008005H
  00097	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  0009c	83 c4 08	 add	 esp, 8
  0009f	a3 00 00 00 00	 mov	 DWORD PTR ?TGamma@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA, eax

; 50   :             TSharpness = Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYSHARPNESS);

  000a4	6a 08		 push	 8
  000a6	68 05 80 00 00	 push	 32773			; 00008005H
  000ab	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  000b0	83 c4 08	 add	 esp, 8
  000b3	a3 00 00 00 00	 mov	 DWORD PTR ?TSharpness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA, eax

; 51   : 
; 52   :             CheckDlgButton(hDlg, IDC_OVERLAYSETTINGS_ENABLE, TUseOverlayControls ? BST_CHECKED : BST_UNCHECKED);

  000b8	33 c0		 xor	 eax, eax
  000ba	83 3d 00 00 00
	00 00		 cmp	 DWORD PTR ?TUseOverlayControls@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4HA, 0
  000c1	0f 95 c0	 setne	 al
  000c4	50		 push	 eax
  000c5	68 99 05 00 00	 push	 1433			; 00000599H
  000ca	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  000cd	51		 push	 ecx
  000ce	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__CheckDlgButton@12

; 53   :             SetDlgItemInt(hDlg, IDC_D1, TBrightness, TRUE);

  000d4	6a 01		 push	 1
  000d6	8b 15 00 00 00
	00		 mov	 edx, DWORD PTR ?TBrightness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  000dc	52		 push	 edx
  000dd	68 bb 05 00 00	 push	 1467			; 000005bbH
  000e2	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  000e5	50		 push	 eax
  000e6	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 54   :             SetDlgItemInt(hDlg, IDC_D2, TContrast, FALSE);

  000ec	6a 00		 push	 0
  000ee	8b 0d 00 00 00
	00		 mov	 ecx, DWORD PTR ?TContrast@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  000f4	51		 push	 ecx
  000f5	68 bc 05 00 00	 push	 1468			; 000005bcH
  000fa	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  000fd	52		 push	 edx
  000fe	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 55   :             SetDlgItemInt(hDlg, IDC_D3, THue, TRUE);

  00104	6a 01		 push	 1
  00106	a1 00 00 00 00	 mov	 eax, DWORD PTR ?THue@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  0010b	50		 push	 eax
  0010c	68 bd 05 00 00	 push	 1469			; 000005bdH
  00111	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00114	51		 push	 ecx
  00115	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 56   :             SetDlgItemInt(hDlg, IDC_D4, TSaturation, FALSE);

  0011b	6a 00		 push	 0
  0011d	8b 15 00 00 00
	00		 mov	 edx, DWORD PTR ?TSaturation@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  00123	52		 push	 edx
  00124	68 be 05 00 00	 push	 1470			; 000005beH
  00129	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  0012c	50		 push	 eax
  0012d	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 57   :             SetDlgItemInt(hDlg, IDC_D5, TGamma, FALSE);

  00133	6a 00		 push	 0
  00135	8b 0d 00 00 00
	00		 mov	 ecx, DWORD PTR ?TGamma@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  0013b	51		 push	 ecx
  0013c	68 bf 05 00 00	 push	 1471			; 000005bfH
  00141	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  00144	52		 push	 edx
  00145	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 58   :             SetDlgItemInt(hDlg, IDC_D6, TSharpness, FALSE);

  0014b	6a 00		 push	 0
  0014d	a1 00 00 00 00	 mov	 eax, DWORD PTR ?TSharpness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  00152	50		 push	 eax
  00153	68 c0 05 00 00	 push	 1472			; 000005c0H
  00158	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  0015b	51		 push	 ecx
  0015c	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 59   : 
; 60   :             Setting_SetupSlider(WM_OTHER_GETVALUE, OVERLAYBRIGHTNESS, GetDlgItem(hDlg, IDC_SLIDER1));

  00162	68 08 07 00 00	 push	 1800			; 00000708H
  00167	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  0016a	52		 push	 edx
  0016b	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00171	50		 push	 eax
  00172	6a 03		 push	 3
  00174	68 05 80 00 00	 push	 32773			; 00008005H
  00179	e8 00 00 00 00	 call	 ?Setting_SetupSlider@@YAXJJPAUHWND__@@@Z ; Setting_SetupSlider
  0017e	83 c4 0c	 add	 esp, 12			; 0000000cH

; 61   :             Setting_SetupSlider(WM_OTHER_GETVALUE, OVERLAYCONTRAST, GetDlgItem(hDlg, IDC_SLIDER2));

  00181	68 09 07 00 00	 push	 1801			; 00000709H
  00186	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  00189	50		 push	 eax
  0018a	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00190	50		 push	 eax
  00191	6a 04		 push	 4
  00193	68 05 80 00 00	 push	 32773			; 00008005H
  00198	e8 00 00 00 00	 call	 ?Setting_SetupSlider@@YAXJJPAUHWND__@@@Z ; Setting_SetupSlider
  0019d	83 c4 0c	 add	 esp, 12			; 0000000cH

; 62   :             Setting_SetupSlider(WM_OTHER_GETVALUE, OVERLAYHUE, GetDlgItem(hDlg, IDC_SLIDER3));

  001a0	68 0a 07 00 00	 push	 1802			; 0000070aH
  001a5	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  001a8	51		 push	 ecx
  001a9	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  001af	50		 push	 eax
  001b0	6a 05		 push	 5
  001b2	68 05 80 00 00	 push	 32773			; 00008005H
  001b7	e8 00 00 00 00	 call	 ?Setting_SetupSlider@@YAXJJPAUHWND__@@@Z ; Setting_SetupSlider
  001bc	83 c4 0c	 add	 esp, 12			; 0000000cH

; 63   :             Setting_SetupSlider(WM_OTHER_GETVALUE, OVERLAYSATURATION, GetDlgItem(hDlg, IDC_SLIDER4));

  001bf	68 0b 07 00 00	 push	 1803			; 0000070bH
  001c4	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  001c7	52		 push	 edx
  001c8	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  001ce	50		 push	 eax
  001cf	6a 06		 push	 6
  001d1	68 05 80 00 00	 push	 32773			; 00008005H
  001d6	e8 00 00 00 00	 call	 ?Setting_SetupSlider@@YAXJJPAUHWND__@@@Z ; Setting_SetupSlider
  001db	83 c4 0c	 add	 esp, 12			; 0000000cH

; 64   :             Setting_SetupSlider(WM_OTHER_GETVALUE, OVERLAYGAMMA, GetDlgItem(hDlg, IDC_SLIDER5));

  001de	68 0c 07 00 00	 push	 1804			; 0000070cH
  001e3	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  001e6	50		 push	 eax
  001e7	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  001ed	50		 push	 eax
  001ee	6a 07		 push	 7
  001f0	68 05 80 00 00	 push	 32773			; 00008005H
  001f5	e8 00 00 00 00	 call	 ?Setting_SetupSlider@@YAXJJPAUHWND__@@@Z ; Setting_SetupSlider
  001fa	83 c4 0c	 add	 esp, 12			; 0000000cH

; 65   :             Setting_SetupSlider(WM_OTHER_GETVALUE, OVERLAYSHARPNESS, GetDlgItem(hDlg, IDC_SLIDER6));

  001fd	68 0d 07 00 00	 push	 1805			; 0000070dH
  00202	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00205	51		 push	 ecx
  00206	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  0020c	50		 push	 eax
  0020d	6a 08		 push	 8
  0020f	68 05 80 00 00	 push	 32773			; 00008005H
  00214	e8 00 00 00 00	 call	 ?Setting_SetupSlider@@YAXJJPAUHWND__@@@Z ; Setting_SetupSlider
  00219	83 c4 0c	 add	 esp, 12			; 0000000cH

; 66   : 
; 67   :             BOOL bEnable = TUseOverlayControls;

  0021c	8b 15 00 00 00
	00		 mov	 edx, DWORD PTR ?TUseOverlayControls@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4HA
  00222	89 55 fc	 mov	 DWORD PTR _bEnable$142112[ebp], edx

; 68   :             EnableWindow(GetDlgItem(hDlg, IDC_SLIDER1), bEnable);

  00225	8b 45 fc	 mov	 eax, DWORD PTR _bEnable$142112[ebp]
  00228	50		 push	 eax
  00229	68 08 07 00 00	 push	 1800			; 00000708H
  0022e	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00231	51		 push	 ecx
  00232	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00238	50		 push	 eax
  00239	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 69   :             EnableWindow(GetDlgItem(hDlg, IDC_SLIDER2), bEnable);

  0023f	8b 55 fc	 mov	 edx, DWORD PTR _bEnable$142112[ebp]
  00242	52		 push	 edx
  00243	68 09 07 00 00	 push	 1801			; 00000709H
  00248	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  0024b	50		 push	 eax
  0024c	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00252	50		 push	 eax
  00253	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 70   :             EnableWindow(GetDlgItem(hDlg, IDC_SLIDER3), bEnable);

  00259	8b 4d fc	 mov	 ecx, DWORD PTR _bEnable$142112[ebp]
  0025c	51		 push	 ecx
  0025d	68 0a 07 00 00	 push	 1802			; 0000070aH
  00262	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  00265	52		 push	 edx
  00266	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  0026c	50		 push	 eax
  0026d	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 71   :             EnableWindow(GetDlgItem(hDlg, IDC_SLIDER4), bEnable);

  00273	8b 45 fc	 mov	 eax, DWORD PTR _bEnable$142112[ebp]
  00276	50		 push	 eax
  00277	68 0b 07 00 00	 push	 1803			; 0000070bH
  0027c	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  0027f	51		 push	 ecx
  00280	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00286	50		 push	 eax
  00287	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 72   :             EnableWindow(GetDlgItem(hDlg, IDC_SLIDER5), bEnable);

  0028d	8b 55 fc	 mov	 edx, DWORD PTR _bEnable$142112[ebp]
  00290	52		 push	 edx
  00291	68 0c 07 00 00	 push	 1804			; 0000070cH
  00296	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  00299	50		 push	 eax
  0029a	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  002a0	50		 push	 eax
  002a1	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 73   :             EnableWindow(GetDlgItem(hDlg, IDC_SLIDER6), bEnable);

  002a7	8b 4d fc	 mov	 ecx, DWORD PTR _bEnable$142112[ebp]
  002aa	51		 push	 ecx
  002ab	68 0d 07 00 00	 push	 1805			; 0000070dH
  002b0	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  002b3	52		 push	 edx
  002b4	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  002ba	50		 push	 eax
  002bb	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 74   :             EnableWindow(GetDlgItem(hDlg, IDC_DEFAULT), bEnable);

  002c1	8b 45 fc	 mov	 eax, DWORD PTR _bEnable$142112[ebp]
  002c4	50		 push	 eax
  002c5	68 c6 05 00 00	 push	 1478			; 000005c6H
  002ca	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  002cd	51		 push	 ecx
  002ce	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  002d4	50		 push	 eax
  002d5	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 75   :         }
; 76   :         return TRUE;

  002db	b8 01 00 00 00	 mov	 eax, 1
  002e0	e9 c7 05 00 00	 jmp	 $LN25@OverlaySet

; 77   :         break;

  002e5	e9 c0 05 00 00	 jmp	 $LN23@OverlaySet
$LN21@OverlaySet:

; 78   : 
; 79   :     case WM_COMMAND:
; 80   :         switch(LOWORD(wParam))

  002ea	8b 55 10	 mov	 edx, DWORD PTR _wParam$[ebp]
  002ed	81 e2 ff ff 00
	00		 and	 edx, 65535		; 0000ffffH
  002f3	0f b7 c2	 movzx	 eax, dx
  002f6	89 45 f0	 mov	 DWORD PTR tv221[ebp], eax
  002f9	81 7d f0 99 05
	00 00		 cmp	 DWORD PTR tv221[ebp], 1433 ; 00000599H
  00300	7f 1e		 jg	 SHORT $LN27@OverlaySet
  00302	81 7d f0 99 05
	00 00		 cmp	 DWORD PTR tv221[ebp], 1433 ; 00000599H
  00309	0f 84 cf 02 00
	00		 je	 $LN15@OverlaySet
  0030f	83 7d f0 01	 cmp	 DWORD PTR tv221[ebp], 1
  00313	74 1d		 je	 SHORT $LN18@OverlaySet
  00315	83 7d f0 02	 cmp	 DWORD PTR tv221[ebp], 2
  00319	74 3b		 je	 SHORT $LN17@OverlaySet
  0031b	e9 bf 03 00 00	 jmp	 $LN19@OverlaySet
$LN27@OverlaySet:
  00320	81 7d f0 c6 05
	00 00		 cmp	 DWORD PTR tv221[ebp], 1478 ; 000005c6H
  00327	0f 84 d2 00 00
	00		 je	 $LN16@OverlaySet
  0032d	e9 ad 03 00 00	 jmp	 $LN19@OverlaySet
$LN18@OverlaySet:

; 81   :         {
; 82   :         case IDOK:
; 83   :             SettingsMaster->SaveAllSettings(TRUE);

  00332	6a 01		 push	 1
  00334	b9 00 00 00 00	 mov	 ecx, OFFSET ?SettingsMaster@@3V?$SmartPtr@VCSettingsMaster@@@@A ; SettingsMaster
  00339	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSettingsMaster@@@@QBEPAVCSettingsMaster@@XZ ; SmartPtr<CSettingsMaster>::operator->
  0033e	8b c8		 mov	 ecx, eax
  00340	e8 00 00 00 00	 call	 ?SaveAllSettings@CSettingsMaster@@QAEXH@Z ; CSettingsMaster::SaveAllSettings

; 84   :             EndDialog(hDlg, TRUE);

  00345	6a 01		 push	 1
  00347	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  0034a	51		 push	 ecx
  0034b	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EndDialog@8

; 85   :             break;

  00351	e9 89 03 00 00	 jmp	 $LN19@OverlaySet
$LN17@OverlaySet:

; 86   : 
; 87   :         case IDCANCEL:
; 88   :             Setting_SetValue(WM_OTHER_GETVALUE, USEOVERLAYCONTROLS, TUseOverlayControls);

  00356	8b 15 00 00 00
	00		 mov	 edx, DWORD PTR ?TUseOverlayControls@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4HA
  0035c	52		 push	 edx
  0035d	6a 02		 push	 2
  0035f	68 05 80 00 00	 push	 32773			; 00008005H
  00364	e8 00 00 00 00	 call	 ?Setting_SetValue@@YAXJJJ@Z ; Setting_SetValue
  00369	83 c4 0c	 add	 esp, 12			; 0000000cH

; 89   :             Setting_SetValue(WM_OTHER_GETVALUE, OVERLAYBRIGHTNESS, TBrightness);

  0036c	a1 00 00 00 00	 mov	 eax, DWORD PTR ?TBrightness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  00371	50		 push	 eax
  00372	6a 03		 push	 3
  00374	68 05 80 00 00	 push	 32773			; 00008005H
  00379	e8 00 00 00 00	 call	 ?Setting_SetValue@@YAXJJJ@Z ; Setting_SetValue
  0037e	83 c4 0c	 add	 esp, 12			; 0000000cH

; 90   :             Setting_SetValue(WM_OTHER_GETVALUE, OVERLAYCONTRAST, TContrast);

  00381	8b 0d 00 00 00
	00		 mov	 ecx, DWORD PTR ?TContrast@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  00387	51		 push	 ecx
  00388	6a 04		 push	 4
  0038a	68 05 80 00 00	 push	 32773			; 00008005H
  0038f	e8 00 00 00 00	 call	 ?Setting_SetValue@@YAXJJJ@Z ; Setting_SetValue
  00394	83 c4 0c	 add	 esp, 12			; 0000000cH

; 91   :             Setting_SetValue(WM_OTHER_GETVALUE, OVERLAYHUE,THue);

  00397	8b 15 00 00 00
	00		 mov	 edx, DWORD PTR ?THue@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  0039d	52		 push	 edx
  0039e	6a 05		 push	 5
  003a0	68 05 80 00 00	 push	 32773			; 00008005H
  003a5	e8 00 00 00 00	 call	 ?Setting_SetValue@@YAXJJJ@Z ; Setting_SetValue
  003aa	83 c4 0c	 add	 esp, 12			; 0000000cH

; 92   :             Setting_SetValue(WM_OTHER_GETVALUE, OVERLAYSATURATION, TSaturation);

  003ad	a1 00 00 00 00	 mov	 eax, DWORD PTR ?TSaturation@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  003b2	50		 push	 eax
  003b3	6a 06		 push	 6
  003b5	68 05 80 00 00	 push	 32773			; 00008005H
  003ba	e8 00 00 00 00	 call	 ?Setting_SetValue@@YAXJJJ@Z ; Setting_SetValue
  003bf	83 c4 0c	 add	 esp, 12			; 0000000cH

; 93   :             Setting_SetValue(WM_OTHER_GETVALUE, OVERLAYGAMMA, TGamma);

  003c2	8b 0d 00 00 00
	00		 mov	 ecx, DWORD PTR ?TGamma@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  003c8	51		 push	 ecx
  003c9	6a 07		 push	 7
  003cb	68 05 80 00 00	 push	 32773			; 00008005H
  003d0	e8 00 00 00 00	 call	 ?Setting_SetValue@@YAXJJJ@Z ; Setting_SetValue
  003d5	83 c4 0c	 add	 esp, 12			; 0000000cH

; 94   :             Setting_SetValue(WM_OTHER_GETVALUE, OVERLAYSHARPNESS, TSharpness);

  003d8	8b 15 00 00 00
	00		 mov	 edx, DWORD PTR ?TSharpness@?1??OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z@4JA
  003de	52		 push	 edx
  003df	6a 08		 push	 8
  003e1	68 05 80 00 00	 push	 32773			; 00008005H
  003e6	e8 00 00 00 00	 call	 ?Setting_SetValue@@YAXJJJ@Z ; Setting_SetValue
  003eb	83 c4 0c	 add	 esp, 12			; 0000000cH

; 95   :             EndDialog(hDlg, TRUE);

  003ee	6a 01		 push	 1
  003f0	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  003f3	50		 push	 eax
  003f4	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EndDialog@8

; 96   :             break;

  003fa	e9 e0 02 00 00	 jmp	 $LN19@OverlaySet
$LN16@OverlaySet:

; 97   : 
; 98   :         case IDC_DEFAULT:
; 99   :             Setting_SetDefault(WM_OTHER_GETVALUE, OVERLAYBRIGHTNESS);

  003ff	6a 03		 push	 3
  00401	68 05 80 00 00	 push	 32773			; 00008005H
  00406	e8 00 00 00 00	 call	 ?Setting_SetDefault@@YAXJJ@Z ; Setting_SetDefault
  0040b	83 c4 08	 add	 esp, 8

; 100  :             Setting_SetDefault(WM_OTHER_GETVALUE, OVERLAYCONTRAST);

  0040e	6a 04		 push	 4
  00410	68 05 80 00 00	 push	 32773			; 00008005H
  00415	e8 00 00 00 00	 call	 ?Setting_SetDefault@@YAXJJ@Z ; Setting_SetDefault
  0041a	83 c4 08	 add	 esp, 8

; 101  :             Setting_SetDefault(WM_OTHER_GETVALUE, OVERLAYHUE);

  0041d	6a 05		 push	 5
  0041f	68 05 80 00 00	 push	 32773			; 00008005H
  00424	e8 00 00 00 00	 call	 ?Setting_SetDefault@@YAXJJ@Z ; Setting_SetDefault
  00429	83 c4 08	 add	 esp, 8

; 102  :             Setting_SetDefault(WM_OTHER_GETVALUE, OVERLAYSATURATION);

  0042c	6a 06		 push	 6
  0042e	68 05 80 00 00	 push	 32773			; 00008005H
  00433	e8 00 00 00 00	 call	 ?Setting_SetDefault@@YAXJJ@Z ; Setting_SetDefault
  00438	83 c4 08	 add	 esp, 8

; 103  :             Setting_SetDefault(WM_OTHER_GETVALUE, OVERLAYGAMMA);

  0043b	6a 07		 push	 7
  0043d	68 05 80 00 00	 push	 32773			; 00008005H
  00442	e8 00 00 00 00	 call	 ?Setting_SetDefault@@YAXJJ@Z ; Setting_SetDefault
  00447	83 c4 08	 add	 esp, 8

; 104  :             Setting_SetDefault(WM_OTHER_GETVALUE, OVERLAYSHARPNESS);

  0044a	6a 08		 push	 8
  0044c	68 05 80 00 00	 push	 32773			; 00008005H
  00451	e8 00 00 00 00	 call	 ?Setting_SetDefault@@YAXJJ@Z ; Setting_SetDefault
  00456	83 c4 08	 add	 esp, 8

; 105  : 
; 106  :             Setting_SetControlValue(WM_OTHER_GETVALUE, OVERLAYBRIGHTNESS, GetDlgItem(hDlg, IDC_SLIDER1));

  00459	68 08 07 00 00	 push	 1800			; 00000708H
  0045e	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00461	51		 push	 ecx
  00462	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00468	50		 push	 eax
  00469	6a 03		 push	 3
  0046b	68 05 80 00 00	 push	 32773			; 00008005H
  00470	e8 00 00 00 00	 call	 ?Setting_SetControlValue@@YAXJJPAUHWND__@@@Z ; Setting_SetControlValue
  00475	83 c4 0c	 add	 esp, 12			; 0000000cH

; 107  :             Setting_SetControlValue(WM_OTHER_GETVALUE, OVERLAYCONTRAST, GetDlgItem(hDlg, IDC_SLIDER2));

  00478	68 09 07 00 00	 push	 1801			; 00000709H
  0047d	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  00480	52		 push	 edx
  00481	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00487	50		 push	 eax
  00488	6a 04		 push	 4
  0048a	68 05 80 00 00	 push	 32773			; 00008005H
  0048f	e8 00 00 00 00	 call	 ?Setting_SetControlValue@@YAXJJPAUHWND__@@@Z ; Setting_SetControlValue
  00494	83 c4 0c	 add	 esp, 12			; 0000000cH

; 108  :             Setting_SetControlValue(WM_OTHER_GETVALUE, OVERLAYHUE, GetDlgItem(hDlg, IDC_SLIDER3));

  00497	68 0a 07 00 00	 push	 1802			; 0000070aH
  0049c	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  0049f	50		 push	 eax
  004a0	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  004a6	50		 push	 eax
  004a7	6a 05		 push	 5
  004a9	68 05 80 00 00	 push	 32773			; 00008005H
  004ae	e8 00 00 00 00	 call	 ?Setting_SetControlValue@@YAXJJPAUHWND__@@@Z ; Setting_SetControlValue
  004b3	83 c4 0c	 add	 esp, 12			; 0000000cH

; 109  :             Setting_SetControlValue(WM_OTHER_GETVALUE, OVERLAYSATURATION, GetDlgItem(hDlg, IDC_SLIDER4));

  004b6	68 0b 07 00 00	 push	 1803			; 0000070bH
  004bb	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  004be	51		 push	 ecx
  004bf	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  004c5	50		 push	 eax
  004c6	6a 06		 push	 6
  004c8	68 05 80 00 00	 push	 32773			; 00008005H
  004cd	e8 00 00 00 00	 call	 ?Setting_SetControlValue@@YAXJJPAUHWND__@@@Z ; Setting_SetControlValue
  004d2	83 c4 0c	 add	 esp, 12			; 0000000cH

; 110  :             Setting_SetControlValue(WM_OTHER_GETVALUE, OVERLAYGAMMA, GetDlgItem(hDlg, IDC_SLIDER5));

  004d5	68 0c 07 00 00	 push	 1804			; 0000070cH
  004da	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  004dd	52		 push	 edx
  004de	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  004e4	50		 push	 eax
  004e5	6a 07		 push	 7
  004e7	68 05 80 00 00	 push	 32773			; 00008005H
  004ec	e8 00 00 00 00	 call	 ?Setting_SetControlValue@@YAXJJPAUHWND__@@@Z ; Setting_SetControlValue
  004f1	83 c4 0c	 add	 esp, 12			; 0000000cH

; 111  :             Setting_SetControlValue(WM_OTHER_GETVALUE, OVERLAYSHARPNESS, GetDlgItem(hDlg, IDC_SLIDER6));

  004f4	68 0d 07 00 00	 push	 1805			; 0000070dH
  004f9	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  004fc	50		 push	 eax
  004fd	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00503	50		 push	 eax
  00504	6a 08		 push	 8
  00506	68 05 80 00 00	 push	 32773			; 00008005H
  0050b	e8 00 00 00 00	 call	 ?Setting_SetControlValue@@YAXJJPAUHWND__@@@Z ; Setting_SetControlValue
  00510	83 c4 0c	 add	 esp, 12			; 0000000cH

; 112  : 
; 113  :             SetDlgItemInt(hDlg, IDC_D1, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYBRIGHTNESS), TRUE);

  00513	6a 01		 push	 1
  00515	6a 03		 push	 3
  00517	68 05 80 00 00	 push	 32773			; 00008005H
  0051c	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00521	83 c4 08	 add	 esp, 8
  00524	50		 push	 eax
  00525	68 bb 05 00 00	 push	 1467			; 000005bbH
  0052a	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  0052d	51		 push	 ecx
  0052e	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 114  :             SetDlgItemInt(hDlg, IDC_D2, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYCONTRAST), FALSE);

  00534	6a 00		 push	 0
  00536	6a 04		 push	 4
  00538	68 05 80 00 00	 push	 32773			; 00008005H
  0053d	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00542	83 c4 08	 add	 esp, 8
  00545	50		 push	 eax
  00546	68 bc 05 00 00	 push	 1468			; 000005bcH
  0054b	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  0054e	52		 push	 edx
  0054f	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 115  :             SetDlgItemInt(hDlg, IDC_D3, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYHUE), TRUE);

  00555	6a 01		 push	 1
  00557	6a 05		 push	 5
  00559	68 05 80 00 00	 push	 32773			; 00008005H
  0055e	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00563	83 c4 08	 add	 esp, 8
  00566	50		 push	 eax
  00567	68 bd 05 00 00	 push	 1469			; 000005bdH
  0056c	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  0056f	50		 push	 eax
  00570	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 116  :             SetDlgItemInt(hDlg, IDC_D4, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYSATURATION), FALSE);

  00576	6a 00		 push	 0
  00578	6a 06		 push	 6
  0057a	68 05 80 00 00	 push	 32773			; 00008005H
  0057f	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00584	83 c4 08	 add	 esp, 8
  00587	50		 push	 eax
  00588	68 be 05 00 00	 push	 1470			; 000005beH
  0058d	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00590	51		 push	 ecx
  00591	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 117  :             SetDlgItemInt(hDlg, IDC_D5, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYGAMMA), FALSE);

  00597	6a 00		 push	 0
  00599	6a 07		 push	 7
  0059b	68 05 80 00 00	 push	 32773			; 00008005H
  005a0	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  005a5	83 c4 08	 add	 esp, 8
  005a8	50		 push	 eax
  005a9	68 bf 05 00 00	 push	 1471			; 000005bfH
  005ae	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  005b1	52		 push	 edx
  005b2	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 118  :             SetDlgItemInt(hDlg, IDC_D6, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYSHARPNESS), FALSE);

  005b8	6a 00		 push	 0
  005ba	6a 08		 push	 8
  005bc	68 05 80 00 00	 push	 32773			; 00008005H
  005c1	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  005c6	83 c4 08	 add	 esp, 8
  005c9	50		 push	 eax
  005ca	68 c0 05 00 00	 push	 1472			; 000005c0H
  005cf	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  005d2	50		 push	 eax
  005d3	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16

; 119  :             break;

  005d9	e9 01 01 00 00	 jmp	 $LN19@OverlaySet
$LN15@OverlaySet:

; 120  : 
; 121  :         case IDC_OVERLAYSETTINGS_ENABLE:
; 122  :             {
; 123  :                 Setting_SetValue(WM_OTHER_GETVALUE, USEOVERLAYCONTROLS, Button_GetCheck(GetDlgItem(hDlg, IDC_OVERLAYSETTINGS_ENABLE)) == BST_CHECKED);

  005de	6a 00		 push	 0
  005e0	6a 00		 push	 0
  005e2	68 f0 00 00 00	 push	 240			; 000000f0H
  005e7	68 99 05 00 00	 push	 1433			; 00000599H
  005ec	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  005ef	51		 push	 ecx
  005f0	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  005f6	50		 push	 eax
  005f7	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SendMessageW@16
  005fd	83 e8 01	 sub	 eax, 1
  00600	f7 d8		 neg	 eax
  00602	1b c0		 sbb	 eax, eax
  00604	83 c0 01	 add	 eax, 1
  00607	50		 push	 eax
  00608	6a 02		 push	 2
  0060a	68 05 80 00 00	 push	 32773			; 00008005H
  0060f	e8 00 00 00 00	 call	 ?Setting_SetValue@@YAXJJJ@Z ; Setting_SetValue
  00614	83 c4 0c	 add	 esp, 12			; 0000000cH

; 124  : 
; 125  :                 BOOL bEnable = Setting_GetValue(WM_OTHER_GETVALUE, USEOVERLAYCONTROLS);

  00617	6a 02		 push	 2
  00619	68 05 80 00 00	 push	 32773			; 00008005H
  0061e	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00623	83 c4 08	 add	 esp, 8
  00626	89 45 f8	 mov	 DWORD PTR _bEnable$142126[ebp], eax

; 126  :                 EnableWindow(GetDlgItem(hDlg, IDC_SLIDER1), bEnable);

  00629	8b 55 f8	 mov	 edx, DWORD PTR _bEnable$142126[ebp]
  0062c	52		 push	 edx
  0062d	68 08 07 00 00	 push	 1800			; 00000708H
  00632	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  00635	50		 push	 eax
  00636	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  0063c	50		 push	 eax
  0063d	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 127  :                 EnableWindow(GetDlgItem(hDlg, IDC_SLIDER2), bEnable);

  00643	8b 4d f8	 mov	 ecx, DWORD PTR _bEnable$142126[ebp]
  00646	51		 push	 ecx
  00647	68 09 07 00 00	 push	 1801			; 00000709H
  0064c	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  0064f	52		 push	 edx
  00650	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00656	50		 push	 eax
  00657	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 128  :                 EnableWindow(GetDlgItem(hDlg, IDC_SLIDER3), bEnable);

  0065d	8b 45 f8	 mov	 eax, DWORD PTR _bEnable$142126[ebp]
  00660	50		 push	 eax
  00661	68 0a 07 00 00	 push	 1802			; 0000070aH
  00666	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00669	51		 push	 ecx
  0066a	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00670	50		 push	 eax
  00671	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 129  :                 EnableWindow(GetDlgItem(hDlg, IDC_SLIDER4), bEnable);

  00677	8b 55 f8	 mov	 edx, DWORD PTR _bEnable$142126[ebp]
  0067a	52		 push	 edx
  0067b	68 0b 07 00 00	 push	 1803			; 0000070bH
  00680	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  00683	50		 push	 eax
  00684	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  0068a	50		 push	 eax
  0068b	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 130  :                 EnableWindow(GetDlgItem(hDlg, IDC_SLIDER5), bEnable);

  00691	8b 4d f8	 mov	 ecx, DWORD PTR _bEnable$142126[ebp]
  00694	51		 push	 ecx
  00695	68 0c 07 00 00	 push	 1804			; 0000070cH
  0069a	8b 55 08	 mov	 edx, DWORD PTR _hDlg$[ebp]
  0069d	52		 push	 edx
  0069e	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  006a4	50		 push	 eax
  006a5	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 131  :                 EnableWindow(GetDlgItem(hDlg, IDC_SLIDER6), bEnable);

  006ab	8b 45 f8	 mov	 eax, DWORD PTR _bEnable$142126[ebp]
  006ae	50		 push	 eax
  006af	68 0d 07 00 00	 push	 1805			; 0000070dH
  006b4	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  006b7	51		 push	 ecx
  006b8	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  006be	50		 push	 eax
  006bf	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8

; 132  :                 EnableWindow(GetDlgItem(hDlg, IDC_DEFAULT), bEnable);

  006c5	8b 55 f8	 mov	 edx, DWORD PTR _bEnable$142126[ebp]
  006c8	52		 push	 edx
  006c9	68 c6 05 00 00	 push	 1478			; 000005c6H
  006ce	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  006d1	50		 push	 eax
  006d2	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  006d8	50		 push	 eax
  006d9	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__EnableWindow@8
$LN19@OverlaySet:

; 133  :                 }
; 134  :             break;
; 135  : 
; 136  :         default:
; 137  :             break;
; 138  :         }
; 139  :         break;

  006df	e9 c6 01 00 00	 jmp	 $LN23@OverlaySet
$LN13@OverlaySet:

; 140  : 
; 141  :     case WM_VSCROLL:
; 142  :     case WM_HSCROLL:
; 143  :         if((HWND)lParam == GetDlgItem(hDlg, IDC_SLIDER1))

  006e4	68 08 07 00 00	 push	 1800			; 00000708H
  006e9	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  006ec	51		 push	 ecx
  006ed	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  006f3	39 45 14	 cmp	 DWORD PTR _lParam$[ebp], eax
  006f6	75 39		 jne	 SHORT $LN12@OverlaySet

; 144  :         {
; 145  :             Setting_SetFromControl(WM_OTHER_GETVALUE, OVERLAYBRIGHTNESS, (HWND)lParam);

  006f8	8b 55 14	 mov	 edx, DWORD PTR _lParam$[ebp]
  006fb	52		 push	 edx
  006fc	6a 03		 push	 3
  006fe	68 05 80 00 00	 push	 32773			; 00008005H
  00703	e8 00 00 00 00	 call	 ?Setting_SetFromControl@@YAXJJPAUHWND__@@@Z ; Setting_SetFromControl
  00708	83 c4 0c	 add	 esp, 12			; 0000000cH

; 146  :             SetDlgItemInt(hDlg, IDC_D1, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYBRIGHTNESS), TRUE);

  0070b	6a 01		 push	 1
  0070d	6a 03		 push	 3
  0070f	68 05 80 00 00	 push	 32773			; 00008005H
  00714	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00719	83 c4 08	 add	 esp, 8
  0071c	50		 push	 eax
  0071d	68 bb 05 00 00	 push	 1467			; 000005bbH
  00722	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  00725	50		 push	 eax
  00726	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16
  0072c	e9 79 01 00 00	 jmp	 $LN23@OverlaySet
$LN12@OverlaySet:

; 147  :         }
; 148  :         else if((HWND)lParam == GetDlgItem(hDlg, IDC_SLIDER2))

  00731	68 09 07 00 00	 push	 1801			; 00000709H
  00736	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00739	51		 push	 ecx
  0073a	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00740	39 45 14	 cmp	 DWORD PTR _lParam$[ebp], eax
  00743	75 39		 jne	 SHORT $LN10@OverlaySet

; 149  :         {
; 150  :             Setting_SetFromControl(WM_OTHER_GETVALUE, OVERLAYCONTRAST, (HWND)lParam);

  00745	8b 55 14	 mov	 edx, DWORD PTR _lParam$[ebp]
  00748	52		 push	 edx
  00749	6a 04		 push	 4
  0074b	68 05 80 00 00	 push	 32773			; 00008005H
  00750	e8 00 00 00 00	 call	 ?Setting_SetFromControl@@YAXJJPAUHWND__@@@Z ; Setting_SetFromControl
  00755	83 c4 0c	 add	 esp, 12			; 0000000cH

; 151  :             SetDlgItemInt(hDlg, IDC_D2, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYCONTRAST), FALSE);

  00758	6a 00		 push	 0
  0075a	6a 04		 push	 4
  0075c	68 05 80 00 00	 push	 32773			; 00008005H
  00761	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00766	83 c4 08	 add	 esp, 8
  00769	50		 push	 eax
  0076a	68 bc 05 00 00	 push	 1468			; 000005bcH
  0076f	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  00772	50		 push	 eax
  00773	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16
  00779	e9 2c 01 00 00	 jmp	 $LN23@OverlaySet
$LN10@OverlaySet:

; 152  :         }
; 153  :         else if((HWND)lParam == GetDlgItem(hDlg, IDC_SLIDER3))

  0077e	68 0a 07 00 00	 push	 1802			; 0000070aH
  00783	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00786	51		 push	 ecx
  00787	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  0078d	39 45 14	 cmp	 DWORD PTR _lParam$[ebp], eax
  00790	75 39		 jne	 SHORT $LN8@OverlaySet

; 154  :         {
; 155  :             Setting_SetFromControl(WM_OTHER_GETVALUE, OVERLAYHUE, (HWND)lParam);

  00792	8b 55 14	 mov	 edx, DWORD PTR _lParam$[ebp]
  00795	52		 push	 edx
  00796	6a 05		 push	 5
  00798	68 05 80 00 00	 push	 32773			; 00008005H
  0079d	e8 00 00 00 00	 call	 ?Setting_SetFromControl@@YAXJJPAUHWND__@@@Z ; Setting_SetFromControl
  007a2	83 c4 0c	 add	 esp, 12			; 0000000cH

; 156  :             SetDlgItemInt(hDlg, IDC_D3, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYHUE), TRUE);

  007a5	6a 01		 push	 1
  007a7	6a 05		 push	 5
  007a9	68 05 80 00 00	 push	 32773			; 00008005H
  007ae	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  007b3	83 c4 08	 add	 esp, 8
  007b6	50		 push	 eax
  007b7	68 bd 05 00 00	 push	 1469			; 000005bdH
  007bc	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  007bf	50		 push	 eax
  007c0	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16
  007c6	e9 df 00 00 00	 jmp	 $LN23@OverlaySet
$LN8@OverlaySet:

; 157  :         }
; 158  :         else if((HWND)lParam == GetDlgItem(hDlg, IDC_SLIDER4))

  007cb	68 0b 07 00 00	 push	 1803			; 0000070bH
  007d0	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  007d3	51		 push	 ecx
  007d4	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  007da	39 45 14	 cmp	 DWORD PTR _lParam$[ebp], eax
  007dd	75 39		 jne	 SHORT $LN6@OverlaySet

; 159  :         {
; 160  :             Setting_SetFromControl(WM_OTHER_GETVALUE, OVERLAYSATURATION, (HWND)lParam);

  007df	8b 55 14	 mov	 edx, DWORD PTR _lParam$[ebp]
  007e2	52		 push	 edx
  007e3	6a 06		 push	 6
  007e5	68 05 80 00 00	 push	 32773			; 00008005H
  007ea	e8 00 00 00 00	 call	 ?Setting_SetFromControl@@YAXJJPAUHWND__@@@Z ; Setting_SetFromControl
  007ef	83 c4 0c	 add	 esp, 12			; 0000000cH

; 161  :             SetDlgItemInt(hDlg, IDC_D4, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYSATURATION), FALSE);

  007f2	6a 00		 push	 0
  007f4	6a 06		 push	 6
  007f6	68 05 80 00 00	 push	 32773			; 00008005H
  007fb	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00800	83 c4 08	 add	 esp, 8
  00803	50		 push	 eax
  00804	68 be 05 00 00	 push	 1470			; 000005beH
  00809	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  0080c	50		 push	 eax
  0080d	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16
  00813	e9 92 00 00 00	 jmp	 $LN23@OverlaySet
$LN6@OverlaySet:

; 162  :         }
; 163  :         else if((HWND)lParam == GetDlgItem(hDlg, IDC_SLIDER5))

  00818	68 0c 07 00 00	 push	 1804			; 0000070cH
  0081d	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  00820	51		 push	 ecx
  00821	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00827	39 45 14	 cmp	 DWORD PTR _lParam$[ebp], eax
  0082a	75 36		 jne	 SHORT $LN4@OverlaySet

; 164  :         {
; 165  :             Setting_SetFromControl(WM_OTHER_GETVALUE, OVERLAYGAMMA, (HWND)lParam);

  0082c	8b 55 14	 mov	 edx, DWORD PTR _lParam$[ebp]
  0082f	52		 push	 edx
  00830	6a 07		 push	 7
  00832	68 05 80 00 00	 push	 32773			; 00008005H
  00837	e8 00 00 00 00	 call	 ?Setting_SetFromControl@@YAXJJPAUHWND__@@@Z ; Setting_SetFromControl
  0083c	83 c4 0c	 add	 esp, 12			; 0000000cH

; 166  :             SetDlgItemInt(hDlg, IDC_D5, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYGAMMA), FALSE);

  0083f	6a 00		 push	 0
  00841	6a 07		 push	 7
  00843	68 05 80 00 00	 push	 32773			; 00008005H
  00848	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  0084d	83 c4 08	 add	 esp, 8
  00850	50		 push	 eax
  00851	68 bf 05 00 00	 push	 1471			; 000005bfH
  00856	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  00859	50		 push	 eax
  0085a	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16
  00860	eb 48		 jmp	 SHORT $LN23@OverlaySet
$LN4@OverlaySet:

; 167  :         }
; 168  :         else if((HWND)lParam == GetDlgItem(hDlg, IDC_SLIDER6))

  00862	68 0d 07 00 00	 push	 1805			; 0000070dH
  00867	8b 4d 08	 mov	 ecx, DWORD PTR _hDlg$[ebp]
  0086a	51		 push	 ecx
  0086b	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__GetDlgItem@8
  00871	39 45 14	 cmp	 DWORD PTR _lParam$[ebp], eax
  00874	75 34		 jne	 SHORT $LN23@OverlaySet

; 169  :         {
; 170  :             Setting_SetFromControl(WM_OTHER_GETVALUE, OVERLAYSHARPNESS, (HWND)lParam);

  00876	8b 55 14	 mov	 edx, DWORD PTR _lParam$[ebp]
  00879	52		 push	 edx
  0087a	6a 08		 push	 8
  0087c	68 05 80 00 00	 push	 32773			; 00008005H
  00881	e8 00 00 00 00	 call	 ?Setting_SetFromControl@@YAXJJPAUHWND__@@@Z ; Setting_SetFromControl
  00886	83 c4 0c	 add	 esp, 12			; 0000000cH

; 171  :             SetDlgItemInt(hDlg, IDC_D6, Setting_GetValue(WM_OTHER_GETVALUE, OVERLAYSHARPNESS), FALSE);

  00889	6a 00		 push	 0
  0088b	6a 08		 push	 8
  0088d	68 05 80 00 00	 push	 32773			; 00008005H
  00892	e8 00 00 00 00	 call	 ?Setting_GetValue@@YAJJJ@Z ; Setting_GetValue
  00897	83 c4 08	 add	 esp, 8
  0089a	50		 push	 eax
  0089b	68 c0 05 00 00	 push	 1472			; 000005c0H
  008a0	8b 45 08	 mov	 eax, DWORD PTR _hDlg$[ebp]
  008a3	50		 push	 eax
  008a4	ff 15 00 00 00
	00		 call	 DWORD PTR __imp__SetDlgItemInt@16
$LN23@OverlaySet:

; 172  :         }
; 173  :         break;
; 174  :     default:
; 175  :         break;
; 176  :     }
; 177  :     return (FALSE);

  008aa	33 c0		 xor	 eax, eax
$LN25@OverlaySet:

; 178  : }

  008ac	8b e5		 mov	 esp, ebp
  008ae	5d		 pop	 ebp
  008af	c2 10 00	 ret	 16			; 00000010H
  008b2	8b ff		 npad	 2
$LN28@OverlaySet:
  008b4	00 00 00 00	 DD	 $LN22@OverlaySet
  008b8	00 00 00 00	 DD	 $LN21@OverlaySet
  008bc	00 00 00 00	 DD	 $LN23@OverlaySet
  008c0	00 00 00 00	 DD	 $LN23@OverlaySet
  008c4	00 00 00 00	 DD	 $LN13@OverlaySet
  008c8	00 00 00 00	 DD	 $LN13@OverlaySet
?OverlaySettingProc@@YGHPAUHWND__@@IIJ@Z ENDP		; OverlaySettingProc
END
