Function at 0x1001c950
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10098ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x1001ca1f
push str.Kernel32.dll
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1001c9d4
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001c9ce
lea ecx, [esp + 0x14]
push ecx
call eax
push dword [esp + 0x10]
call edi
cmp dword [esi + 0x14], 8
jb 0x1001c9de
mov eax, dword [esi]
jmp 0x1001c9e0
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x28], 0xffffffff
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
jne 0x1001ca26
call eax
mov esi, eax
test esi, esi
je 0x1001ca1f
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push esi
call eax
test eax, eax
je 0x1001ca1c
push dword [esp + 0x14]
call eax
push esi
call edi
xor al, al
jmp 0x1001cac6
call eax
mov dword [esp + 0x10], eax
test eax, eax
je 0x1001ca4d
push str.Wow64RevertWow64FsRedirection
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
je 0x1001ca47
push dword [esp + 0x14]
call eax
push dword [esp + 0x10]
call edi
cmp dword [esi + 0x14], 8
jb 0x1001ca57
mov eax, dword [esi]
jmp 0x1001ca59
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1001ca1f
cmp dword [esi + 0x14], 8
jb 0x1001ca6e
mov eax, dword [esi]
jmp 0x1001ca70
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1001ca1f
cmp dword [esi + 0x10], 3
jbe 0x1001ca1f
push esi
mov ecx, ebx
call sym.iImportLib.dll_private:_bool___thiscall_elex::func::CInstPathHelper::CheckRootDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test al, al
jne 0x1001ca1f
push esi
mov ecx, ebx
call sym.iImportLib.dll_private:_bool___thiscall_elex::func::CInstPathHelper::CheckProgramFiles_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test al, al
je 0x1001ca1f
push esi
mov ecx, ebx
call sym.iImportLib.dll_private:_bool___thiscall_elex::func::CInstPathHelper::CheckProgramData_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test al, al
je 0x1001ca1f
push esi
mov ecx, ebx
call sym.iImportLib.dll_private:_bool___thiscall_elex::func::CInstPathHelper::CheckWindowsDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test al, al
je 0x1001ca1f
push esi
mov ecx, ebx
call sym.iImportLib.dll_private:_bool___thiscall_elex::func::CInstPathHelper::CheckUsers_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test al, al
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 4