Function at 0x180006c0c
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x618]
sub rsp, 0x6f0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18002f528]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov r13, rcx
xor edi, edi
mov word [rbp + 0x3d0], di
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3d2]
call fcn.180010ca0
mov r8d, 0x104
lea rdx, [rbp + 0x3d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x180006cad
lea rax, str.error_getting_exe_path
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.18000ce08
lea rdx, [0x18002d958]
lea rcx, [rsp + 0x38]
call fcn.18000d608
int3
xor edx, edx
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x180006cef
lea rax, str.error_get_version_info_size
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.18000ce08
lea rdx, [0x18002d958]
lea rcx, [rsp + 0x38]
call fcn.18000d608
int3
mov rcx, rsi
call fcn.18000bd44
mov r15, rax
mov qword [rsp + 0x50], rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.180010ca0
mov r9, r15
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x180006d52
lea rax, str.error_get_version_info
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.18000ce08
lea rdx, [0x18002d958]
lea rcx, [rsp + 0x38]
call fcn.18000d608
int3
mov dword [rsp + 0x20], edi
mov r8d, dword [0x180031de8]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x13
jne 0x180006dab
mov ecx, edi
lea rdx, [rbp + 0x50]
mov eax, dword [rdx]
imul eax, eax, 0xfa
add r8d, eax
inc ecx
lea rdx, [rdx + 4]
movsxd rax, ecx
cmp rax, 0x37c
jb 0x180006d88
mov dword [0x180031de8], r8d
mov qword [rsp + 0x30], rdi
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 0x12
jne 0x180006df5
lea eax, [rcx - 0x11]
lea edx, [rcx + 0x43]
mov r8d, eax
lea ecx, [rax + r8]
lea r8d, [rax]
mov eax, ecx
dec edx
jns 0x180006de2
mov dword [0x180031de8], ecx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rdx, [0x180027038]
mov rcx, r15
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x180006e91
cmp dword [rsp + 0x20], edi
je 0x180006e91
mov r14, qword [rsp + 0x30]
call fcn.180006504
test al, al
jne 0x180006e7f
mov rbx, rdi
mov esi, 0x1d
call fcn.18000d08c
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rsp + rbx*8 + 0x60], xmm0
inc rbx
cmp rbx, rsi
jb 0x180006e2f
mov eax, 0x1c
jmp 0x180006e72
movsd xmm1, qword [rsp + rax*8 + 0x60]
movsd xmm0, qword [rsp + rax*8 + 0x58]
comisd xmm1, xmm0
jbe 0x180006e6f
movsd qword [rsp + rax*8 + 0x60], xmm0
movsd qword [rsp + rax*8 + 0x58], xmm1
dec rax
cmp rax, rdi
jg 0x180006e51
inc rdi
dec rsi
jne 0x180006e4a
cmp dword [r14], 0xfeef04bd
jne 0x180006e91
movzx eax, word [r14 + 0xa]
mov dword [r13 + 0x58], eax
mov rcx, r15
call fcn.18000d084
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.18000bd80
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret