Function at 0x140005a68
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
mov r14, rdx
lea rcx, [rsp + 0x48]
mov edx, 0x169
mov rbp, r8
call fcn.14005c9e0
mov rsi, qword [rsp + 0x48]
mov r8d, 0x104
add rsi, 0xc8
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor ebx, ebx
or rdi, 0xffffffffffffffff
lea r12d, [rbx + 1]
cmp r14, rbx
je 0x140005ac9
mov r15d, r12d
cmp r14, rdi
jne 0x140005acc
mov r15d, ebx
mov r13d, 0x64
cmp rbp, rbx
je 0x140005aea
mov rdx, r13
mov rcx, rbp
call fcn.14005ca6c
mov r11, qword [rbp]
mov word [r11], bx
cmp r15d, ebx
je 0x140005b01
mov rdx, r13
mov rcx, r14
call fcn.14005ca6c
mov r11, qword [r14]
mov word [r11], bx
mov rax, qword [0x14011b9c0]
cmp rax, rbx
jne 0x140005b87
lea r9, [rsp + 0xa0]
lea r8, [0x14011b9b8]
lea rdx, str.Version
lea rcx, str._GetFileVersionInfoSizeExW_
mov qword [rsp + 0xa0], rbx
call fcn.1400561c8
lea r9, [rsp + 0xa0]
lea r8, [0x14011b9c0]
lea rdx, str.Version
lea rcx, str._GetFileVersionInfoExW_
call fcn.1400561c8
mov r11, qword [0x14011b9b8]
cmp r11, rbx
je 0x140005b71
mov rax, qword [0x14011b9c0]
cmp rax, rbx
jne 0x140005b8e
mov rax, rdi
mov r11, rdi
mov qword [0x14011b9b8], rdi
mov qword [0x14011b9c0], rax
jmp 0x140005b8e
mov r11, qword [0x14011b9b8]
mov dword [rsp + 0x98], ebx
cmp rax, rdi
jne 0x140005bac
lea rdx, [rsp + 0x98]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
jmp 0x140005bdd
lea r8, [rsp + 0x98]
mov rdx, rsi
mov ecx, r12d
call r11
mov edi, eax
cmp eax, ebx
jne 0x140005be7
mov r12d, 2
lea r8, [rsp + 0x98]
mov rdx, rsi
mov ecx, r12d
call qword [0x14011b9b8]
mov edi, eax
cmp eax, ebx
je 0x140005de3
lea edx, [rdi + 0x1a0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xa0], ebx
mov qword [rsp + 0xa8], rbx
call fcn.14005c6f4
mov r13, qword [rsp + 0x40]
mov rax, qword [0x14011b9c0]
mov qword [rsp + 0x38], r13
add r13, 0x190
cmp rax, 0xffffffffffffffff
jne 0x140005c3b
mov edx, dword [rsp + 0x98]
mov r9, r13
mov r8d, edi
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x140005c53
mov r8d, dword [rsp + 0x98]
mov r9d, edi
mov rdx, rsi
mov ecx, r12d
mov qword [rsp + 0x20], r13
call rax
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x30]
lea rdx, str.VarFileInfoTranslation
mov rcx, r13
mov qword [rsp + 0x30], rbx
mov edi, ebx
call sub.VERSION.dll_VerQueryValueW
mov r11, qword [rsp + 0x30]
cmp r11, rbx
je 0x140005c8e
movzx edi, word [r11]
movzx eax, word [r11 + 2]
shl edi, 0x10
or edi, eax
mov rsi, qword [rsp + 0x38]
mov r12d, 0x20
cmp rbp, rbx
je 0x140005d26
lea rdx, str.StringFileInfo_08lxProductVersion
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0xa8]
mov rdx, rsi
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
mov r11, qword [rsp + 0xa8]
cmp r11, rbx
je 0x140005d2e
mov rcx, qword [rbp]
lea rdx, [r11 + 0xc6]
lea ebp, [r12 - 0x17]
cmp r11, rdx
jae 0x140005d19
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
cmp ax, bx
je 0x140005d19
cmp bp, ax
ja 0x140005d0d
cmp ax, 0xd
jbe 0x140005d19
cmp r12w, ax
je 0x140005d19
add rcx, 2
jmp 0x140005ced
mov word [rcx], bx
mov r11, qword [rsp + 0xa8]
jmp 0x140005d33
mov r11, qword [rsp + 0xa8]
mov ebp, 9
cmp r15d, ebx
je 0x140005db4
lea rdx, str.StringFileInfo_08lxFileVersion
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0xa8]
mov rdx, rsi
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
mov r11, qword [rsp + 0xa8]
cmp r11, rbx
je 0x140005db4
mov rcx, qword [r14]
lea rdx, [r11 + 0xc6]
jmp 0x140005da4
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
cmp ax, bx
je 0x140005da9
cmp bp, ax
ja 0x140005d9a
cmp ax, 0xd
jbe 0x140005da9
cmp r12w, ax
je 0x140005da9
add rcx, 2
cmp r11, rdx
jb 0x140005d7f
mov word [rcx], bx
mov r11, qword [rsp + 0xa8]
cmp r14, rbx
jne 0x140005dca
mov ebx, dword [r11 + 0x10]
mov eax, dword [r11 + 0x14]
shl rbx, 0x20
or rbx, rax
jmp 0x140005dd9
mov ebx, dword [r11 + 8]
mov ecx, dword [r11 + 0xc]
shl rbx, 0x20
or rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.140054c44
lea rcx, [rsp + 0x48]
call fcn.140054c44
mov rax, rbx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret