Function at 0x408193
Capabilities:
Link many functions at runtime

Disassembly:
push 0x18
mov eax, 0x44575f
call fcn.0042e447
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
push str._ScheduleService__CScheduleWnd__CreateTimer__Entry
inc ebx
push ebx
call fcn.0040c81a
mov esi, dword [ebp + 8]
pop ecx
pop ecx
test esi, esi
jl 0x40842f
cmp esi, 4
jle 0x4083f7
cmp esi, 5
je 0x4083bd
cmp esi, 6
jne 0x40842f
cmp dword [edi + 0x8c], 0
je 0x40837e
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 0x40837e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerGetActiveScheme
push ebx
call esi
test eax, eax
je 0x40837e
lea ecx, [ebp + 8]
push ecx
push 0
call eax
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.dll_GetSystemPowerStatus
and dword [ebp - 0x14], 0
cmp byte [ebp - 0x24], 0
jne 0x4082dd
push str.PowerReadDCValueIndex
push ebx
call esi
mov ebx, 0x4515c0
mov edi, 0x4515b0
test eax, eax
je 0x408271
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x408264
cmp dword [ebp - 0x14], eax
jne 0x408271
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x9c], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x9c], 0
je 0x40837b
push str.PowerWriteDCValueIndex
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x40837b
push 1
push ebx
push edi
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x40837b
push str.PowerSetActiveScheme
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x4082d3
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x4082c9
push str._ScheduleService__CScheduleWnd__CreateTimer__DC_wakeup_Enable_OK_
jmp 0x408372
push str._ScheduleService__CScheduleWnd__CreateTimer__PowerSetActiveScheme_Fail_
jmp 0x408372
push str._ScheduleService__CScheduleWnd__CreateTimer__DC_wakeup_Enable_Fail_
jmp 0x408372
cmp byte [ebp - 0x24], 1
jne 0x40837e
push str.PowerReadACValueIndex
push ebx
call esi
mov ebx, 0x4515c0
mov edi, 0x4515b0
test eax, eax
je 0x408320
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x408313
cmp dword [ebp - 0x14], eax
jne 0x408320
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x9c], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x9c], 0
je 0x40837b
push str.PowerWriteACValueIndex
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x40837b
push 1
push ebx
push edi
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x40837b
push str.PowerSetActiveScheme
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x40836d
push dword [ebp + 8]
push 0
call eax
test eax, eax
jne 0x4082c9
push str._ScheduleService__CScheduleWnd__CreateTimer__AC_wakeup_Enable_OK_
jmp 0x408372
push str._ScheduleService__CScheduleWnd__CreateTimer__AC_wakeup_Enable_Fail_
push 1
call fcn.0040c81a
pop ecx
pop ecx
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x40838b
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [edi + 0x6c], 0
push 0x2c
call fcn.00413834
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4083b6
push dword [edi + 0x20]
mov ecx, eax
push dword [ebp + 0xc]
push 6
call fcn.004136ab
jmp 0x4083b8
xor eax, eax
mov dword [edi + 0x6c], eax
jmp 0x40842f
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x4083c9
mov eax, dword [ecx]
push ebx
call dword [eax]
and dword [edi + 0x74], 0
push 0x2c
call fcn.00413834
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x4083f0
push dword [edi + 0x20]
mov ecx, eax
push dword [ebp + 0xc]
push 5
call fcn.004136ab
jmp 0x4083f2
xor eax, eax
mov dword [edi + 0x74], eax
jmp 0x40842f
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x408403
mov eax, dword [ecx]
push ebx
call dword [eax]
and dword [edi + 0x70], 0
push 0x2c
call fcn.00413834
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x40842a
push dword [edi + 0x20]
mov ecx, eax
push dword [ebp + 0xc]
push esi
call fcn.004136ab
jmp 0x40842c
xor eax, eax
mov dword [edi + 0x70], eax
call fcn.0042e51f
ret 8