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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009968b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
push 0x26
xor eax, eax
push str.D27CDB6E_AE6D_11cf_96B8_444553540000
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.100089b0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xa0], 0
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::func::GetComPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov byte [esp + 0x98], 2
cmp dword [esp + 0x2c], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10021a2e
push dword [esp + 0x18]
call esi
add esp, 4
xor eax, eax
push str.Kernel32.dll
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, eax
test ebx, ebx
je 0x10021a7a
push str.Wow64DisableWow64FsRedirection
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10021a77
lea ecx, [esp + 0x3c]
push ecx
call eax
push ebx
call edi
mov byte [esp + 0x98], 3
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10021bdb
lea eax, [esp + 0x40]
push eax
call sym.iImportLib.dll_public:_static_class_elex::file::FileVersionInfo____cdecl_elex::file::FileVersionInfo::CreateFileVersionInfo_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov ebx, eax
add esp, 4
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
call sym.iImportLib.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_elex::file::FileVersionInfo::file_version_void_
mov byte [esp + 0x98], 4
test ebx, ebx
je 0x10021ae2
mov eax, dword [ebx]
test eax, eax
je 0x10021adc
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov dword [ebx], 0
push ebx
call esi
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x100b281c
call fcn.10008550
sub esp, 0x18
mov ecx, esp
push 0x100b3ff0
mov byte [esp + 0xcc], 5
call fcn.10008550
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0xd0], 4
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::strings::replace_all_distinct_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___
mov ecx, dword [esp + 0x4c]
add esp, 0x38
lea eax, [esp + 0x58]
push eax
call fcn.1000f9e0
cmp dword [esp + 0x6c], 8
jb 0x10021b4a
push dword [esp + 0x58]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x84], 8
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
jb 0x10021b74
push dword [esp + 0x70]
call esi
add esp, 4
xor eax, eax
mov word [esp + 0x70], ax
mov byte [esp + 0x98], 2
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
call eax
mov ebx, eax
test ebx, ebx
je 0x10021bc5
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push ebx
call eax
test eax, eax
je 0x10021bc2
push dword [esp + 0x3c]
call eax
push ebx
call edi
cmp dword [esp + 0x54], 8
jb 0x10021bd5
push dword [esp + 0x40]
call esi
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x10021c31
mov byte [esp + 0x98], 2
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
call eax
mov ebx, eax
test ebx, ebx
je 0x10021c0f
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push ebx
call eax
test eax, eax
je 0x10021c0c
push dword [esp + 0x3c]
call eax
push ebx
call edi
mov ebx, dword [esp + 0x14]
push 0x100b2814
mov ecx, ebx
call fcn.10008550
cmp dword [esp + 0x54], 8
jb 0x10021c2f
push dword [esp + 0x40]
call esi
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret