Function at 0x14005ae40
Capabilities:
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x14018d030]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r15, r9
mov r12, r8
mov r13, rdx
mov rsi, rcx
test rcx, rcx
je 0x14005b111
xor ebx, ebx
cmp bx, word [rcx]
je 0x14005b111
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call fcn.140130762
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r8d, 0x20a
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x160]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rbx
call fcn.140130762
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x20a
call fcn.140130762
xor edx, edx
lea rcx, [rbp + 0x580]
mov r8d, 0x20a
call fcn.140130762
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
je 0x14005b111
mov ecx, r14d
mov qword [rsp + 0x8a8], rdi
lea rdx, [0x140138ce0]
call fcn.14012fc88
mov rdi, rax
test rax, rax
je 0x14005b105
mov r9, rax
mov r8d, r14d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14005b0fd
lea r9, [rsp + 0x48]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14005b0fd
mov rax, qword [rsp + 0x40]
lea r8, str.StringFileInfo_04x_04xFileDescription
mov edx, 0x104
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x50]
call fcn.14005aca0
lea r9, [rsp + 0x30]
mov rcx, rdi
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14005afc1
cmp dword [rsp + 0x30], ebx
jbe 0x14005afc1
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x160]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call fcn.140130762
mov rax, qword [rsp + 0x40]
lea r8, str.StringFileInfo_04x_04xFileVersion
mov edx, 0x104
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x50]
call fcn.14005aca0
lea r9, [rsp + 0x30]
mov rcx, rdi
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14005b034
cmp dword [rsp + 0x30], ebx
jbe 0x14005b034
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x370]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call fcn.140130762
mov rax, qword [rsp + 0x40]
lea r8, str.StringFileInfo_04x_04xProductName
mov edx, 0x104
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x50]
call fcn.14005aca0
lea r9, [rsp + 0x30]
mov rcx, rdi
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14005b0a7
cmp dword [rsp + 0x30], ebx
jbe 0x14005b0a7
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x580]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test r13, r13
je 0x14005b0c2
mov r8d, 0x104
lea rdx, [rbp + 0x160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test r12, r12
je 0x14005b0dd
mov r8d, 0x104
lea rdx, [rbp + 0x370]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test r15, r15
je 0x14005b0f8
mov r8d, 0x104
lea rdx, [rbp + 0x580]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, 1
mov rcx, rdi
call fcn.14012f24c
mov rdi, qword [rsp + 0x8a8]
mov eax, ebx
jmp 0x14005b113
xor eax, eax
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.14012f1f0
add rsp, 0x8b0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret