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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rdx
mov r14, rcx
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400162ab
cmp eax, 0x104
jae 0x1400162c0
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rsp + 0x78], xmm0
xor ebx, ebx
mov word [rsp + 0x68], bx
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x140015f80
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.140004ad0
nop
mov r8d, 0xc
lea rdx, str._version.dll
lea rcx, [rsp + 0x68]
call fcn.140004e70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
lea r15, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r15, qword [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400162cd
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140016046
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016041
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016302
call fcn.140017530
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bx
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14001609a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016095
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016308
call fcn.140017530
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], bx
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14001630e
lea rdx, str.GetFileVersionInfoW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
je 0x14001632e
lea rdx, str.VerQueryValueW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x14001634e
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001610e
mov rcx, qword [rsi]
xor edx, edx
call rbx
mov r15d, eax
test eax, eax
jne 0x14001613e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14001636e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x714
jne 0x140016257
jmp 0x14001636e
mov rcx, r15
call fcn.1400178ac
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001615b
mov rcx, qword [rsi]
mov r9, rbx
mov r8d, r15d
xor edx, edx
call r13
test eax, eax
je 0x140016227
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rdx, [0x140039af4]
mov rcx, rbx
call r12
test eax, eax
je 0x140016286
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140016286
cmp dword [rsp + 0x20], 0x34
jne 0x140016286
cmp dword [rax], 0xfeef04bd
jne 0x140016286
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r14 + 0x20], xmm0
mov eax, dword [rax + 0x30]
mov dword [r14 + 0x30], eax
test rbx, rbx
je 0x1400161eb
mov rcx, rbx
call fcn.140017530
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, r14
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400174d0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
mov r8, rsi
lea rdx, str.GetFileVersionInfoW_failed_on
lea rcx, [rbp - 0x78]
call fcn.140016fd0
nop
mov rcx, rax
call fcn.1400046f0
mov rcx, rax
mov edx, ebx
call fcn.140017360
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, rsi
lea rdx, str.GetFileVersionInfoSizeW_failed_on
lea rcx, [rbp - 0x78]
call fcn.140016fd0
nop
mov rcx, rax
call fcn.1400046f0
mov rcx, rax
mov edx, ebx
call fcn.140017360
nop
mov r8, rsi
lea rdx, str.VerQueryValueW_failed_on
lea rcx, [rbp - 0x78]
call fcn.140016fd0
nop
mov rcx, rax
call fcn.1400046f0
mov rcx, rax
call fcn.1400172f0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSystemDirectory_failed
call fcn.140017360
int3
lea rcx, str.GetSystemDirectory:_path_is_longer_than_MAX_PATH
call fcn.1400172f0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, r15
lea rcx, [rbp - 0x58]
call fcn.140004700
nop
mov r8, rax
lea rcx, [rbp - 0x78]
call fcn.140007460
nop
mov rcx, rax
call fcn.1400046f0
mov rcx, rax
mov edx, ebx
call fcn.140017360
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
int3
lea rdx, str.GetFileVersionInfoSizeW
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.1400146a0
lea rcx, str.GetFileVersionInfoSizeW_is_missing
call fcn.1400172f0
int3
lea rdx, str.GetFileVersionInfoW
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.1400146a0
lea rcx, str.GetFileVersionInfoW_is_missing
call fcn.1400172f0
int3
lea rdx, str.VerQueryValueW
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.1400146a0
lea rcx, str.VerQueryValueW_is_missing
call fcn.1400172f0
int3
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.1400163a0
lea rdx, [0x1400403b8]
lea rcx, [rsp + 0x28]
call fcn.1400194b0
int3