Function at 0x111529a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e7acc
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.RestorePowerScheme_n
call fcn.111bd7b0
add esp, 4
push str.PowrProf.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.PowerGetActiveScheme
push edi
mov dword [ebp - 0x448], edi
call esi
push str.PowerSetActiveScheme
push edi
mov dword [ebp - 0x44c], eax
call esi
push str.PowerDeleteScheme
push edi
mov dword [ebp - 0x43c], eax
call esi
push str.PowerEnumerate
push edi
mov dword [ebp - 0x440], eax
call esi
push str.PowerReadFriendlyName
push edi
mov dword [ebp - 0x444], eax
call esi
cmp dword [0x1127ad00], 0
mov dword [ebp - 0x450], eax
je 0x11152d1b
lea ecx, [ebp - 0x438]
call fcn.11143200
push 0
push 0
push 0x2001f
push str.SoftwareNetSupport_LtdClient32
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.11143640
test eax, eax
jne 0x11152c34
push 0x40
lea ecx, [ebp - 0x474]
call fcn.1113c0e0
push 0x40
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
call fcn.1113c0e0
lea eax, [ebp - 0x464]
push eax
push str.OldPowerScheme
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.11143880
test eax, eax
jne 0x11152c16
lea ecx, [ebp - 0x474]
push ecx
push str.ExpectedPowerScheme
lea ecx, [ebp - 0x438]
call fcn.11143880
test eax, eax
jne 0x11152bf6
lea ecx, [ebp - 0x464]
call fcn.1102f630
push eax
lea ecx, [ebp - 0x434]
call fcn.110f0170
mov eax, dword [eax]
mov esi, dword [sym.imp.ole32.dll_IIDFromString]
lea edx, [ebp - 0x430]
push edx
push eax
call esi
mov ebx, dword [sym.imp.MSVCR100.dll_free]
mov edi, eax
mov eax, dword [ebp - 0x434]
push eax
call ebx
add esp, 4
test edi, edi
js 0x11152bf6
lea ecx, [ebp - 0x474]
call fcn.1102f630
push eax
lea ecx, [ebp - 0x454]
call fcn.110f0170
mov eax, dword [eax]
lea ecx, [ebp - 0x420]
push ecx
push eax
call esi
mov edx, dword [ebp - 0x454]
push edx
call ebx
add esp, 4
lea eax, [ebp - 0x434]
push eax
push 0
mov dword [ebp - 0x434], 0
call dword [ebp - 0x44c]
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x11152be7
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.11040d60
add esp, 8
test eax, eax
je 0x11152bc1
lea edx, [ebp - 0x430]
push edx
push 0
call dword [ebp - 0x43c]
lea ecx, [ebp - 0x464]
test eax, eax
je 0x11152bb4
call fcn.1104dac0
push eax
push str.Error__d_restoring_power_scheme__s_n
jmp 0x11152bd2
call fcn.1104dac0
push eax
push str.restored_power_scheme__s_n
jmp 0x11152bd2
lea ecx, [ebp - 0x464]
call fcn.1104dac0
push eax
push str.unexpected_scheme__expected__s__not_restoring_n
call fcn.111bd7b0
mov eax, dword [ebp - 0x434]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [ebp - 0x440]
push str.ExpectedPowerScheme
lea ecx, [ebp - 0x438]
call fcn.11143bc0
push str.OldPowerScheme
lea ecx, [ebp - 0x438]
call fcn.11143bc0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
call fcn.1113cd80
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 1
call fcn.1113cd80
xor ebx, ebx
xor esi, esi
lea edx, [ebp - 0x434]
push edx
push esi
push ebx
push 0x10
push esi
push esi
push esi
call dword [ebp - 0x444]
mov edi, eax
cmp edi, 0xea
jne 0x11152c89
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x11152cf2
lea ecx, [ebp - 0x434]
push ecx
push esi
push ebx
push 0x10
push 0
push 0
push 0
call dword [ebp - 0x444]
mov edi, eax
test edi, edi
jne 0x11152cf2
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x40e]
push eax
mov word [ebp - 0x410], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x410]
push edx
push edi
push edi
push esi
push edi
mov dword [ebp - 0x43c], 0x200
call dword [ebp - 0x450]
test eax, eax
jne 0x11152cf2
lea eax, [ebp - 0x410]
push str._NSL_
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x11152cf2
push esi
push edi
call dword [ebp - 0x440]
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test edi, edi
jne 0x11152d06
inc ebx
jmp 0x11152c36
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0
call fcn.11143c00
mov edi, dword [ebp - 0x448]
test edi, edi
je 0x11152d26
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret