Function at 0x140042064
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2f8]
sub rsp, 0x3c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r12, r8
mov rbx, rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x2c], r14d
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400420be
mov rcx, qword [rdx]
lea rdx, [rsp + 0x2c]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x1400420f7
call fcn.140062444
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetFileVersionInfoSize_Failed
mov edx, 1
mov rax, qword [rax + 0x38]
call qword [str._K_f_]
xor al, al
jmp 0x1400424ac
mov rdx, rdi
lea r8, [rsp + 0x24]
lea rcx, [rsp + 0x38]
call fcn.14000c4b8
nop
cmp qword [rbx + 0x18], 8
jb 0x140042114
mov rbx, qword [rbx]
mov r9, qword [rsp + 0x38]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1400421b9
call fcn.140062444
mov r9d, 1
mov r8, qword [rax]
mov edx, r9d
lea rcx, [rbp + 0x80]
call fcn.14000c39c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetFileVersionInfo_Failed_with_Error_code_
mov rcx, rbx
call fcn.140015a04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140013980
nop
lea rcx, [rbp + 0x128]
call fcn.14000c32c
lea rax, [rbp + 0x128]
mov qword [rsp + 0x30], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x128], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x128], rax
lea rcx, [rbp + 0x128]
call fcn.140069698
mov sil, r14b
jmp 0x14004245e
mov sil, r14b
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, [0x1400e7f50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400423d9
mov rax, qword [rsp + 0x58]
movzx ebx, word [rax + 0xa]
movzx edi, word [rax + 8]
movzx esi, word [rax + 0xe]
movzx r14d, word [rax + 0xc]
mov r8d, 1
lea r15d, [r8 + 1]
mov edx, r15d
lea rcx, [rsp + 0x68]
call fcn.14000fbe0
nop
movzx edx, bx
lea rcx, [rsp + 0x68]
call fcn.140013d90
lea ebx, [r15 + 0x2c]
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140015cc8
mov edx, r15d
lea rcx, [rbp + 0x50]
call fcn.1400697b0
mov rcx, qword [rsp + 0x68]
movsxd r8, dword [rcx + 4]
lea rcx, [rsp + 0x68]
add rcx, r8
mov rdx, qword [rax + 8]
mov rax, qword [rax]
call qword [str._K_f_]
lea r13d, [r15 + 0x2e]
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
mov word [rbp + rcx - 0x40], r13w
movzx edx, di
lea rcx, [rsp + 0x68]
call fcn.140013d90
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140015cc8
mov edx, r15d
lea rcx, [rbp + 0x60]
call fcn.1400697b0
mov rcx, qword [rsp + 0x68]
movsxd r8, dword [rcx + 4]
lea rcx, [rsp + 0x68]
add rcx, r8
mov rdx, qword [rax + 8]
mov rax, qword [rax]
call qword [str._K_f_]
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
mov word [rbp + rcx - 0x40], r13w
movzx edx, si
lea rcx, [rsp + 0x68]
call fcn.140013d90
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140015cc8
lea edx, [rbx - 0x2a]
lea rcx, [rbp + 0x70]
call fcn.1400697b0
mov rcx, qword [rsp + 0x68]
movsxd r8, dword [rcx + 4]
lea rcx, [rsp + 0x68]
add rcx, r8
mov rdx, qword [rax + 8]
mov rax, qword [rax]
call qword [str._K_f_]
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
mov word [rbp + rcx - 0x40], r13w
movzx edx, r14w
lea rcx, [rsp + 0x68]
call fcn.140013d90
nop
lea rdx, [rbp + 0x290]
lea rcx, [rsp + 0x70]
call fcn.140010e88
mov dword [rsp + 0x20], r15d
and r15d, 0xfffffffd
mov dword [rsp + 0x20], r15d
or r15d, 1
mov dword [rsp + 0x20], r15d
lea rax, [rbp + 0x290]
cmp r12, rax
je 0x140042387
mov rcx, r12
call fcn.140001a14
lea r8d, [rbx - 0xe]
lea rdx, [rbp + 0x290]
mov rcx, r12
call fcn.140089700
movdqa xmm0, xmmword [0x1400fea00]
movdqu xmmword [rbp + 0x2a0], xmm0
xor r14d, r14d
mov word [rbp + 0x290], r14w
jmp 0x14004238a
xor r14d, r14d
and r15d, 0xfffffffe
mov dword [rsp + 0x20], r15d
lea rcx, [rbp + 0x290]
call fcn.140001a14
nop
lea rcx, [rbp - 0x10]
call fcn.14000c944
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x10], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140069698
mov sil, 1
jmp 0x14004245e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140062444
mov r9d, 1
mov r8, qword [rax]
mov edx, r9d
lea rcx, [rbp + 0x188]
call fcn.14000c39c
nop
lea rbx, [rax + 0x10]
lea rdx, str.VerQueryValue_Failed_with_error_code_
mov rcx, rbx
call fcn.140015a04
mov edx, edi
mov rcx, rbx
call fcn.140013980
nop
lea rcx, [rbp + 0x230]
call fcn.14000c32c
lea rax, [rbp + 0x230]
mov qword [rsp + 0x30], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x230], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x230], rax
lea rcx, [rbp + 0x230]
call fcn.140069698
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400424a9
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140042496
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424d6
call fcn.14006b200
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r14
mov al, sil
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14006b320
mov rbx, qword [rsp + 0x400]
add rsp, 0x3c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14008d3ec
int3