Function at 0x14003c404
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0xa70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140130ac8]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov rdi, rcx
lea rbx, [rcx + 0x50]
cmp qword [rbx + 0x18], 8
jb 0x14003c44e
mov rdx, qword [rbx]
jmp 0x14003c451
mov rdx, rbx
xor r8d, r8d
lea r15d, [r8 + 2]
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov r14d, eax
xor r12d, r12d
test eax, eax
jne 0x14003c4b2
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003c8ac
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
jmp 0x14003c87c
lea rsi, [rdi + 0x70]
mov rdx, r14
mov rcx, rsi
call fcn.14003cc7c
nop
mov rax, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14003c4cf
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rdx, rbx
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
test eax, eax
jne 0x14003c511
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003c9a4
jmp 0x14003c48d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
xor edx, edx
test eax, eax
jne 0x14003c560
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003ca9c
jmp 0x14003c48d
mov eax, dword [rsp + 0x40]
and eax, 0xfffffffc
cmp eax, 4
jae 0x14003c596
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003cb94
mov eax, 0x80004005
jmp 0x14003c87c
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x48]
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea r8, str.StringFileInfo_04x_04x_
mov r14d, 0x100
mov edx, r14d
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_swprintf_s]
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14003c5db
lea r15, [rsp + 0x60]
lea r15, [r15 + rax*2]
lea rcx, [rsp + 0x60]
mov rax, r15
sub rax, rcx
sar rax, 1
sub r14, rax
lea r8, [0x1400f0e68]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
lea rbx, str.unknown
test eax, eax
mov rax, rbx
je 0x14003c64d
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x88], rax
lea r8, [0x1400f0e80]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003c69b
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x90], rax
lea r8, [0x1400f0ea0]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003c6e9
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x98], rax
lea r8, [0x1400f0eb8]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003c737
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xa0], rax
lea r8, [0x1400f0ed8]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003c785
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xa8], rax
lea r8, [0x1400f0ef8]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003c7d3
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xb0], rax
lea r8, [0x1400f0f20]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003c821
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xb8], rax
lea r8, [0x1400f0f38]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x14003c86c
cmp dword [rsp + 0x30], r12d
cmovne rbx, qword [rsp + 0x38]
mov qword [rdi + 0xc0], rbx
xor eax, eax
jmp 0x14003c87c
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.1400cba70
lea r11, [rsp + 0xa70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret