Function at 0x140018270
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov r13d, ebx
mov dword [rsp + 0x40], ebx
mov edi, ebx
mov r14, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r12d, eax
test eax, eax
jne 0x14001846f
mov rcx, r14
call fcn.140017448
test eax, eax
je 0x1400184fc
mov qword [rsp + 0x30], rbx
lea r12d, [rbx + 1]
mov r8d, r12d
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400184fc
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 0x140018464
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140018464
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
movzx r13d, word [rsp + 0x68]
shl edi, 0x10
or edi, eax
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x140018464
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, r12d
jge 0x1400183b5
add ax, dx
jmp 0x1400183d0
cmp ax, dx
jae 0x1400183cd
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 0x14001841d
add cx, r12w
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x6e], cx
mov word [rsp + 0x70], ax
cmp cx, 0x20
jne 0x14001841d
movzx eax, word [rsp + 0x6a]
add ax, r12w
mov word [rsp + 0x6e], r12w
mov word [rsp + 0x6a], ax
cmp ax, 0xd
jne 0x14001841d
add word [rsp + 0x68], r12w
mov word [rsp + 0x6a], r12w
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 0x140018464
movsd xmm0, qword [rsp + 0x48]
lea rdx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140018464
movzx edi, word [rsp + 0x6a]
movzx eax, word [rsp + 0x6e]
movzx r13d, word [rsp + 0x68]
shl edi, 0x10
or edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400184cf
mov rcx, r12
call fcn.14003c310
mov rsi, rax
test rax, rax
je 0x1400184fc
mov r9, rax
mov r8d, r12d
xor edx, edx
mov rcx, r14
mov r15d, 0x80004005
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400184c7
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 0x1400184c7
mov rax, qword [rsp + 0x60]
mov r15d, ebx
mov r13d, dword [rax + 8]
mov edi, dword [rax + 0xc]
mov rcx, rsi
call fcn.14003c2b8
test r15d, r15d
js 0x1400184fc
mov ebx, r13d
and rbx, 0xffffffffffff0000
movzx eax, r13w
or rbx, rax
mov ecx, edi
shl rbx, 0x10
shr rcx, 0x10
or rbx, rcx
movzx ecx, di
shl rbx, 0x10
or rbx, rcx
mov rax, rbx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret