Function at 0x408c49
Capabilities:
Link many functions at runtime

Disassembly:
push 0x18
mov eax, 0x488bd4
call fcn.004583d2
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
push str._ScheduleService__CScheduleWnd__CreateTimer__Entry
inc ebx
push ebx
call fcn.0040dc6a
mov esi, dword [ebp + 8]
pop ecx
pop ecx
test esi, esi
jl 0x408ee6
cmp esi, 4
jle 0x408eae
cmp esi, 5
je 0x408e74
cmp esi, 6
jne 0x408ee6
cmp dword [edi + 0x8c], 0
je 0x408e35
and dword [ebp + 8], 0
push str.PowrProf.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x408e35
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerGetActiveScheme
push ebx
call esi
test eax, eax
je 0x408e35
lea ecx, [ebp + 8]
push ecx
push 0
call eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
and dword [ebp - 0x14], 0
cmp byte [ebp - 0x24], 0
jne 0x408d94
push str.PowerReadDCValueIndex
push ebx
call esi
mov ebx, 0x4a1954
mov edi, 0x4a18b4
test eax, eax
je 0x408d28
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x408d1b
cmp dword [ebp - 0x14], eax
jne 0x408d28
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x9c], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x9c], 0
je 0x408e32
push str.PowerWriteDCValueIndex
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x408e32
push 1
push ebx
push edi
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x408e32
push str.PowerSetActiveScheme
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x408d8a
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x408d80
push str._ScheduleService__CScheduleWnd__CreateTimer__DC_wakeup_Enable_OK_
jmp 0x408e29
push str._ScheduleService__CScheduleWnd__CreateTimer__PowerSetActiveScheme_Fail_
jmp 0x408e29
push str._ScheduleService__CScheduleWnd__CreateTimer__DC_wakeup_Enable_Fail_
jmp 0x408e29
cmp byte [ebp - 0x24], 1
jne 0x408e35
push str.PowerReadACValueIndex
push ebx
call esi
mov ebx, 0x4a1954
mov edi, 0x4a18b4
test eax, eax
je 0x408dd7
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x408dca
cmp dword [ebp - 0x14], eax
jne 0x408dd7
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x9c], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x9c], 0
je 0x408e32
push str.PowerWriteACValueIndex
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x408e32
push 1
push ebx
push edi
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x408e32
push str.PowerSetActiveScheme
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x408e24
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x408d80
push str._ScheduleService__CScheduleWnd__CreateTimer__AC_wakeup_Enable_OK_
jmp 0x408e29
push str._ScheduleService__CScheduleWnd__CreateTimer__AC_wakeup_Enable_Fail_
push 1
call fcn.0040dc6a
pop ecx
pop ecx
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x408e42
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [edi + 0x6c], 0
push 0x2c
call fcn.0041642e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x408e6d
push dword [edi + 0x20]
mov ecx, eax
push dword [ebp + 0xc]
push 6
call fcn.0041629f
jmp 0x408e6f
xor eax, eax
mov dword [edi + 0x6c], eax
jmp 0x408ee6
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x408e80
mov eax, dword [ecx]
push ebx
call dword [eax]
and dword [edi + 0x74], 0
push 0x2c
call fcn.0041642e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x408ea7
push dword [edi + 0x20]
mov ecx, eax
push dword [ebp + 0xc]
push 5
call fcn.0041629f
jmp 0x408ea9
xor eax, eax
mov dword [edi + 0x74], eax
jmp 0x408ee6
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x408eba
mov eax, dword [ecx]
push ebx
call dword [eax]
and dword [edi + 0x70], 0
push 0x2c
call fcn.0041642e
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x408ee1
push dword [edi + 0x20]
mov ecx, eax
push dword [ebp + 0xc]
push esi
call fcn.0041629f
jmp 0x408ee3
xor eax, eax
mov dword [edi + 0x70], eax
call fcn.004584aa
ret 8