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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b17d2
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x100e2524]
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 0x10043260
mov eax, 1
jmp 0x100434dd
cmp dword [ebx + 0x14], 0
jne 0x100434d3
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100832e0
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.100832e0
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 0x100432e7
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x14], eax
jmp 0x100433cf
call fcn.10063090
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100433cf
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.1000f000
push 3
push 0x100b9b00
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.1000f000
mov byte [ebp - 4], 1
call fcn.10063090
mov edi, eax
lea ecx, [ebp - 0x518]
push 0x8a
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.10008c30
mov esi, eax
push 0x100bd1bc
push esi
mov byte [ebp - 4], 2
call fcn.10009db0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x518]
call fcn.10009fe0
lea ecx, [ebp - 0x438]
call fcn.100096c0
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.100096c0
cmp dword [ebx + 0x14], 0
jne 0x100434d3
call fcn.10063090
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100434cf
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.1000f000
push 3
push 0x100b9b00
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.1000f000
mov byte [ebp - 4], 4
call fcn.10063090
mov edi, eax
lea ecx, [ebp - 0x5b0]
push 0x8f
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.10008c30
mov esi, eax
push 0x100bd1c8
push esi
mov byte [ebp - 4], 5
call fcn.10007090
add esp, 8
mov ecx, esi
push ebx
call fcn.100119b0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5b0]
call fcn.10009fe0
lea ecx, [ebp - 0x468]
call fcn.100096c0
lea ecx, [ebp - 0x480]
call fcn.100096c0
xor eax, eax
jmp 0x100434dd
mov ecx, ebx
call fcn.10043500
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.1007850b
mov esp, ebp
pop ebp
ret