Function at 0x40a130
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x490128]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x40a167
push str.WTSRegisterSessionNotification
push eax
call esi
mov dword [0x4910e0], eax
mov eax, dword [0x490128]
test eax, eax
je 0x40a160
push str.WTSUnRegisterSessionNotification
push eax
call esi
jmp 0x40a162
xor eax, eax
mov dword [0x4910e4], eax
mov ecx, dword [0x491098]
cmp ecx, 6
jbe 0x40a195
mov eax, dword [0x4910e0]
test eax, eax
je 0x40a184
mov eax, dword [0x4910e4]
test eax, eax
jne 0x40a195
push str.Failed_to_load_wtsapi32.dll_or_required_functions
call fcn.00411050
add esp, 4
xor eax, eax
pop esi
ret
mov eax, dword [0x490130]
test eax, eax
je 0x40a43d
push str.GetActivePwrScheme
push eax
call esi
mov ecx, dword [0x490130]
test ecx, ecx
mov dword [0x4910e8], eax
je 0x40a1c9
push str.SetActivePwrScheme
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a1cb
xor eax, eax
test ecx, ecx
mov dword [0x4910ec], eax
je 0x40a1e4
push str.ReadProcessorPwrScheme
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a1e6
xor eax, eax
test ecx, ecx
mov dword [0x4910f0], eax
je 0x40a1ff
push str.WriteProcessorPwrScheme
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a201
xor eax, eax
test ecx, ecx
mov dword [0x4910f4], eax
je 0x40a21a
push str.GetCurrentPowerPolicies
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a21c
xor eax, eax
test ecx, ecx
mov dword [0x4910f8], eax
je 0x40a235
push str.PowerCreateSetting
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a237
xor eax, eax
test ecx, ecx
mov dword [0x4910fc], eax
je 0x40a250
push str.PowerCreatePossibleSetting
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a252
xor eax, eax
test ecx, ecx
mov dword [0x491100], eax
je 0x40a26b
push str.PowerWriteFriendlyName
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a26d
xor eax, eax
test ecx, ecx
mov dword [0x491104], eax
je 0x40a286
push str.PowerWritePossibleFriendlyName
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a288
xor eax, eax
test ecx, ecx
mov dword [0x491108], eax
je 0x40a2a1
push str.PowerGetActiveScheme
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a2a3
xor eax, eax
test ecx, ecx
mov dword [0x49110c], eax
je 0x40a2bc
push str.PowerSetActiveScheme
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a2be
xor eax, eax
test ecx, ecx
mov dword [0x491110], eax
je 0x40a2d7
push str.PowerReadFriendlyName
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a2d9
xor eax, eax
test ecx, ecx
mov dword [0x491114], eax
je 0x40a2f2
push str.PowerWriteACDefaultIndex
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a2f4
xor eax, eax
test ecx, ecx
mov dword [0x491118], eax
je 0x40a30d
push str.PowerWriteDCDefaultIndex
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a30f
xor eax, eax
test ecx, ecx
mov dword [0x49111c], eax
je 0x40a328
push str.PowerWritePossibleValue
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a32a
xor eax, eax
test ecx, ecx
mov dword [0x491120], eax
je 0x40a343
push str.PowerReadPossibleValue
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a345
xor eax, eax
test ecx, ecx
mov dword [0x491124], eax
je 0x40a35e
push str.PowerReadACValueIndex
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a360
xor eax, eax
test ecx, ecx
mov dword [0x491128], eax
je 0x40a379
push str.PowerReadDCValueIndex
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a37b
xor eax, eax
test ecx, ecx
mov dword [0x49112c], eax
je 0x40a394
push str.PowerReadACDefaultIndex
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a396
xor eax, eax
test ecx, ecx
mov dword [0x491130], eax
je 0x40a3af
push str.PowerReadDCDefaultIndex
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a3b1
xor eax, eax
test ecx, ecx
mov dword [0x491134], eax
je 0x40a3ca
push str.PowerWriteACValueIndex
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a3cc
xor eax, eax
test ecx, ecx
mov dword [0x491138], eax
je 0x40a3e5
push str.PowerWriteDCValueIndex
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a3e7
xor eax, eax
test ecx, ecx
mov dword [0x49113c], eax
je 0x40a400
push str.PowerWriteSettingAttributes
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a402
xor eax, eax
test ecx, ecx
mov dword [0x491140], eax
je 0x40a41b
push str.PowerEnumerate
push ecx
call esi
mov ecx, dword [0x490130]
jmp 0x40a41d
xor eax, eax
test ecx, ecx
mov dword [0x491144], eax
je 0x40a430
push str.PowerSettingAccessCheck
push ecx
call esi
jmp 0x40a432
xor eax, eax
mov ecx, dword [0x491098]
mov dword [0x491148], eax
mov eax, dword [0x4910e8]
test eax, eax
je 0x40a5f6
mov eax, dword [0x4910ec]
test eax, eax
je 0x40a5f6
mov eax, dword [0x4910f8]
test eax, eax
je 0x40a5f6
cmp ecx, 7
jb 0x40a48c
mov eax, dword [0x4910f0]
test eax, eax
je 0x40a47b
mov eax, dword [0x4910f4]
test eax, eax
jne 0x40a48c
push str.Failed_to_load_powerpof.dll_or_required_functions_for_winxp_and_later
call fcn.00411050
add esp, 4
xor eax, eax
pop esi
ret
cmp ecx, 8
jb 0x40a58d
mov eax, dword [0x4910fc]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491100]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491104]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491108]
test eax, eax
je 0x40a5f6
mov eax, dword [0x49110c]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491110]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491114]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491118]
test eax, eax
je 0x40a5f6
mov eax, dword [0x49111c]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491120]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491124]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491128]
test eax, eax
je 0x40a5f6
mov eax, dword [0x49112c]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491138]
test eax, eax
je 0x40a5f6
mov eax, dword [0x49113c]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491140]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491144]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491148]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491130]
test eax, eax
je 0x40a5f6
mov eax, dword [0x491134]
test eax, eax
je 0x40a5f6
mov eax, dword [0x490138]
test eax, eax
je 0x40a5aa
push str.OpenVxDHandle
mov ecx, 0x490134
call fcn.00409b40
mov dword [0x49114c], eax
mov eax, dword [0x490140]
test eax, eax
je 0x40a5ef
push 0x46d728
mov ecx, 0x49013c
call fcn.00409b40
push str.CM_Locate_DevNodeA
mov ecx, 0x49013c
mov dword [0x491150], eax
call fcn.00409b40
push 0x46d6fc
mov ecx, 0x49013c
mov dword [0x491154], eax
call fcn.00409b40
mov dword [0x491158], eax
mov eax, 1
pop esi
ret
push str.Failed_to_load_powerpof.dll_or_required_functions
call fcn.00411050
add esp, 4
xor eax, eax
pop esi
ret