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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ae522
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x100de514]
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 0x100406e0
mov eax, 1
jmp 0x1004095d
cmp dword [ebx + 0x14], 0
jne 0x10040953
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100805f0
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.100805f0
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 0x10040767
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x14], eax
jmp 0x1004084f
call fcn.100607f0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004084f
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 0x100b5ad0
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.100607f0
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 0x100ba24c
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 0x10040953
call fcn.100607f0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004094f
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 0x100b5ad0
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.100607f0
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 0x100ba258
push esi
mov byte [ebp - 4], 5
call fcn.10006c50
add esp, 8
mov ecx, esi
push ebx
call fcn.100112d0
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 0x1004095d
mov ecx, ebx
call fcn.10040980
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.1007590b
mov esp, ebp
pop ebp
ret