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

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x4183a0]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
mov ebx, dword [esp + 0x2ec]
push ebp
push esi
mov esi, dword [esp + 0x2ec]
push edi
lea ecx, [esp + 0x14]
call fcn.00403000
push 0x4c
xor ebp, ebp
lea eax, [esp + 0x7c]
push ebp
push eax
call fcn.00404290
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
add esp, 0xc
push 0x6b
push esi
mov dword [esp + 0x74], str.MY_WINDOWS_CLASS
mov dword [esp + 0x4c], 0x30
mov dword [esp + 0x50], 0x23
mov dword [esp + 0x54], 0x401210
mov dword [esp + 0x60], esi
call edi
push 0x6b
push esi
mov dword [esp + 0x64], eax
call edi
push 0x7f00
push ebp
mov dword [esp + 0x78], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x4015ae
push ebp
push esi
push ebp
push ebp
push 0x1e0
push 0x280
push ebp
push ebp
push 0x8000000
push str.Vari_Brightness_Monitor
push str.MY_WINDOWS_CLASS
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebp
mov dword [0x419648], eax
je 0x4015ae
push 0x104
lea edx, [esp + 0x1e8]
push edx
push ebx
call fcn.00401140
add esp, 0xc
test eax, eax
je 0x4015ae
lea eax, [esp + 0x1e4]
push eax
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x4015c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00401430
mov eax, 0x80004005
jmp 0x40181e
lea ecx, [esp + 0x1e4]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x4015ae
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call fcn.00401000
push 0x9c
lea edx, [esp + 0x14c]
push ebp
push edx
call fcn.00404290
add esp, 0xc
push ebp
lea eax, [esp + 0x14c]
push eax
push 0xffffffffffffffff
push ebp
mov word [esp + 0x17c], 0x9c
call dword [sym.imp.USER32.dll_EnumDisplaySettingsExA]
push pe_nt_image_headers32
call fcn.00403e5d
add esp, 4
cmp eax, ebp
je 0x401649
mov ecx, eax
call fcn.00401840
jmp 0x40164b
xor eax, eax
mov ecx, dword [esp + 0x1b0]
mov edx, dword [esp + 0x1b8]
push ecx
mov ecx, dword [esp + 0x1b8]
push edx
push ecx
mov ecx, eax
mov dword [0x419644], eax
call fcn.00401960
push ebp
lea ecx, [esp + 0x18]
call fcn.004011d0
mov edx, dword [eax]
mov edx, dword [edx + 4]
push 0x4c
lea ecx, [esp + 0x7c]
push ecx
push ebp
push ebp
push ebp
push 0xc00026
mov ecx, eax
call edx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push ebp
push 0xff
mov ebx, eax
push ebp
lea eax, [esp + 0x1c]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov edi, eax
call esi
mov esi, eax
sub esi, ebx
test edi, edi
je 0x4017f4
nop
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
call ebx
test eax, eax
je 0x401710
lea esp, [esp]
cmp dword [esp + 0x2c], 0x12
je 0x401710
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
call ebx
test eax, eax
jne 0x4016e0
cmp edi, 0x102
je 0x401723
cmp esi, ebp
jae 0x401723
sub ebp, esi
jmp 0x4017c3
push 0x84
lea edx, [esp + 0xc8]
push 0
push edx
call fcn.00404290
mov ecx, dword [0x419644]
add esp, 0xc
call fcn.00401bc0
mov ecx, dword [0x419644]
mov dword [esp + 0xc4], 1
mov eax, dword [ecx + 0xec]
imul eax, eax, 0x64
xor edx, edx
div dword [ecx + 0x10]
xor edx, edx
mov esi, eax
mov eax, 0x20
div dword [ecx + 0xf4]
xor edx, edx
mov ecx, eax
mov eax, esi
div ecx
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401795
mov edx, dword [esp + 0x1c]
sub edx, eax
sar edx, 2
jne 0x40179e
call fcn.00403e34
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0
push 0
push 0x84
lea edx, [esp + 0xd0]
push edx
push 0
push 0xc00027
call eax
mov ebp, dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0xff
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 1
mov ebx, eax
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, ebx
test edi, edi
jne 0x4016c0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x58]
push eax
push str.MY_WINDOWS_CLASS
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x14]
call fcn.00401430
mov eax, esi
mov ecx, dword [esp + 0x2e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403c37
add esp, 0x2dc
ret 0x10