Function at 0x140017a50
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 - 0xa8]
sub rsp, 0x1a8
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov esi, r9d
mov edi, r8d
mov dword [rsp + 0x58], r8d
mov r14, rdx
mov qword [rsp + 0x78], rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.Tool_GetFileVersion
lea rcx, [rsp + 0x60]
call fcn.140001190
nop
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9, rbx
lea r8, str.lpszFile___s__lpszVersion___s__dwVersionLen___d__bDriver___d
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140001370
xor r13d, r13d
mov dword [rsp + 0x70], r13d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x140017b1b
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x60]
call fcn.140001370
nop
lea rcx, [rsp + 0x60]
call fcn.140001320
xor eax, eax
jmp 0x140017dd9
lea edx, [rax + 0x64]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x140017b5e
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x60]
call fcn.140001370
nop
lea rcx, [rsp + 0x60]
call fcn.140001320
xor eax, eax
jmp 0x140017dd9
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140017da9
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r13d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x70]
call fcn.14019d7c0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, r12
call qword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [rsp + 0x40], 4
jne 0x140017be4
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax + 2]
movzx edx, byte [rax + 3]
movzx r9d, byte [rax]
movzx r8d, byte [rax + 1]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str.StringFileInfo_02x_02x_02x_02x_
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140017bf5
lea rdx, str.StringFileInfo040904e4_
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x14021ecb0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x70]
mov rcx, r12
call qword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [rsp + 0x40], r13d
je 0x140017da9
cmp esi, 1
jne 0x140017c54
lea edx, [rsi + 0x2d]
mov rcx, qword [rsp + 0x48]
call fcn.140199ab0
test rax, rax
je 0x140017c54
lea edx, [rsi + 0x2d]
lea rcx, [rax + 2]
call fcn.140199ab0
test rax, rax
je 0x140017c54
mov word [rax], r13w
call fcn.140056384
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x140017c74
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov r15d, r13d
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x140017d5c
mov r14, r13
nop dword [rax]
movzx esi, byte [r14 + rdx]
mov ecx, esi
call fcn.14019c0dc
test eax, eax
jne 0x140017cc6
cmp sil, 0x2e
jne 0x140017d0e
mov r12d, dword [rbx - 0x10]
lea edi, [r12 + 1]
test edi, edi
js 0x140017d51
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140017cf5
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140005ae0
mov rbx, qword [rsp + 0x50]
movzx ecx, sil
mov word [rbx + r12*2], cx
cmp edi, dword [rbx - 0xc]
jg 0x140017d46
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], r13w
inc r15d
add r14, 2
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov eax, r15d
cmp rax, rcx
jb 0x140017cb0
mov r12, qword [rbp - 0x80]
mov r14, qword [rsp + 0x78]
jmp 0x140017d5c
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, edx
jge 0x140017d7c
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140005ae0
mov rbx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov r8, rbx
mov rcx, r14
call fcn.14019a840
mov r13d, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140017da9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r9d, r13d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140001370
nop
lea rcx, [rsp + 0x60]
call fcn.140001320
mov eax, r13d
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140198b40
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret