Function at 0x1115b5b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e8257
mov eax, dword fs:[0]
push eax
sub esp, 0x708
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.ChangePowerScheme
mov byte [ebp - 0x6b1], 0
call fcn.111bd7b0
add esp, 4
cmp dword [0x1127ad00], 0
je 0x1115bdb5
mov ecx, dword [0x1127aa68]
push 0
push 0
push str.DisablePowerScheme
push str.Client
call fcn.110bbc00
test eax, eax
jne 0x1115bdb5
mov byte [ebp - 0x6ac], al
mov dword [ebp - 0x6ab], eax
mov dword [ebp - 0x6a7], eax
mov word [ebp - 0x6a3], ax
mov byte [ebp - 0x6a1], al
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x1115bdd7
cmp byte [ebp - 0x6ab], 0x80
jae 0x1115bdd7
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 - 0x714], edi
call esi
push str.PowerSetActiveScheme
push edi
mov ebx, eax
call esi
push str.PowerDuplicateScheme
push edi
mov dword [ebp - 0x6cc], eax
call esi
push str.PowerReadDescription
push edi
mov dword [ebp - 0x6c8], eax
call esi
push str.PowerWriteDescription
push edi
mov dword [ebp - 0x6c4], eax
call esi
push str.PowerReadFriendlyName
push edi
mov dword [ebp - 0x6e4], eax
call esi
push str.PowerWriteFriendlyName
push edi
mov dword [ebp - 0x6d4], eax
call esi
push str.PowerWriteACValueIndex
push edi
mov dword [ebp - 0x6e8], eax
call esi
push str.PowerWriteDCValueIndex
push edi
mov dword [ebp - 0x6bc], eax
call esi
push str.PowerReadACValueIndex
push edi
mov dword [ebp - 0x6b8], eax
call esi
push str.PowerReadDCValueIndex
push edi
mov dword [ebp - 0x6e0], eax
call esi
lea ecx, [ebp - 0x6c0]
xor esi, esi
push ecx
push esi
mov dword [ebp - 0x6d0], eax
mov dword [ebp - 0x6c0], esi
call ebx
test eax, eax
jne 0x1115bdaa
mov eax, dword [ebp - 0x6c0]
cmp eax, esi
je 0x1115bdaa
push 0x11247714
push eax
call fcn.11040d60
add esp, 8
test eax, eax
jne 0x1115bd9d
mov ecx, dword [0x1127aa68]
push esi
push 1
mov eax, 0x100
push str.CopyHighPerfPower
push str.Client
mov byte [ebp - 0x6b1], 1
mov dword [ebp - 0x6dc], eax
mov dword [ebp - 0x6d8], eax
call fcn.110bbc00
test eax, eax
jne 0x1115b792
call fcn.11152d50
test al, al
je 0x1115b794
mov al, 1
mov dword [ebp - 0x6b0], esi
test al, al
je 0x1115b929
lea edx, [ebp - 0x6b0]
push edx
push 0x11247714
push esi
call dword [ebp - 0x6c8]
cmp eax, esi
jne 0x1115b929
push str.Copied_High_Perf_scheme_n
call fcn.111bd7b0
mov edx, dword [ebp - 0x6b0]
add esp, 4
lea eax, [ebp - 0x6dc]
push eax
lea ecx, [ebp - 0x510]
push ecx
push esi
push esi
push edx
push esi
call dword [ebp - 0x6c4]
mov edx, dword [ebp - 0x6b0]
lea eax, [ebp - 0x6d8]
push eax
lea ecx, [ebp - 0x310]
push ecx
push esi
push esi
push edx
push esi
call dword [ebp - 0x6d4]
mov ecx, 0x11247744
mov dword [ebp - 0x6f0], esi
mov dword [ebp - 0x6ec], esi
mov dword [ebp - 0x6c8], esi
mov dword [ebp - 0x710], ecx
mov dword [ebp - 0x70c], 0x11247754
mov dword [ebp - 0x708], ecx
mov dword [ebp - 0x704], 0x11247764
mov dword [ebp - 0x700], ecx
mov dword [ebp - 0x6fc], 0x11247774
mov dword [ebp - 0x6f8], ecx
mov dword [ebp - 0x6f4], 0x11247784
xor eax, eax
mov esi, ecx
mov ebx, dword [ebp + eax - 0x70c]
mov ecx, dword [ebp - 0x6c0]
lea eax, [ebp - 0x6c4]
push eax
push ebx
push esi
push ecx
push 0
call dword [ebp - 0x6e0]
test eax, eax
jne 0x1115b89c
mov edx, dword [ebp - 0x6c4]
mov eax, dword [ebp - 0x6b0]
push edx
push ebx
push esi
push eax
push 0
call dword [ebp - 0x6bc]
mov edx, dword [ebp - 0x6c0]
lea ecx, [ebp - 0x6c4]
push ecx
push ebx
push esi
push edx
push 0
call dword [ebp - 0x6d0]
test eax, eax
jne 0x1115b8d0
mov eax, dword [ebp - 0x6c4]
mov ecx, dword [ebp - 0x6b0]
push eax
push ebx
push esi
push ecx
push 0
call dword [ebp - 0x6b8]
mov eax, dword [ebp - 0x6c8]
add eax, 2
mov dword [ebp - 0x6c8], eax
add eax, eax
add eax, eax
mov esi, dword [ebp + eax - 0x710]
test esi, esi
jne 0x1115b861
mov edx, dword [ebp - 0x6b0]
push esi
push 0x112477a4
push 0x11247794
push edx
push esi
call dword [ebp - 0x6b8]
mov eax, dword [ebp - 0x6b0]
push esi
push 0x112477a4
push 0x11247794
push eax
push esi
call dword [ebp - 0x6bc]
jmp 0x1115bb5a
mov edx, dword [ebp - 0x6c0]
lea ecx, [ebp - 0x6b0]
push ecx
push edx
push esi
call dword [ebp - 0x6c8]
cmp eax, esi
jne 0x1115bb5c
cmp dword [ebp - 0x6b0], esi
je 0x1115bd9d
mov edx, dword [ebp - 0x6c0]
lea eax, [ebp - 0x6dc]
push eax
lea ecx, [ebp - 0x510]
push ecx
push esi
push esi
push edx
push esi
call dword [ebp - 0x6c4]
mov edx, dword [ebp - 0x6c0]
lea eax, [ebp - 0x6d8]
push eax
lea ecx, [ebp - 0x310]
push ecx
push esi
push esi
push edx
push esi
call dword [ebp - 0x6d4]
lea eax, [ebp - 0x310]
push eax
push str.Copied_Active_scheme___ls__n
call fcn.111bd7b0
mov ecx, dword [0x1127aa68]
add esp, 8
push esi
push esi
push str.ForceHighPerfPower
push str.Client
call fcn.110bbc00
test eax, eax
je 0x1115baf2
push str.Forced_high_perf_personality_n
call fcn.111bd7b0
mov ecx, dword [ebp - 0x6b0]
add esp, 4
push 1
push 0x11247734
push 0x11247724
push ecx
push esi
mov esi, dword [ebp - 0x6b8]
call esi
mov edx, dword [ebp - 0x6b0]
mov ebx, dword [ebp - 0x6bc]
push 1
push 0x11247734
push 0x11247724
push edx
push 0
call ebx
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x8e]
push ecx
mov word [ebp - 0x90], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x6b0]
add esp, 0xc
push 0x40
lea edx, [ebp - 0x90]
push edx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x90]
push 0x7d
push ecx
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
je 0x1115bafe
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x8e]
push eax
lea ecx, [ebp - 0x6d0]
call fcn.110f0170
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x6a0]
push str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes_s245d8541_3943_4422_b025_13a784f679b7
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x6d0]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x10
lea ecx, [ebp - 0x6bc]
call fcn.11143200
push 0x20006
lea eax, [ebp - 0x6a0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 1
call fcn.111435f0
test eax, eax
jne 0x1115bae1
push 1
push str.ACSettingIndex
lea ecx, [ebp - 0x6bc]
call fcn.11143a80
push 1
push str.DCSettingIndex
lea ecx, [ebp - 0x6bc]
call fcn.11143a80
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.11143c00
jmp 0x1115bafe
mov ebx, dword [ebp - 0x6bc]
mov esi, dword [ebp - 0x6b8]
mov ecx, dword [ebp - 0x6b0]
push 0
push 0x1122a358
push 0x1122a348
push ecx
push 0
call esi
mov edx, dword [ebp - 0x6b0]
push 0
push 0x1122a358
push 0x1122a348
push edx
push 0
call ebx
mov eax, dword [ebp - 0x6b0]
push 0
push 0x112477a4
push 0x11247794
push eax
push 0
call esi
mov ecx, dword [ebp - 0x6b0]
push 0
push 0x112477a4
push 0x11247794
push ecx
push 0
call ebx
xor esi, esi
cmp dword [ebp - 0x6b0], esi
je 0x1115bd9d
lea eax, [ebp - 0x510]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x1115bb71
mov edx, dword [str.__NSL_]
mov ebx, dword [0x112300a0]
mov esi, dword [0x112300a4]
mov cx, word [0x112300a8]
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov word [eax + 0xc], cx
lea eax, [ebp - 0x310]
add eax, 0xfffffffe
jmp 0x1115bbb0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1115bbb0
mov dword [eax], edx
mov dx, word [0x112300a8]
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov word [eax + 0xc], dx
lea eax, [ebp - 0x510]
lea edx, [eax + 2]
jmp 0x1115bbe0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1115bbe0
sub eax, edx
mov edx, dword [ebp - 0x6b0]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x510]
push ecx
push 0
push 0
push edx
push 0
call dword [ebp - 0x6e4]
lea eax, [ebp - 0x310]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1115bc17
sub eax, edx
mov edx, dword [ebp - 0x6b0]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x310]
push ecx
push 0
push 0
push edx
push 0
call dword [ebp - 0x6e8]
mov eax, dword [ebp - 0x6b0]
push eax
push 0
call dword [ebp - 0x6cc]
test eax, eax
je 0x1115bc6c
push eax
push eax
push str.Error__d__x_x__setting_HighPerf_powerscheme_n
call fcn.111bd7b0
add esp, 0xc
jmp 0x1115bd8e
push str.Enabled_HighPerf_power_scheme_n
call fcn.111bd7b0
add esp, 4
lea ecx, [ebp - 0x6b8]
call fcn.11143200
push 0
push 0
push 0x2001f
push str.SoftwareNetSupport_LtdClient32
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x6b8]
mov byte [ebp - 4], 2
call fcn.11143640
test eax, eax
jne 0x1115bd7f
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x8e]
push edx
mov word [ebp - 0x90], cx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x6c0]
mov ebx, dword [sym.imp.ole32.dll_StringFromGUID2]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x90]
push eax
push ecx
call ebx
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x6cc]
call fcn.110f0170
mov eax, dword [eax]
push 1
push eax
push str.OldPowerScheme
lea ecx, [ebp - 0x6b8]
mov byte [ebp - 4], 3
call fcn.11143ad0
mov eax, dword [ebp - 0x6cc]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push eax
call esi
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x10e]
push edx
mov word [ebp - 0x110], cx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x6b0]
add esp, 0x10
push 0x40
lea eax, [ebp - 0x110]
push eax
push ecx
call ebx
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x6cc]
call fcn.110f0170
mov eax, dword [eax]
push 1
push eax
push str.ExpectedPowerScheme
lea ecx, [ebp - 0x6b8]
mov byte [ebp - 4], 4
call fcn.11143ad0
mov eax, dword [ebp - 0x6cc]
push eax
call esi
add esp, 4
lea ecx, [ebp - 0x6b8]
mov byte [ebp - 4], 0
call fcn.11143c00
mov ecx, dword [ebp - 0x6b0]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov edx, dword [ebp - 0x6c0]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x1115bdb5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x6b1]
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
xor al, al
jmp 0x1115bdbb