Function at 0x1400c9f10
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 0x1400ca0c9
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x1400ca0c9
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x1400ca0c9
mov r9, rax
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, r15
test eax, eax
je 0x1400ca0c3
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 0x1400ca0c3
mov rax, qword [rsp + 0x38]
mov esi, dword [rax + 8]
mov ebp, esi
shr ebp, 0x10
mov ebx, dword [rax + 0xc]
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 0x1400ca081
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400ca052
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400ca04d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400ca0b5
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 0x1400ca0c9
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ca0bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ca0bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
jmp 0x1400ca0c9
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [r14 + 0x10], 0
jne 0x1400ca19e
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 0x1400ca15e
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400ca12f
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400ca12a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400ca192
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 0x1400ca19e
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ca199
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ca199
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