Function at 0x140015ec4
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x350
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov edi, 0x104
lea rcx, [rbp + 0x30]
mov edx, edi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140016151
lea r8, str.kernel32.dll
mov edx, edi
lea rcx, [rbp + 0x30]
call fcn.140001584
test eax, eax
js 0x140016151
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x30]
mov edi, ebx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
jne 0x1400160ec
lea rcx, [rbp + 0x30]
call fcn.140017488
test eax, eax
je 0x140016151
mov qword [rsp + 0x30], rbx
lea r14d, [rbx + 1]
mov r8d, r14d
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor edx, edx
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140016151
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1400160e1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1400160e1
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xac
call sub.msvcrt.dll_memset
movzx edi, word [rsp + 0x6a]
lea rcx, [rbp - 0x80]
movzx eax, word [rsp + 0x6e]
mov r15d, ebx
shl edi, 0x10
or edi, eax
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x1400160e1
mov r8d, dword [rbp - 0x80]
movzx eax, r8w
neg ax
test r8d, r8d
cmovg ax, r8w
movzx ecx, ax
mov eax, 0x88888889
mul ecx
movzx eax, word [rsp + 0x70]
movzx ecx, word [rsp + 0x6e]
shr edx, 5
cmp r8d, r14d
jge 0x140016038
add ax, dx
jmp 0x140016053
cmp ax, dx
jae 0x140016050
mov r8d, 0xffff
add cx, r8w
mov word [rsp + 0x6e], cx
add ax, 0x18
sub ax, dx
mov word [rsp + 0x70], ax
cmp ax, 0x17
jbe 0x1400160a0
add cx, r14w
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x6e], cx
mov word [rsp + 0x70], ax
cmp cx, 0x20
jne 0x1400160a0
movzx eax, word [rsp + 0x6a]
add ax, r14w
mov word [rsp + 0x6e], r14w
mov word [rsp + 0x6a], ax
cmp ax, 0xd
jne 0x1400160a0
add word [rsp + 0x68], r14w
mov word [rsp + 0x6a], r14w
xorps xmm0, xmm0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
movsd qword [rsp + 0x48], xmm0
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x1400160e1
movsd xmm0, qword [rsp + 0x48]
lea rdx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1400160e1
movzx edi, word [rsp + 0x6a]
movzx eax, word [rsp + 0x6e]
shl edi, 0x10
or edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140016149
mov rcx, r14
call fcn.14003c460
mov rsi, rax
test rax, rax
je 0x140016151
mov r9, rax
lea rcx, [rbp + 0x30]
mov r8d, r14d
xor edx, edx
mov r15d, 0x80004005
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140016141
lea r9, [rsp + 0x50]
mov rcx, rsi
lea r8, [rsp + 0x60]
lea rdx, [0x140042140]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140016141
mov rax, qword [rsp + 0x60]
mov r15d, ebx
mov edi, dword [rax + 0xc]
mov rcx, rsi
call fcn.14003c408
test r15d, r15d
js 0x140016151
movzx ebx, di
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret