Function at 0x140015e84
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 0x140016111
lea r8, str.kernel32.dll
mov edx, edi
lea rcx, [rbp + 0x30]
call fcn.140001584
test eax, eax
js 0x140016111
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 0x1400160ac
lea rcx, [rbp + 0x30]
call fcn.140017448
test eax, eax
je 0x140016111
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 0x140016111
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 0x1400160a1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1400160a1
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 0x1400160a1
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 0x140015ff8
add ax, dx
jmp 0x140016013
cmp ax, dx
jae 0x140016010
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 0x140016060
add cx, r14w
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x6e], cx
mov word [rsp + 0x70], ax
cmp cx, 0x20
jne 0x140016060
movzx eax, word [rsp + 0x6a]
add ax, r14w
mov word [rsp + 0x6e], r14w
mov word [rsp + 0x6a], ax
cmp ax, 0xd
jne 0x140016060
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 0x1400160a1
movsd xmm0, qword [rsp + 0x48]
lea rdx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1400160a1
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 0x140016109
mov rcx, r14
call fcn.14003c310
mov rsi, rax
test rax, rax
je 0x140016111
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 0x140016101
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 0x140016101
mov rax, qword [rsp + 0x60]
mov r15d, ebx
mov edi, dword [rax + 0xc]
mov rcx, rsi
call fcn.14003c2b8
test r15d, r15d
js 0x140016111
movzx ebx, di
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14003c6c0
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