Function at 0x14013a6f0
Capabilities:
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xe8
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp - 1], rax
mov qword [rbp - 0x69], r9
mov r13, r8
mov r12, rdx
mov rbx, rcx
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x61], rax
mov dword [rsp + 0x44], 1
cmp qword [rcx + 0x10], 0
jne 0x14013a74a
xor al, al
jmp 0x14013aa73
cmp qword [rcx + 0x18], 8
jb 0x14013a754
mov rcx, qword [rcx]
lea rdx, [rsp + 0x44]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14013a743
inc edi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
mov ecx, edi
call fcn.14026ded8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x79], xmm0
mov rdx, rax
lea rcx, [rbp - 0x79]
call fcn.14013a510
mov r14, qword [rbp - 0x71]
mov qword [rbp - 0x51], r14
mov r15, qword [rbp - 0x79]
mov qword [rbp - 0x59], r15
cmp qword [rbx + 0x18], 8
jb 0x14013a7a3
mov rbx, qword [rbx]
mov r9, r15
mov r8d, edi
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14013aa37
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x24], ebx
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x48]
lea rdx, [0x140327fc0]
mov rcx, r15
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [rsp + 0x24]
test eax, eax
je 0x14013aa37
mov edi, ebx
test rax, 0xfffffffffffffffc
jbe 0x14013aa37
mov esi, ebx
movzx ebx, byte [rsp + 0x20]
mov rax, qword [rsp + 0x48]
movzx r9d, word [rsi + rax + 2]
movzx r8d, word [rsi + rax]
lea rdx, str.StringFileInfo_04x_04xProductVersion
lea rcx, [rbp - 0x21]
call fcn.140133760
nop
xor eax, eax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], eax
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov rcx, r15
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14013a924
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14013a924
mov r8d, eax
mov qword [rbp - 0x29], 7
xor eax, eax
mov qword [rbp - 0x31], rax
mov word [rbp - 0x41], ax
lea rcx, [rbp - 0x41]
call fcn.14002c3d0
nop
mov r8d, 0x2c
lea rdx, [rbp - 0x41]
lea rcx, [rsp + 0x28]
call fcn.1401341d0
nop
mov rdx, qword [rsp + 0x30]
mov rax, rdx
mov rcx, qword [rsp + 0x28]
sub rax, rcx
sar rax, 5
cmp rax, 4
je 0x14013a95d
test rcx, rcx
je 0x14013a8f8
movzx r9d, bl
lea r8, [rsp + 0x28]
call fcn.14004eef0
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
sub r8, rdx
sar r8, 5
lea rcx, [rsp + 0x28]
call fcn.14004e4e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 0
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14013a912
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.14002e610
mov qword [rbp - 0x29], 7
xor eax, eax
mov qword [rbp - 0x31], rax
mov word [rbp - 0x41], ax
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x14013a93e
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.14002e610
inc edi
add rsi, 4
mov ecx, dword [rsp + 0x24]
shr rcx, 2
movsxd rax, edi
cmp rax, rcx
jae 0x14013aa37
jmp 0x14013a800
call fcn.14012c8f0
mov dword [r12], eax
mov rcx, qword [rsp + 0x28]
add rcx, 0x20
call fcn.14012c8f0
mov dword [r13], eax
mov rcx, qword [rsp + 0x28]
add rcx, 0x40
call fcn.14012c8f0
mov rcx, qword [rbp - 0x69]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x28]
add rcx, 0x60
call fcn.14012c8f0
mov rcx, qword [rbp - 0x61]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14013a9ec
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call fcn.14004eef0
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
sub r8, rdx
sar r8, 5
lea rcx, [rsp + 0x28]
call fcn.14004e4e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xor ebx, ebx
mov qword [rsp + 0x38], rbx
jmp 0x14013a9ee
xor ebx, ebx
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14013aa08
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.14002e610
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], rbx
mov word [rbp - 0x41], bx
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x14013aa32
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.14002e610
mov sil, 1
jmp 0x14013aa3a
xor sil, sil
test r14, r14
je 0x14013aa6f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [r14 + 8], eax
sub eax, 1
jne 0x14013aa6f
mov rbx, qword [rbp - 0x71]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14013aa6f
mov rcx, qword [rbp - 0x71]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
movzx eax, sil
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14026d870
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret