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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rdi, rdx
mov r14, rcx
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140016790
cmp eax, 0x104
jae 0x1400167a5
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x140016460
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.140004a30
nop
mov r8d, 0xc
lea rdx, str._version.dll
lea rcx, [rsp + 0x60]
call fcn.140004d50
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rsi, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400167b2
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14001652d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016528
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400167e7
call fcn.140017cec
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140016583
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001657e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400167ed
call fcn.140017cec
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1400167f3
lea rdx, str.GetFileVersionInfoW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
je 0x140016813
lea rdx, str.VerQueryValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x140016833
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400165f8
mov rcx, qword [rdi]
xor edx, edx
call rsi
mov r15d, eax
test eax, eax
jne 0x140016628
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140016853
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x714
jne 0x14001673c
jmp 0x140016853
mov rcx, r15
call fcn.140017fb8
mov rsi, rax
mov qword [rsp + 0x28], rax
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140016645
mov rcx, qword [rdi]
mov r9, rsi
mov r8d, r15d
xor edx, edx
call r13
test eax, eax
je 0x14001670c
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rdx, [0x14003df14]
mov rcx, rsi
call r12
test eax, eax
je 0x14001676b
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14001676b
cmp dword [rsp + 0x20], 0x34
jne 0x14001676b
cmp dword [rax], 0xfeef04bd
jne 0x14001676b
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
mov rcx, rsi
call fcn.140017cec
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, r14
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140017c90
lea r11, [rsp + 0x2e0]
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, rdi
lea rdx, str.GetFileVersionInfoW_failed_on
lea rcx, [rbp - 0x80]
call fcn.1400176e0
nop
mov rcx, rax
call fcn.140004710
mov rcx, rax
mov edx, ebx
call fcn.140017b40
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, rdi
lea rdx, str.GetFileVersionInfoSizeW_failed_on
lea rcx, [rbp - 0x80]
call fcn.1400176e0
nop
mov rcx, rax
call fcn.140004710
mov rcx, rax
mov edx, ebx
call fcn.140017b40
nop
mov r8, rdi
lea rdx, str.VerQueryValueW_failed_on
lea rcx, [rbp - 0x80]
call fcn.1400176e0
nop
mov rcx, rax
call fcn.140004710
mov rcx, rax
call fcn.140017ad0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSystemDirectory_failed
call fcn.140017b40
int3
lea rcx, str.GetSystemDirectory:_path_is_longer_than_MAX_PATH
call fcn.140017ad0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.140004720
nop
mov r8, rax
lea rcx, [rbp - 0x80]
call fcn.140007450
nop
mov rcx, rax
call fcn.140004710
mov rcx, rax
mov edx, ebx
call fcn.140017b40
nop
call fcn.14001e704
nop
call fcn.14001e704
int3
lea rdx, str.GetFileVersionInfoSizeW
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.1400149c0
lea rcx, str.GetFileVersionInfoSizeW_is_missing
call fcn.140017ad0
int3
lea rdx, str.GetFileVersionInfoW
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.1400149c0
lea rcx, str.GetFileVersionInfoW_is_missing
call fcn.140017ad0
int3
lea rdx, str.VerQueryValueW
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.1400149c0
lea rcx, str.VerQueryValueW_is_missing
call fcn.140017ad0
int3
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.140016880
lea rdx, [0x140043798]
lea rcx, [rsp + 0x28]
call fcn.14001a240
int3