Function at 0x140066ac0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x4a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rcx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
lea r14, [rcx + 0x10]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x140066b1a
mov rax, qword [r14]
mov qword [r14 + 0x10], r15
mov word [rax], r15w
lea rcx, [rsp + 0x78]
call fcn.140066984
mov rdx, rax
lea rcx, [rdi + 0x30]
call fcn.140066674
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x38]
lea rdx, [fcn.140066ac0]
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x140066d3b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.140089ff0
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140066d3b
mov dword [rsp + 0x28], r15d
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x80]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x140066d3b
mov edx, esi
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.14000c4b8
nop
mov rbx, qword [rsp + 0x58]
mov r9, rbx
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x80]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140066cf8
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x2c], 8
lea r9, [rsp + 0x2c]
lea r8, [rsp + 0x40]
lea rdx, [0x1400e7f50]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140066cf8
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + 0xa]
mov dword [rdi], eax
movzx eax, word [rcx + 8]
mov dword [rdi + 4], eax
movzx eax, word [rcx + 0xe]
mov dword [rdi + 8], eax
movzx eax, word [rcx + 0xc]
mov dword [rdi + 0xc], eax
mov dword [rsp + 0x24], 8
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x50]
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140066cf8
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x190]
call fcn.140089ff0
mov rdi, r15
mov eax, dword [rsp + 0x24]
mov esi, 1
test rax, 0xfffffffffffffffc
jbe 0x140066cfb
mov rax, qword [rsp + 0x50]
movzx r9d, word [rax + rdi*4 + 2]
movzx r8d, word [rax + rdi*4]
lea rdx, str.StringFileInfo_04x_04xFileDescription
lea rcx, [rbp + 0x190]
call fcn.140066910
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x48], r15
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x190]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140066cce
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x140066ce0
add rdi, rsi
mov eax, dword [rsp + 0x24]
shr rax, 2
cmp rdi, rax
jae 0x140066cfb
jmp 0x140066c7a
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140066ce4
mov rcx, r14
call fcn.140001a78
jmp 0x140066cfb
mov sil, r15b
test rbx, rbx
je 0x140066d36
mov rdx, qword [rsp + 0x68]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140066d2e
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x58]
mov rbx, qword [rax - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066d69
mov rcx, rbx
call fcn.14006b6e0
mov al, sil
jmp 0x140066d3d
xor al, al
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14006b800
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14008d8cc
int3