Function at 0x14000dfa0
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 [0x140260d50]
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.14000b870
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.14000ba50
xor r14d, r14d
mov dword [rsp + 0x70], r14d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x14000e06b
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x60]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
xor eax, eax
jmp 0x14000e30a
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 0x14000e0ae
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x60]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
xor eax, eax
jmp 0x14000e30a
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000e2da
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 0x14000e119
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 0x14000e12a
lea rdx, str.StringFileInfo040904e4_
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140212a00]
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], r14d
je 0x14000e2da
cmp ebx, 1
jne 0x14000e189
lea edx, [rbx + 0x2d]
mov rcx, qword [rsp + 0x48]
call fcn.14018efd4
test rax, rax
je 0x14000e189
lea edx, [rbx + 0x2d]
lea rcx, [rax + 2]
call fcn.14018efd4
test rax, rax
je 0x14000e189
mov word [rax], r14w
call fcn.14004cde4
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14000e1a9
mov ecx, 0x80004005
call fcn.140001000
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 0x14000e28d
mov r13, r14
nop
movzx esi, byte [r13 + rdx]
mov ecx, esi
call fcn.140191a00
test eax, eax
jne 0x14000e1f7
cmp sil, 0x2e
jne 0x14000e23f
mov r12d, dword [rbx - 0x10]
lea edi, [r12 + 1]
test edi, edi
js 0x14000e282
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000e226
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1400015c0
mov rbx, qword [rsp + 0x50]
movzx ecx, sil
mov word [rbx + r12*2], cx
cmp edi, dword [rbx - 0xc]
jg 0x14000e277
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 0x14000e1e0
mov r12, qword [rbp - 0x80]
mov r13, qword [rsp + 0x78]
jmp 0x14000e28d
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, edx
jge 0x14000e2ad
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400015c0
mov rbx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov r8, rbx
mov rcx, r13
call fcn.140190fb0
mov r14d, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14000e2da
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.14000ba50
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
mov eax, r14d
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14018e5d0
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret