Function at 0x107e270
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x10a4ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x148]
push ecx
call fcn.01026be0
add esp, 4
movsx edx, byte [ebp + eax - 0x149]
cmp edx, 0x5c
je 0x107e2c5
push 0x109b0f8
lea eax, [ebp - 0x148]
push eax
call fcn.010718d0
add esp, 8
push str.Powrprof.DLL
lea ecx, [ebp - 0x148]
push ecx
call fcn.010718d0
add esp, 8
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10b3400], eax
cmp dword [0x10b3400], 0
je 0x107e4dd
cmp dword [0x10b319c], 5
ja 0x107e3a8
push str.GetActivePwrScheme
mov eax, dword [0x10b3400]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b3418], eax
cmp dword [0x10b3418], 0
jne 0x107e339
push str.__GetProcAddress__GetActivePwrScheme__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
push str.SetActivePwrScheme
mov ecx, dword [0x10b3400]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b341c], eax
cmp dword [0x10b341c], 0
jne 0x107e36e
push str.__GetProcAddress__SetActivePwrScheme__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
push str.GetCurrentPowerPolicies
mov edx, dword [0x10b3400]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b3420], eax
cmp dword [0x10b3420], 0
jne 0x107e3a3
push str.__GetProcAddress__GetCurrentPowerPolicies__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
jmp 0x107e4db
push str.PowerGetActiveScheme
mov eax, dword [0x10b3400]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b3430], eax
cmp dword [0x10b3430], 0
jne 0x107e3dc
push str.__GetProcAddress__PowerGetActiveScheme__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
push str.PowerSetActiveScheme
mov ecx, dword [0x10b3400]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b3434], eax
cmp dword [0x10b3434], 0
jne 0x107e411
push str.__GetProcAddress__PowerSetActiveScheme__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
push str.PowerWriteACValueIndex
mov edx, dword [0x10b3400]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b3438], eax
cmp dword [0x10b3438], 0
jne 0x107e446
push str.__GetProcAddress__PowerWriteACValueIndex__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
push str.PowerWriteDCValueIndex
mov eax, dword [0x10b3400]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b343c], eax
cmp dword [0x10b343c], 0
jne 0x107e477
push str.__GetProcAddress__PowerWriteDCValueIndex__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
push str.PowerReadACValueIndex
mov ecx, dword [0x10b3400]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b3440], eax
cmp dword [0x10b3440], 0
jne 0x107e4a9
push str.__GetProcAddress__PowerReadACValueIndex__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
push str.PowerReadDCValueIndex
mov edx, dword [0x10b3400]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b3444], eax
cmp dword [0x10b3444], 0
jne 0x107e4db
push str.__GetProcAddress__PowerReadDCValueIndex__failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
jmp 0x107e4ef
push str.__LoadLibrary_failure_n
call dword [0x10ba828]
add esp, 4
xor eax, eax
jmp 0x107e4f4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01026ff0
mov esp, ebp
pop ebp
ret