Function at 0x14003cb18
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 [0x14012aab8]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov rdi, rcx
lea rbx, [rcx + 0x50]
cmp qword [rbx + 0x18], 8
jb 0x14003cb62
mov rdx, qword [rbx]
jmp 0x14003cb65
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 0x14003cbc6
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003cfb8
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 0x14003cf82
lea rsi, [rdi + 0x70]
mov rdx, r14
mov rcx, rsi
call fcn.14003d3ac
nop
mov rax, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14003cbe3
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 0x14003cc25
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003d0b8
jmp 0x14003cba1
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 0x14003cc74
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003d1b8
jmp 0x14003cba1
mov eax, dword [rsp + 0x40]
and eax, 0xfffffffc
cmp eax, 4
jae 0x14003ccaa
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003d2b8
mov eax, 0x80004005
jmp 0x14003cf82
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 0x14003ccef
lea r15, [rsp + 0x60]
lea r15, [r15 + rax*2]
sub r14, rax
lea r8, [0x1400ec838]
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 0x14003cd53
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x88], rax
lea r8, [0x1400ec850]
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 0x14003cda1
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x90], rax
lea r8, [0x1400ec870]
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 0x14003cdef
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x98], rax
lea r8, [0x1400ec888]
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 0x14003ce3d
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xa0], rax
lea r8, [0x1400ec8a8]
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 0x14003ce8b
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xa8], rax
lea r8, [0x1400ec8c8]
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 0x14003ced9
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xb0], rax
lea r8, [0x1400ec8f0]
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 0x14003cf27
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xb8], rax
lea r8, [0x1400ec908]
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 0x14003cf72
cmp dword [rsp + 0x30], r12d
cmovne rbx, qword [rsp + 0x38]
mov qword [rdi + 0xc0], rbx
xor eax, eax
jmp 0x14003cf82
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.1400cae50
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