Function at 0x1400182b8
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 0x1400184b7
mov rcx, r14
call fcn.140017488
test eax, eax
je 0x140018544
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 0x140018544
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 0x1400184ac
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1400184ac
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 0x1400184ac
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 0x1400183fd
add ax, dx
jmp 0x140018418
cmp ax, dx
jae 0x140018415
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 0x140018465
add cx, r12w
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x6e], cx
mov word [rsp + 0x70], ax
cmp cx, 0x20
jne 0x140018465
movzx eax, word [rsp + 0x6a]
add ax, r12w
mov word [rsp + 0x6e], r12w
mov word [rsp + 0x6a], ax
cmp ax, 0xd
jne 0x140018465
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 0x1400184ac
movsd xmm0, qword [rsp + 0x48]
lea rdx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1400184ac
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 0x140018517
mov rcx, r12
call fcn.14003c460
mov rsi, rax
test rax, rax
je 0x140018544
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 0x14001850f
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 0x14001850f
mov rax, qword [rsp + 0x60]
mov r15d, ebx
mov r13d, dword [rax + 8]
mov edi, dword [rax + 0xc]
mov rcx, rsi
call fcn.14003c408
test r15d, r15d
js 0x140018544
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.14003c810
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