Function at 0x140017154
Capabilities:
Check if file exists
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rdx
mov rdi, rcx
xor r15d, r15d
test rcx, rcx
je 0x1400174a4
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400174a4
mov dword [rsp + 0x44], r15d
lea rdx, [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x1400174a4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov byte [rsp + 0x40], r15b
lea edx, [rax + 1]
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140017ad8
mov rbx, qword [rbp - 0x80]
mov r9, rbx
mov r8d, esi
mov edx, dword [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140017468
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x48], r15d
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140017468
mov rax, qword [rsp + 0x50]
movzx ecx, word [rax + 2]
movzx edx, word [rax]
lea rax, [0x1400afbb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, edx
lea rcx, [rbp - 0x10]
call fcn.140018368
mov qword [rsp + 0x58], r15
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140017468
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140017468
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400172b8
lea rcx, [rbp - 0x68]
call fcn.140006170
nop
mov esi, 1
mov r8d, esi
lea rdx, [0x1400af638]
lea rcx, [rbp - 0x68]
call fcn.14000993c
mov qword [rbp - 0x28], r15
mov r13d, r15d
lea rcx, [rbp - 0x68]
mov rdi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x50]
cmp r14, 8
cmovae rcx, rdi
movsxd r8, r13d
mov qword [rsp + 0x20], rsi
lea r9, [0x1400af638]
mov r12, qword [rbp - 0x58]
mov rdx, r12
call fcn.14000f4a0
mov qword [rsp + 0x68], rax
cmp eax, 0xffffffff
je 0x140017414
and qword [rbp - 0x48], 0
and qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 7
movsxd rdx, r13d
cmp r12, rdx
jb 0x1400174dc
mov ecx, eax
sub ecx, r13d
movsxd r8, ecx
sub r12, rdx
cmp r12, r8
cmovb r8, r12
lea rax, [rbp - 0x68]
cmp r14, 8
cmovae rax, rdi
lea rdx, [rax + rdx*2]
lea rcx, [rbp - 0x48]
call fcn.140006170
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call fcn.140069020
mov word [rbp + r15*2 - 0x28], ax
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1400173ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400173c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400174d6
call fcn.14005cb40
mov r13, qword [rsp + 0x68]
inc r13d
add r15, rsi
cmp r15, 4
jl 0x1400172eb
movzx ecx, word [rbp - 0x28]
shl ecx, 0x10
movzx eax, word [rbp - 0x26]
or ecx, eax
mov rax, qword [rsp + 0x70]
mov dword [rax], ecx
movzx ecx, word [rbp - 0x22]
shl ecx, 0x10
movzx eax, word [rbp - 0x20]
or ecx, eax
mov rax, qword [rsp + 0x78]
mov dword [rax], ecx
mov r14, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x68]
xor r15d, r15d
jmp 0x14001741a
xor r15d, r15d
mov esi, r15d
cmp r14, 8
jb 0x140017455
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14001744d
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400174e2
mov rcx, rdi
call fcn.14005cb40
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
jmp 0x14001746b
mov esi, r15d
test rbx, rbx
je 0x1400174a0
mov rdx, qword [rbp - 0x70]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140017498
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400174d0
mov rcx, rbx
call fcn.14005cb40
mov eax, esi
jmp 0x1400174a6
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x368]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140067514
nop
call fcn.140067514
nop
call fcn.14000f420
nop
call fcn.140067514
int3