Function at 0x14003baec
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 [0x14012cac8]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov rdi, rcx
lea rbx, [rcx + 0x50]
cmp qword [rbx + 0x18], 8
jb 0x14003bb36
mov rdx, qword [rbx]
jmp 0x14003bb39
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 0x14003bb9a
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003bf8c
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 0x14003bf5b
lea rsi, [rdi + 0x70]
mov rdx, r14
mov rcx, rsi
call fcn.14003c35c
nop
mov rax, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14003bbb7
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 0x14003bbf9
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003c084
jmp 0x14003bb75
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 0x14003bc48
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003c17c
jmp 0x14003bb75
mov eax, dword [rsp + 0x40]
and eax, 0xfffffffc
cmp eax, 4
jae 0x14003bc7e
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003c274
mov eax, 0x80004005
jmp 0x14003bf5b
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 0x14003bcc3
add rax, rax
lea r15, [rsp + 0x60]
add r15, rax
sar rax, 1
sub r14, rax
lea r8, [0x1400ece58]
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 0x14003bd2c
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x88], rax
lea r8, [0x1400ece70]
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 0x14003bd7a
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x90], rax
lea r8, [0x1400ece90]
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 0x14003bdc8
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x98], rax
lea r8, [0x1400ecea8]
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 0x14003be16
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xa0], rax
lea r8, [0x1400ecec8]
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 0x14003be64
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xa8], rax
lea r8, [0x1400ecee8]
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 0x14003beb2
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xb0], rax
lea r8, [0x1400ecf10]
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 0x14003bf00
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xb8], rax
lea r8, [0x1400ecf28]
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 0x14003bf4b
cmp dword [rsp + 0x30], r12d
cmovne rbx, qword [rsp + 0x38]
mov qword [rdi + 0xc0], rbx
xor eax, eax
jmp 0x14003bf5b
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.1400c9100
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