Function at 0x14016c9f8
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 - 0x258]
sub rsp, 0x320
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov byte [rsp + 0x40], dil
mov edx, 0x104
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.14004a9e4
nop
mov rdx, qword [rsi + 0xf8]
lea rcx, [rsp + 0x70]
call fcn.14004a9e4
mov dword [rsp + 0x30], 0x4000000
mov byte [rsp + 0x28], dil
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1401c5ecc
nop
lea rcx, [rsp + 0x70]
call fcn.14004b500
nop
lea rcx, [rbp - 0x70]
call fcn.14004b500
lea r15, [0x14030cae0]
or r13, 0xffffffffffffffff
cmp byte [rsp + 0x40], dil
je 0x14016cb78
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x14016cb78
lea rax, str.Reading_from_the_registry_the_install_location_of_TelLib.dll_failed
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 0x88
cmp qword [rbx + 0x18], 8
jb 0x14016caf5
mov rbx, qword [rbx]
mov rcx, r15
mov rax, rdi
test rbx, rbx
je 0x14016cb0f
mov rcx, rbx
mov rax, r13
inc rax
cmp word [rbx + rax*2], di
jne 0x14016cb06
mov qword [rbp - 0x20], rcx
lea eax, [rax*2 + 2]
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x14], edi
mov rcx, qword [rsi + 0xf8]
mov rdx, r15
mov rax, rdi
test rcx, rcx
je 0x14016cb41
mov rdx, rcx
mov rax, r13
inc rax
cmp word [rcx + rax*2], di
jne 0x14016cb38
mov qword [rbp - 0x10], rdx
lea eax, [rax*2 + 2]
mov dword [rbp - 8], eax
mov dword [rbp - 4], edi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140397725]
mov rcx, r10
call fcn.140001158
mov r8d, 1
lea rdx, [0x14030f790]
lea rcx, [rsp + 0x50]
call fcn.14005b1c8
mov rdx, qword [rsi + 0xf0]
mov r8, r13
inc r8
cmp word [rdx + r8*2], di
jne 0x14016cb99
mov rcx, rax
call fcn.14005b1c8
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140061d90
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
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 0x14016cbff
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 0x14016ccdb
call fcn.140298678
mov r14, qword [rsi + 0x100]
test r14, r14
jne 0x14016ccdb
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 + 0x44], ecx
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x14016ccd2
lea rax, [rsp + 0x44]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 4
lea rax, str.Failed_to_load_TelLib.dll_module
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], reloc.Cabinet.dll_Compress
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov rax, rdi
test rcx, rcx
je 0x14016cc9b
mov r15, rcx
mov rax, r13
inc rax
cmp word [rcx + rax*2], di
jne 0x14016cc92
mov qword [rbp - 0x10], r15
lea eax, [rax*2 + 2]
mov dword [rbp - 8], eax
mov dword [rbp - 4], edi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403977b0]
mov rcx, r10
call fcn.140001158
mov edi, dword [rsp + 0x44]
jmp 0x14016ce3b
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 + 0x50]
call fcn.14004b500
mov eax, edi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret