Function at 0x14000fd10
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 [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov ebx, r9d
mov edi, r8d
mov dword [rsp + 0x58], r8d
mov r13, rdx
mov qword [rsp + 0x78], rdx
mov rsi, rcx
xor r8d, r8d
lea rdx, str.Tool_GetFileVersion
lea rcx, [rsp + 0x60]
call fcn.140017fc0
nop
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
mov r9, rsi
lea r8, str.lpszFile___s__lpszVersion___s__dwVersionLen___d__bDriver___d
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140017c80
xor r14d, r14d
mov dword [rsp + 0x70], r14d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
jne 0x14000fdda
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
xor eax, eax
jmp 0x14001007a
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 0x14000fe1d
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
xor eax, eax
jmp 0x14001007a
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14001004a
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, r12
call sub.VERSION.dll_VerQueryValueW
cmp dword [rsp + 0x40], 4
jne 0x14000fe86
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 0x14000fe97
lea rdx, str.StringFileInfo040904e4_
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1401cada0]
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 sub.VERSION.dll_VerQueryValueW
cmp dword [rsp + 0x40], r14d
je 0x14001004a
cmp ebx, 1
jne 0x14000fef5
lea edx, [rbx + 0x2d]
mov rcx, qword [rsp + 0x48]
call fcn.140193da0
test rax, rax
je 0x14000fef5
lea edx, [rbx + 0x2d]
lea rcx, [rax + 2]
call fcn.140193da0
test rax, rax
je 0x14000fef5
mov word [rax], r14w
call fcn.140051e58
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14000ff15
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov r15d, r14d
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 0x14000fffd
mov r13, r14
nop word [rax + rax]
movzx esi, byte [r13 + rdx]
mov ecx, esi
call fcn.140196aa8
test eax, eax
jne 0x14000ff67
cmp sil, 0x2e
jne 0x14000ffaf
mov r12d, dword [rbx - 0x10]
lea edi, [r12 + 1]
test edi, edi
js 0x14000fff2
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000ff96
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1400018f0
mov rbx, qword [rsp + 0x50]
movzx ecx, sil
mov word [rbx + r12*2], cx
cmp edi, dword [rbx - 0xc]
jg 0x14000ffe7
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], r14w
inc r15d
add r13, 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 0x14000ff50
mov r12, qword [rbp - 0x80]
mov r13, qword [rsp + 0x78]
jmp 0x14000fffd
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, edx
jge 0x14001001d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400018f0
mov rbx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov r8, rbx
mov rcx, r13
call fcn.140195e58
mov r14d, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14001004a
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, r14d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
mov eax, r14d
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1401945b0
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret