Function at 0x140020410
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x328]
sub rsp, 0x420
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14007c478]
xor rax, rsp
mov qword [rbp + 0x310], rax
lea rax, str.base_stor_vss_tools_vssagent_vsdoc.cpp
mov qword [rsp + 0x78], rax
lea rax, str.CVssHwSupport::GetFileVersion
mov qword [rbp - 0x80], rax
lea rax, str.TST__
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0xec3
mov r14d, 9
mov dword [rbp - 0x6c], r14d
mov dword [rbp - 0x68], 0xdc
xor esi, esi
mov dword [rbp + 0x18], 0x1000000
xor edx, edx
lea r8d, [r14 + 0x6f]
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x20]
call fcn.14004058c
nop
mov r8d, 0x104
lea rdx, [rbp + 0x100]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x140020670
mov dword [rsp + 0x34], esi
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x100]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140020670
lea rax, vtable.CVssAutoCppPtr_unsigned_char____ptr64_.0
mov qword [rsp + 0x68], rax
lea ecx, [rbx + 0x14]
lea rdx, [0x140054410]
call fcn.140043b28
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400206b0
mov r9, rax
lea r8d, [rbx + 0xa]
xor edx, edx
lea rcx, [rbp + 0x100]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
je 0x14002065f
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x3c], esi
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x58]
lea rdx, [0x140054580]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14002065f
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x30], esi
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14002065f
mov r8b, sil
mov ecx, esi
mov eax, dword [rsp + 0x30]
shr eax, 2
mov r9, qword [rsp + 0x48]
test eax, eax
je 0x1400205d5
mov rdx, r9
cmp word [rdx], r14w
je 0x1400205d2
inc ecx
add rdx, 4
cmp ecx, eax
jb 0x1400205c0
jmp 0x1400205d5
mov r8b, 1
neg r8b
sbb eax, eax
and eax, ecx
mov ecx, eax
movzx eax, word [r9 + rax*4 + 2]
movzx r9d, word [r9 + rcx*4]
lea rcx, [0x140057518]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
lea r8, str.StringFileInfo_04x_04x_s
mov edx, 0x32
lea rcx, [rbp + 0x90]
call fcn.140002d64
test eax, eax
js 0x14002065f
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x50], rsi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x90]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14002065f
mov r8, qword [rsp + 0x50]
mov edx, 0x80
lea rbx, [0x14009e000]
mov rcx, rbx
call fcn.140002de8
test eax, eax
jns 0x140020666
lea rbx, str.Unknown
mov rcx, rdi
call fcn.1400434b8
jmp 0x140020677
lea rbx, str.Unknown
lea rcx, [rbp + 0x20]
call fcn.1400406a0
mov rax, rbx
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.1400438c0
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rsp + 0x38], 0x8007000e
lea rdx, [0x1400793e8]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3