Function at 0x409b20
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x491128]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x409b57
push str.WTSRegisterSessionNotification
push eax
call esi
mov dword [0x4920e0], eax
mov eax, dword [0x491128]
test eax, eax
je 0x409b50
push str.WTSUnRegisterSessionNotification
push eax
call esi
jmp 0x409b52
xor eax, eax
mov dword [0x4920e4], eax
mov ecx, dword [0x492098]
cmp ecx, 6
jbe 0x409b85
mov eax, dword [0x4920e0]
test eax, eax
je 0x409b74
mov eax, dword [0x4920e4]
test eax, eax
jne 0x409b85
push str.Failed_to_load_wtsapi32.dll_or_required_functions
call fcn.00410a60
add esp, 4
xor eax, eax
pop esi
ret
mov eax, dword [0x491130]
test eax, eax
je 0x409e2d
push str.GetActivePwrScheme
push eax
call esi
mov ecx, dword [0x491130]
test ecx, ecx
mov dword [0x4920e8], eax
je 0x409bb9
push str.SetActivePwrScheme
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409bbb
xor eax, eax
test ecx, ecx
mov dword [0x4920ec], eax
je 0x409bd4
push str.ReadProcessorPwrScheme
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409bd6
xor eax, eax
test ecx, ecx
mov dword [0x4920f0], eax
je 0x409bef
push str.WriteProcessorPwrScheme
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409bf1
xor eax, eax
test ecx, ecx
mov dword [0x4920f4], eax
je 0x409c0a
push str.GetCurrentPowerPolicies
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409c0c
xor eax, eax
test ecx, ecx
mov dword [0x4920f8], eax
je 0x409c25
push str.PowerCreateSetting
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409c27
xor eax, eax
test ecx, ecx
mov dword [0x4920fc], eax
je 0x409c40
push str.PowerCreatePossibleSetting
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409c42
xor eax, eax
test ecx, ecx
mov dword [0x492100], eax
je 0x409c5b
push str.PowerWriteFriendlyName
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409c5d
xor eax, eax
test ecx, ecx
mov dword [0x492104], eax
je 0x409c76
push str.PowerWritePossibleFriendlyName
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409c78
xor eax, eax
test ecx, ecx
mov dword [0x492108], eax
je 0x409c91
push str.PowerGetActiveScheme
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409c93
xor eax, eax
test ecx, ecx
mov dword [0x49210c], eax
je 0x409cac
push str.PowerSetActiveScheme
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409cae
xor eax, eax
test ecx, ecx
mov dword [0x492110], eax
je 0x409cc7
push str.PowerReadFriendlyName
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409cc9
xor eax, eax
test ecx, ecx
mov dword [0x492114], eax
je 0x409ce2
push str.PowerWriteACDefaultIndex
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409ce4
xor eax, eax
test ecx, ecx
mov dword [0x492118], eax
je 0x409cfd
push str.PowerWriteDCDefaultIndex
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409cff
xor eax, eax
test ecx, ecx
mov dword [0x49211c], eax
je 0x409d18
push str.PowerWritePossibleValue
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409d1a
xor eax, eax
test ecx, ecx
mov dword [0x492120], eax
je 0x409d33
push str.PowerReadPossibleValue
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409d35
xor eax, eax
test ecx, ecx
mov dword [0x492124], eax
je 0x409d4e
push str.PowerReadACValueIndex
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409d50
xor eax, eax
test ecx, ecx
mov dword [0x492128], eax
je 0x409d69
push str.PowerReadDCValueIndex
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409d6b
xor eax, eax
test ecx, ecx
mov dword [0x49212c], eax
je 0x409d84
push str.PowerReadACDefaultIndex
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409d86
xor eax, eax
test ecx, ecx
mov dword [0x492130], eax
je 0x409d9f
push str.PowerReadDCDefaultIndex
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409da1
xor eax, eax
test ecx, ecx
mov dword [0x492134], eax
je 0x409dba
push str.PowerWriteACValueIndex
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409dbc
xor eax, eax
test ecx, ecx
mov dword [0x492138], eax
je 0x409dd5
push str.PowerWriteDCValueIndex
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409dd7
xor eax, eax
test ecx, ecx
mov dword [0x49213c], eax
je 0x409df0
push str.PowerWriteSettingAttributes
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409df2
xor eax, eax
test ecx, ecx
mov dword [0x492140], eax
je 0x409e0b
push str.PowerEnumerate
push ecx
call esi
mov ecx, dword [0x491130]
jmp 0x409e0d
xor eax, eax
test ecx, ecx
mov dword [0x492144], eax
je 0x409e20
push str.PowerSettingAccessCheck
push ecx
call esi
jmp 0x409e22
xor eax, eax
mov ecx, dword [0x492098]
mov dword [0x492148], eax
mov eax, dword [0x4920e8]
test eax, eax
je 0x409fe6
mov eax, dword [0x4920ec]
test eax, eax
je 0x409fe6
mov eax, dword [0x4920f8]
test eax, eax
je 0x409fe6
cmp ecx, 7
jb 0x409e7c
mov eax, dword [0x4920f0]
test eax, eax
je 0x409e6b
mov eax, dword [0x4920f4]
test eax, eax
jne 0x409e7c
push str.Failed_to_load_powerpof.dll_or_required_functions_for_winxp_and_later
call fcn.00410a60
add esp, 4
xor eax, eax
pop esi
ret
cmp ecx, 8
jb 0x409f7d
mov eax, dword [0x4920fc]
test eax, eax
je 0x409fe6
mov eax, dword [0x492100]
test eax, eax
je 0x409fe6
mov eax, dword [0x492104]
test eax, eax
je 0x409fe6
mov eax, dword [0x492108]
test eax, eax
je 0x409fe6
mov eax, dword [0x49210c]
test eax, eax
je 0x409fe6
mov eax, dword [0x492110]
test eax, eax
je 0x409fe6
mov eax, dword [0x492114]
test eax, eax
je 0x409fe6
mov eax, dword [0x492118]
test eax, eax
je 0x409fe6
mov eax, dword [0x49211c]
test eax, eax
je 0x409fe6
mov eax, dword [0x492120]
test eax, eax
je 0x409fe6
mov eax, dword [0x492124]
test eax, eax
je 0x409fe6
mov eax, dword [0x492128]
test eax, eax
je 0x409fe6
mov eax, dword [0x49212c]
test eax, eax
je 0x409fe6
mov eax, dword [0x492138]
test eax, eax
je 0x409fe6
mov eax, dword [0x49213c]
test eax, eax
je 0x409fe6
mov eax, dword [0x492140]
test eax, eax
je 0x409fe6
mov eax, dword [0x492144]
test eax, eax
je 0x409fe6
mov eax, dword [0x492148]
test eax, eax
je 0x409fe6
mov eax, dword [0x492130]
test eax, eax
je 0x409fe6
mov eax, dword [0x492134]
test eax, eax
je 0x409fe6
mov eax, dword [0x491138]
test eax, eax
je 0x409f9a
push str.OpenVxDHandle
mov ecx, 0x491134
call fcn.00409530
mov dword [0x49214c], eax
mov eax, dword [0x491140]
test eax, eax
je 0x409fdf
push 0x46d560
mov ecx, 0x49113c
call fcn.00409530
push str.CM_Locate_DevNodeA
mov ecx, 0x49113c
mov dword [0x492150], eax
call fcn.00409530
push 0x46d534
mov ecx, 0x49113c
mov dword [0x492154], eax
call fcn.00409530
mov dword [0x492158], eax
mov eax, 1
pop esi
ret
push str.Failed_to_load_powerpof.dll_or_required_functions
call fcn.00410a60
add esp, 4
xor eax, eax
pop esi
ret