Function at 0x140042570
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 [0x140123108]
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 0x1400425ca
mov rcx, qword [rdx]
lea rdx, [rsp + 0x2c]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x140042603
call fcn.140060914
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetFileVersionInfoSize_Failed
mov edx, 1
mov rax, qword [rax + 0x38]
call qword [case.0x140050ed0.0]
xor al, al
jmp 0x1400429b8
mov rdx, rdi
lea r8, [rsp + 0x24]
lea rcx, [rsp + 0x38]
call fcn.14000c4dc
nop
cmp qword [rbx + 0x18], 8
jb 0x140042620
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 0x1400426c5
call fcn.140060914
mov r9d, 1
mov r8, qword [rax]
mov edx, r9d
lea rcx, [rbp + 0x80]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetFileVersionInfo_Failed_with_Error_code_
mov rcx, rbx
call fcn.140015a24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x128]
call fcn.14000c350
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.140067b68
mov sil, r14b
jmp 0x14004296a
mov sil, r14b
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, [0x1400e5f90]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400428e5
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.14000fc00
nop
movzx edx, bx
lea rcx, [rsp + 0x68]
call fcn.140013db0
lea ebx, [r15 + 0x2c]
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140015ce8
mov edx, r15d
lea rcx, [rbp + 0x50]
call fcn.140067c80
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 [case.0x140050ed0.0]
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.140013db0
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140015ce8
mov edx, r15d
lea rcx, [rbp + 0x60]
call fcn.140067c80
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 [case.0x140050ed0.0]
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.140013db0
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140015ce8
lea edx, [rbx - 0x2a]
lea rcx, [rbp + 0x70]
call fcn.140067c80
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 [case.0x140050ed0.0]
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.140013db0
nop
lea rdx, [rbp + 0x290]
lea rcx, [rsp + 0x70]
call fcn.140010ea8
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 0x140042893
mov rcx, r12
call fcn.140001a14
lea r8d, [rbx - 0xe]
lea rdx, [rbp + 0x290]
mov rcx, r12
call fcn.140087bd0
movdqa xmm0, xmmword [0x1400fc250]
movdqu xmmword [rbp + 0x2a0], xmm0
xor r14d, r14d
mov word [rbp + 0x290], r14w
jmp 0x140042896
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.14000c964
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.140067b68
mov sil, 1
jmp 0x14004296a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140060914
mov r9d, 1
mov r8, qword [rax]
mov edx, r9d
lea rcx, [rbp + 0x188]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.VerQueryValue_Failed_with_error_code_
mov rcx, rbx
call fcn.140015a24
mov edx, edi
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x230]
call fcn.14000c350
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.140067b68
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400429b5
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400429a2
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400429e2
call fcn.1400696d0
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.1400697f0
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.14008b8bc
int3