Function at 0x1400cacf0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12d, r8d
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rcx], r13
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], SafeArrayGetLBound
mov byte [rcx], r13b
mov dword [rsp + 0x30], 1
test rdx, rdx
je 0x1400caea9
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x1400caea9
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x1400caea9
mov r9, rax
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, r15
test eax, eax
je 0x1400caea3
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x34], r13d
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
lea rdx, [0x14026f670]
call sub.VERSION.dll_VerQueryValueW
mov rcx, r15
test eax, eax
je 0x1400caea3
mov rax, qword [rsp + 0x38]
mov esi, dword [rax + 0x10]
mov ebp, esi
shr ebp, 0x10
mov ebx, dword [rax + 0x14]
mov edi, ebx
shr edi, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rsp + 0x28], r12d
mov word [rsp + 0x20], bx
movzx r9d, di
movzx r8d, si
movzx edx, bp
lea rcx, [rsp + 0x48]
call fcn.1400c9950
mov rbx, rax
cmp r14, rax
je 0x1400cae61
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400cae32
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400cae2d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400cae95
mov rcx, r8
call fcn.1400e6a28
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], SafeArrayGetLBound
mov byte [r14], 0
movups xmm0, xmmword [rbx]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], SafeArrayGetLBound
mov byte [rbx], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400caea9
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cae9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cae9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
jmp 0x1400caea9
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [r14 + 0x10], 0
jne 0x1400caf7e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], r12d
mov word [rsp + 0x20], r13w
lea rcx, [rsp + 0x48]
call fcn.1400c9950
mov rbx, rax
cmp r14, rax
je 0x1400caf3e
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400caf0f
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400caf0a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400caf72
mov rcx, r8
call fcn.1400e6a28
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], SafeArrayGetLBound
mov byte [r14], 0
movups xmm0, xmmword [rbx]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], SafeArrayGetLBound
mov byte [rbx], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400caf7e
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400caf79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400caf79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400e6b50
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret