Function at 0x10040e20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aed82
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x100df514]
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
mov ebx, ecx
cmp dword [ebx + 8], 0
je 0x10040e60
mov eax, 1
jmp 0x100410dd
cmp dword [ebx + 0x14], 0
jne 0x100410d3
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10080db0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10080db0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.PowrProf.dll
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10040ee7
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x14], eax
jmp 0x10040fcf
call fcn.10060f90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10040fcf
push 0x85
push str.d:jenkins.jenkinsworkspacemaster_lu_benchmark_suite_benchmark_suite_aimarkbenchmarksuite_benchmarksuitehelperpowrcfgwrapper.cpp
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.1000eb90
push 3
push 0x100b6af0
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.1000eb90
mov byte [ebp - 4], 1
call fcn.10060f90
mov edi, eax
lea ecx, [ebp - 0x518]
push 0x8a
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.100087f0
mov esi, eax
push 0x100bb2bc
push esi
mov byte [ebp - 4], 2
call fcn.10009970
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x518]
call fcn.10009b90
lea ecx, [ebp - 0x438]
call fcn.10009280
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.10009280
cmp dword [ebx + 0x14], 0
jne 0x100410d3
call fcn.10060f90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100410cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x85
push str.d:jenkins.jenkinsworkspacemaster_lu_benchmark_suite_benchmark_suite_aimarkbenchmarksuite_benchmarksuitehelperpowrcfgwrapper.cpp
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x470], 0
mov ebx, eax
mov dword [ebp - 0x46c], 0xf
mov byte [ebp - 0x480], 0
call fcn.1000eb90
push 3
push 0x100b6af0
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], 3
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0xf
mov byte [ebp - 0x468], 0
call fcn.1000eb90
mov byte [ebp - 4], 4
call fcn.10060f90
mov edi, eax
lea ecx, [ebp - 0x5b0]
push 0x8f
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.100087f0
mov esi, eax
push 0x100bb2c8
push esi
mov byte [ebp - 4], 5
call fcn.10006c50
add esp, 8
mov ecx, esi
push ebx
call fcn.10011540
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5b0]
call fcn.10009b90
lea ecx, [ebp - 0x468]
call fcn.10009280
lea ecx, [ebp - 0x480]
call fcn.10009280
xor eax, eax
jmp 0x100410dd
mov ecx, ebx
call fcn.10041100
mov dword [ebx + 8], eax
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.100760cb
mov esp, ebp
pop ebp
ret