Function at 0x1401789b8
Capabilities:
Check if file exists
Get common file path
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x330
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov byte [rsp + 0x50], dil
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], di
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.14004d5c4
nop
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], di
mov rdx, qword [rsi + 0xf8]
lea rcx, [rbp - 0x80]
call fcn.14004d5c4
mov dword [rsp + 0x30], 0x4000000
mov byte [rsp + 0x28], dil
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.1401d612c
nop
lea rcx, [rbp - 0x80]
call fcn.14004e0f0
nop
lea rcx, [rbp - 0x60]
call fcn.14004e0f0
lea r15, [0x140344690]
or r13, 0xffffffffffffffff
cmp byte [rsp + 0x50], dil
je 0x140178b57
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x140178b57
lea rax, str.Reading_from_the_registry_the_install_location_of_TelLib.dll_failed
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0x88
cmp qword [rbx + 0x18], 8
jb 0x140178ad4
mov rbx, qword [rbx]
mov rcx, r15
mov rax, rdi
test rbx, rbx
je 0x140178aee
mov rcx, rbx
mov rax, r13
inc rax
cmp word [rbx + rax*2], di
jne 0x140178ae5
mov qword [rbp - 0x10], rcx
lea eax, [rax*2 + 2]
mov dword [rbp - 8], eax
mov dword [rbp - 4], edi
mov rcx, qword [rsi + 0xf8]
mov rdx, r15
mov rax, rdi
test rcx, rcx
je 0x140178b20
mov rdx, rcx
mov rax, r13
inc rax
cmp word [rcx + rax*2], di
jne 0x140178b17
mov qword [rbp], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 8], eax
mov dword [rbp + 0xc], edi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403d9bbf]
mov rcx, r10
call fcn.140001158
mov r8d, 1
lea rdx, [0x140347380]
lea rcx, [rsp + 0x60]
call fcn.14005e1e8
mov rdx, qword [rsi + 0xf0]
mov r8, r13
inc r8
cmp word [rdx + r8*2], di
jne 0x140178b78
mov rcx, rax
call fcn.14005e1e8
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140064f70
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r14, rax
mov r12, qword [rsi + 0x100]
test r12, r12
je 0x140178bde
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rsi + 0x100], r14
test r14, r14
jne 0x140178cba
call fcn.1402b9bb8
mov r14, qword [rsi + 0x100]
test r14, r14
jne 0x140178cba
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x54], ecx
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140178cb1
lea rax, [rsp + 0x54]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 4
lea rax, str.Failed_to_load_TelLib.dll_module
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], reloc.Cabinet.dll_Compress
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov rax, rdi
test rcx, rcx
je 0x140178c7a
mov r15, rcx
mov rax, r13
inc rax
cmp word [rcx + rax*2], di
jne 0x140178c71
mov qword [rbp], r15
lea eax, [rax*2 + 2]
mov dword [rbp + 8], eax
mov dword [rbp + 0xc], edi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403d9b47]
mov rcx, r10
call fcn.140001158
mov edi, dword [rsp + 0x54]
jmp 0x140178e1a
mov rdx, qword [rsi]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0x78], rax
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0x80], rax
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0x88], rax
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0x90], rax
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0x98], rax
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xa0], rax
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xa8], rax
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xb0], rax
mov rdx, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xb8], rax
mov rdx, qword [rsi + 0x48]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xc0], rax
mov rdx, qword [rsi + 0x50]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xc8], rax
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xd0], rax
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xd8], rax
mov rdx, qword [rsi + 0x68]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xe0], rax
mov rdx, qword [rsi + 0x70]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsi + 0xe8], rax
lea rcx, [rsp + 0x60]
call fcn.14004e0f0
mov eax, edi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret