Function at 0x140004791
Capabilities:
Get file version info

Disassembly:
jmp 0x14004dbc0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3a0
mov rdi, rsp
mov ecx, 0xe8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3b0]
mov rax, qword [0x1401940e8]
xor rax, rsp
mov qword [rsp + 0x390], rax
cmp qword [rsp + 0x3b8], 0
je 0x14004dc3c
cmp qword [rsp + 0x3c0], 0
je 0x14004dc3c
cmp qword [rsp + 0x3c8], 0
je 0x14004dc3c
cmp qword [rsp + 0x3d0], 0
je 0x14004dc3c
cmp qword [rsp + 0x3d8], 0
jne 0x14004dc43
xor al, al
jmp 0x14004e104
mov rax, qword [rsp + 0x3d8]
mov qword [rax], 0
mov rax, qword [rsp + 0x3d0]
mov qword [rax], 0
mov rax, qword [rsp + 0x3c8]
mov qword [rax], 0
mov rax, qword [rsp + 0x3c0]
mov qword [rax], 0
mov qword [rsp + 0x78], 0
mov byte [rsp + 0x2e4], 1
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x3b8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14004dcd0
lea rax, str.Version_information_size_is_zero.
mov qword [rsp + 0x330], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x330]
call fcn.140003cf1
mov eax, dword [rsp + 0x30]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14004dd11
lea rax, str.Unable_to_allocate_space_for_the_version_information.
mov qword [rsp + 0x338], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x338]
call fcn.140003cf1
mov r9, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x3b8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x14004dd53
lea rax, str.Error_retreiving_the_information_from_the_file.
mov qword [rsp + 0x340], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x340]
call fcn.140003cf1
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x88]
lea rdx, [0x140154144]
mov rcx, qword [rsp + 0x78]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14004dd98
lea rax, str.Error_querying_fixed_file_information
mov qword [rsp + 0x348], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x348]
call fcn.140003cf1
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0xc]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 8]
and rcx, 0xffff
movzx ecx, cx
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 8]
shr rdx, 0x10
and rdx, 0xffff
movzx edx, dx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, edx
lea r8, [0x1401543e0]
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.14000547f
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_StrDupW]
mov rcx, qword [rsp + 0x3c8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x3c8]
cmp qword [rax], 0
jne 0x14004de4c
lea rax, [0x140154430]
mov qword [rsp + 0x350], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x350]
call fcn.140003cf1
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x2f8]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rsp + 0x78]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14004de91
lea rax, str.Unable_to_retrieve_string_translation_language_and_code_page.
mov qword [rsp + 0x358], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x358]
call fcn.140003cf1
mov rax, qword [rsp + 0x2f8]
movzx eax, word [rax + 2]
mov rcx, qword [rsp + 0x2f8]
movzx ecx, word [rcx]
mov dword [rsp + 0x20], eax
mov r9d, ecx
lea r8, str.StringFileInfo_04x_04xProductName
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.14000547f
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x2d8]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14004df0e
lea rax, str.Unable_to_retrieve_product_name_string.
mov qword [rsp + 0x360], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x360]
call fcn.140003cf1
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.SHLWAPI.dll_StrDupW]
mov rcx, qword [rsp + 0x3c0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x3c0]
cmp qword [rax], 0
jne 0x14004df58
lea rax, str.Unable_to_allocate_space_for_the_product_name_string.
mov qword [rsp + 0x368], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x368]
call fcn.140003cf1
mov rax, qword [rsp + 0x2f8]
movzx eax, word [rax + 2]
mov rcx, qword [rsp + 0x2f8]
movzx ecx, word [rcx]
mov dword [rsp + 0x20], eax
mov r9d, ecx
lea r8, str.StringFileInfo_04x_04xInternalName
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.14000547f
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x2d8]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14004dfd5
lea rax, str.Unable_to_retrieve_internal_name_string.
mov qword [rsp + 0x370], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x370]
call fcn.140003cf1
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.SHLWAPI.dll_StrDupW]
mov rcx, qword [rsp + 0x3d8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x3d8]
cmp qword [rax], 0
jne 0x14004e01f
lea rax, str.Unable_to_allocate_space_for_the_internal_name_string.
mov qword [rsp + 0x378], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x378]
call fcn.140003cf1
mov rax, qword [rsp + 0x2f8]
movzx eax, word [rax + 2]
mov rcx, qword [rsp + 0x2f8]
movzx ecx, word [rcx]
mov dword [rsp + 0x20], eax
mov r9d, ecx
lea r8, str.StringFileInfo_04x_04xLegalCopyright
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.14000547f
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x2d8]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14004e09c
lea rax, str.Unable_to_retrieve_copyright_string.
mov qword [rsp + 0x380], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x380]
call fcn.140003cf1
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.SHLWAPI.dll_StrDupW]
mov rcx, qword [rsp + 0x3d0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x3d0]
cmp qword [rax], 0
jne 0x14004e0e7
lea rax, str.Unable_to_allocate_space_for_the_copyright_string.
mov qword [rsp + 0x388], rax
lea rdx, [0x140193788]
lea rcx, [rsp + 0x388]
call fcn.140003cf1
nop
jmp 0x14004e0e9
cmp qword [rsp + 0x78], 0
je 0x14004e0fc
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, byte [rsp + 0x2e4]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401552b8]
call fcn.140005466
mov rax, rdi
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x3a0
pop rdi
ret