Function at 0x40a340
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x49a128]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x40a377
push str.WTSRegisterSessionNotification
push eax
call esi
mov dword [0x49b680], eax
mov eax, dword [0x49a128]
test eax, eax
je 0x40a370
push str.WTSUnRegisterSessionNotification
push eax
call esi
jmp 0x40a372
xor eax, eax
mov dword [0x49b684], eax
mov ecx, dword [0x49b638]
cmp ecx, 6
jbe 0x40a3a5
mov eax, dword [0x49b680]
test eax, eax
je 0x40a394
mov eax, dword [0x49b684]
test eax, eax
jne 0x40a3a5
push str.Failed_to_load_wtsapi32.dll_or_required_functions
call fcn.004113d0
add esp, 4
xor eax, eax
pop esi
ret
mov eax, dword [0x49a130]
test eax, eax
je 0x40a64d
push str.GetActivePwrScheme
push eax
call esi
mov ecx, dword [0x49a130]
test ecx, ecx
mov dword [0x49b688], eax
je 0x40a3d9
push str.SetActivePwrScheme
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a3db
xor eax, eax
test ecx, ecx
mov dword [0x49b68c], eax
je 0x40a3f4
push str.ReadProcessorPwrScheme
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a3f6
xor eax, eax
test ecx, ecx
mov dword [0x49b690], eax
je 0x40a40f
push str.WriteProcessorPwrScheme
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a411
xor eax, eax
test ecx, ecx
mov dword [0x49b694], eax
je 0x40a42a
push str.GetCurrentPowerPolicies
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a42c
xor eax, eax
test ecx, ecx
mov dword [0x49b698], eax
je 0x40a445
push str.PowerCreateSetting
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a447
xor eax, eax
test ecx, ecx
mov dword [0x49b69c], eax
je 0x40a460
push str.PowerCreatePossibleSetting
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a462
xor eax, eax
test ecx, ecx
mov dword [0x49b6a0], eax
je 0x40a47b
push str.PowerWriteFriendlyName
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a47d
xor eax, eax
test ecx, ecx
mov dword [0x49b6a4], eax
je 0x40a496
push str.PowerWritePossibleFriendlyName
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a498
xor eax, eax
test ecx, ecx
mov dword [0x49b6a8], eax
je 0x40a4b1
push str.PowerGetActiveScheme
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a4b3
xor eax, eax
test ecx, ecx
mov dword [0x49b6ac], eax
je 0x40a4cc
push str.PowerSetActiveScheme
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a4ce
xor eax, eax
test ecx, ecx
mov dword [0x49b6b0], eax
je 0x40a4e7
push str.PowerReadFriendlyName
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a4e9
xor eax, eax
test ecx, ecx
mov dword [0x49b6b4], eax
je 0x40a502
push str.PowerWriteACDefaultIndex
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a504
xor eax, eax
test ecx, ecx
mov dword [0x49b6b8], eax
je 0x40a51d
push str.PowerWriteDCDefaultIndex
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a51f
xor eax, eax
test ecx, ecx
mov dword [0x49b6bc], eax
je 0x40a538
push str.PowerWritePossibleValue
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a53a
xor eax, eax
test ecx, ecx
mov dword [0x49b6c0], eax
je 0x40a553
push str.PowerReadPossibleValue
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a555
xor eax, eax
test ecx, ecx
mov dword [0x49b6c4], eax
je 0x40a56e
push str.PowerReadACValueIndex
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a570
xor eax, eax
test ecx, ecx
mov dword [0x49b6c8], eax
je 0x40a589
push str.PowerReadDCValueIndex
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a58b
xor eax, eax
test ecx, ecx
mov dword [0x49b6cc], eax
je 0x40a5a4
push str.PowerReadACDefaultIndex
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a5a6
xor eax, eax
test ecx, ecx
mov dword [0x49b6d0], eax
je 0x40a5bf
push str.PowerReadDCDefaultIndex
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a5c1
xor eax, eax
test ecx, ecx
mov dword [0x49b6d4], eax
je 0x40a5da
push str.PowerWriteACValueIndex
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a5dc
xor eax, eax
test ecx, ecx
mov dword [0x49b6d8], eax
je 0x40a5f5
push str.PowerWriteDCValueIndex
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a5f7
xor eax, eax
test ecx, ecx
mov dword [0x49b6dc], eax
je 0x40a610
push str.PowerWriteSettingAttributes
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a612
xor eax, eax
test ecx, ecx
mov dword [0x49b6e0], eax
je 0x40a62b
push str.PowerEnumerate
push ecx
call esi
mov ecx, dword [0x49a130]
jmp 0x40a62d
xor eax, eax
test ecx, ecx
mov dword [0x49b6e4], eax
je 0x40a640
push str.PowerSettingAccessCheck
push ecx
call esi
jmp 0x40a642
xor eax, eax
mov ecx, dword [0x49b638]
mov dword [0x49b6e8], eax
mov eax, dword [0x49b688]
test eax, eax
je 0x40a806
mov eax, dword [0x49b68c]
test eax, eax
je 0x40a806
mov eax, dword [0x49b698]
test eax, eax
je 0x40a806
cmp ecx, 7
jb 0x40a69c
mov eax, dword [0x49b690]
test eax, eax
je 0x40a68b
mov eax, dword [0x49b694]
test eax, eax
jne 0x40a69c
push str.Failed_to_load_powerpof.dll_or_required_functions_for_winxp_and_later
call fcn.004113d0
add esp, 4
xor eax, eax
pop esi
ret
cmp ecx, 8
jb 0x40a79d
mov eax, dword [0x49b69c]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6a0]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6a4]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6a8]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6ac]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6b0]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6b4]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6b8]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6bc]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6c0]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6c4]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6c8]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6cc]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6d8]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6dc]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6e0]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6e4]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6e8]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6d0]
test eax, eax
je 0x40a806
mov eax, dword [0x49b6d4]
test eax, eax
je 0x40a806
mov eax, dword [0x49a138]
test eax, eax
je 0x40a7ba
push str.OpenVxDHandle
mov ecx, 0x49a134
call fcn.00409dd0
mov dword [0x49b6ec], eax
mov eax, dword [0x49a140]
test eax, eax
je 0x40a7ff
push 0x4757a0
mov ecx, 0x49a13c
call fcn.00409dd0
push str.CM_Locate_DevNodeA
mov ecx, 0x49a13c
mov dword [0x49b6f0], eax
call fcn.00409dd0
push 0x475774
mov ecx, 0x49a13c
mov dword [0x49b6f4], eax
call fcn.00409dd0
mov dword [0x49b6f8], eax
mov eax, 1
pop esi
ret
push str.Failed_to_load_powerpof.dll_or_required_functions
call fcn.004113d0
add esp, 4
xor eax, eax
pop esi
ret