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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4a8]
sub rsp, 0x580
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov rbx, rcx
mov r14d, r8d
lea rcx, [rbp + 0x151]
xor r15d, r15d
xor edx, edx
mov r8d, 0x103
mov esi, r9d
mov byte [rbp + 0x150], r15b
call fcn.140009540
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x40], 0x2e
call fcn.140009540
lea rcx, [rbp + 0x262]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x260], r15w
call fcn.140009540
mov r12d, 0x104
lea rcx, [rbp + 0x150]
mov r8d, r12d
mov rdx, rbx
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, str..dll
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400080ac
lea rdx, str..dll
lea rcx, [rbp + 0x150]
mov r8d, r12d
call qword [sym.imp.SHLWAPI.dll_StrCatBuffA]
lea rax, [rbp + 0x260]
or r13, 0xffffffffffffffff
lea r8, [rbp + 0x150]
xor edx, edx
mov ecx, 0xfde9
mov r9d, r13d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov bl, 0xc
test eax, eax
je 0x140008162
lea rdx, [rbp + 0x260]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140008162
test esi, esi
je 0x140008136
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.14000686c
test eax, eax
jne 0x140008162
cmp dword [rsp + 0x34], r15d
jne 0x140008162
test byte [rsp + 0x30], bl
je 0x140008162
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test r14d, r14d
je 0x140008159
test rax, rax
je 0x140008162
mov rcx, rax
call fcn.140007f88
mov rdi, rax
test rdi, rdi
jne 0x1400082b9
mov rcx, qword [0x14001b750]
lea rdx, [rsp + 0x40]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rbp + 0x260]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400081ef
test esi, esi
je 0x1400081cc
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.14000686c
test eax, eax
jne 0x1400081ef
cmp dword [rsp + 0x34], r15d
jne 0x1400081ef
test byte [rsp + 0x30], bl
je 0x1400081ef
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test r14d, r14d
je 0x1400081ef
test rax, rax
je 0x1400081f8
mov rcx, rax
call fcn.140007f88
mov rdi, rax
test rdi, rdi
jne 0x1400082b9
lea rcx, [rsp + 0x40]
call fcn.140007f40
test eax, eax
jne 0x1400082b9
lea rdx, [rbp + 0x260]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140008277
test esi, esi
je 0x140008254
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.14000686c
test eax, eax
jne 0x140008277
cmp dword [rsp + 0x34], r15d
jne 0x140008277
test byte [rsp + 0x30], bl
je 0x140008277
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test r14d, r14d
je 0x140008277
test rax, rax
je 0x14000827c
mov rcx, rax
call fcn.140007f88
mov rdi, rax
test rdi, rdi
jne 0x1400082b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x40]
lea rdx, str.libFullName
mov rcx, r13
mov ebx, eax
call fcn.140002570
lea rdx, [0x140014528]
mov r8d, ebx
mov rcx, r13
call fcn.1400013fc
lea rdx, str.LoadLibraryW_error
mov rcx, r13
call fcn.1400012b0
mov rax, rdi
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140009450
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret