Function at 0x140002250
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 - 0x198]
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14006d9f8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r13
mov word [rcx], r13w
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x4c], r13d
cmp qword [rdx + 0x18], 8
jb 0x1400022c9
mov rcx, qword [rdx]
jmp 0x1400022cc
mov rcx, rdx
lea rdx, [rsp + 0x4c]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x1400024af
lea r15d, [rax + 1]
mov esi, r15d
add rsi, rsi
mov rcx, rsi
call fcn.140033184
mov r12, rax
test rax, rax
je 0x1400024af
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140035510
cmp qword [rdi + 0x18], 8
jb 0x140002314
mov rdi, qword [rdi]
mov r9, r12
mov r8d, r15d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400024a7
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x38], r13
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x38]
lea rdx, [0x14005fac8]
mov rcx, r12
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400024a7
mov word [rsp + 0x50], r13w
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x52]
call fcn.140035510
mov rax, qword [rsp + 0x38]
movzx r8d, word [rax]
shl r8d, 0x10
movzx eax, word [rax + 2]
or r8d, eax
cmp qword [r14 + 0x18], 8
jb 0x14000238f
mov r14, qword [r14]
mov r9, r14
lea rdx, [0x14005fb00]
lea rcx, [rsp + 0x50]
call fcn.140001090
mov qword [rsp + 0x40], r13
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400024a7
or rdi, 0xffffffffffffffff
mov rdx, qword [rsp + 0x40]
cmp word [rdx], r13w
jne 0x1400023dc
mov r8, r13
jmp 0x1400023e9
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r13w
jne 0x1400023df
mov rcx, rbx
call fcn.140006368
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x140002472
cmp rdx, rdi
mov rcx, rdi
ja 0x140002406
lea rcx, [rdx - 1]
cmp qword [rbx + 0x18], 8
jb 0x140002412
mov rax, qword [rbx]
jmp 0x140002415
mov rax, rbx
lea rax, [rax + rcx*2]
mov r8d, 1
lea rcx, [0x14005fac4]
movzx r9d, word [rax]
cmp word [rcx], r9w
je 0x14000243c
add rcx, 2
dec r8
jne 0x14000242a
mov rcx, r13
test rcx, rcx
je 0x14000245b
cmp qword [rbx + 0x18], 8
jb 0x14000244d
mov rcx, qword [rbx]
jmp 0x140002450
mov rcx, rbx
cmp rax, rcx
je 0x140002472
sub rax, 2
jmp 0x140002419
cmp qword [rbx + 0x18], 8
jb 0x140002467
mov rcx, qword [rbx]
jmp 0x14000246a
mov rcx, rbx
sub rax, rcx
sar rax, 1
jmp 0x140002475
mov rax, rdi
cmp rax, rdi
je 0x1400024a7
inc rax
cmp rdx, rax
jae 0x14000248f
lea rcx, str.invalid_string_position
call fcn.14000da64
int3
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x14000249f
mov rcx, qword [rbx]
jmp 0x1400024a2
mov rcx, rbx
mov word [rcx + rax*2], r13w
mov rcx, r12
call fcn.140032f68
mov rax, rbx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400326d0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret